function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ArjunsArjuns 

Exception: Illegal assignment from LIST<Object> to LIST<NamespacePrefix.Object>

Hi,

I have encountered one error due to the Namespace Prefix I have used in my org.

It was working fine few days back. But suddenly. I have got one error in all my Apex Class and Triggers where the SOQL query is being used.

 

Example:


Let us suppose NameSpace Prefix is John. then my error in all codes when I run or edit them is:

 

Exception: Illegal assignment from LIST<Contact> to LIST<John.Contact>

Error occurred loading controller 'acccls' for page John:acccon

Exception: Illegal assignment from LIST<User> to LIST<John.User>

Error occurred loading controller 'jcccls' for page John:acccon

As we all know,we can't rename or remove namespace prefix once used.
If anyone have any solution or somehting in the settings that can sort out my issue Please Reply.