You need to sign in to do that
Don't have an account?
Srikanth Challa 3
All the triggers are throwing error in Sandbox
Hi Guys, today I tried to edit the records in Sandbox and they started throwing me an error saying that 'Error:Dependent class is invalid and needs recompilation'. when I tried to edit the class and saved it then it is throwing '[Error] Error: Compile Error: Illegal assignment from List<Account> to List<Account> ' . I wonder why all the triggers in sandbox are throwing errors where they are working perfectly in Production!
All Answers
The dependent class may have been modified on the sandbox and not in production, or production may have a similar issue too if you haven't checked already.
trigger Updatedesc on Account (before insert, before update) {
for (Account updatedAccount : Trigger.new) {
updatedAccount.Description = 'New Description';
insert updatedAccount;
}
}
Variable does not exist: 'Field Name'. It is unable to recognise the field for some reason
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm
Please mark this as solution if this will resolve you problem
Thanks a lot James!