+ Start a Discussion
shra1_devshra1_dev 

Strange Issue.........!!!

Hi Devs,

 

Recently I come across with a strange Issue....

Have you ever come across..

 

I'm just trying to return list of Accounts. It says like thisStrange Issue

http://screencast.com/t/vxgtNJUG3

 

What could be the reason?

 

Thanks & Regards,

Shravan

Best Answer chosen by Admin (Salesforce Developers) 
abhishektandon2abhishektandon2

I think some how a Local Class is cretaed in your Org with Name "Account".

 

Plz chk

All Answers

abhishektandon2abhishektandon2

I think some how a Local Class is cretaed in your Org with Name "Account".

 

Plz chk

This was selected as the best answer
shra1_devshra1_dev

Ohh... Really Thanks Abhishek.

 

But now how can I differentiate list<Account> (which is a Standard Object list) and list<Account> (which is a Class list).

 

 

Thanks,

Shravan

 

abhishektandon2abhishektandon2

Use scema.Account for Standard Account, try this might it works

shra1_devshra1_dev

Thanks Abhishek, that really worked.

 

I'm bit confused with what will happen to the already existing classes. Will dat work?

 

Salesforce should not allow the devs to create classes with the predefined/Standard keywords.

 

Regards,

Shravan

abhishektandon2abhishektandon2

Already existing classes would work  fine. ALso you are correct SFDC shold not allow to create class with the same name of of any Sobject because there is not package kind of thing in SFDC as in native platforms like Java , .Net etc.

 

Please mark this as solution so that every body can refer this for there similar issues