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
Abby StockerAbby Stocker 

Error Help Please!

Please help with the following error. Thank you! 
User-added imageUser-added image
Best Answer chosen by Abby Stocker
SarvaniSarvani
Hi Abby,

If you initially setup the trigger on diffferent sobject and change the code of the trigger to act on different sobject this error will occur.

Please follow below steps
Copy (backup) the trigger code to a text file and delete the original trigger first

Recreate the trigger again on EmailMessage object
Hope this helps! Please mark as best answer if it does.

Thanks

All Answers

SarvaniSarvani
Hi Abby,

If you initially setup the trigger on diffferent sobject and change the code of the trigger to act on different sobject this error will occur.

Please follow below steps
Copy (backup) the trigger code to a text file and delete the original trigger first

Recreate the trigger again on EmailMessage object
Hope this helps! Please mark as best answer if it does.

Thanks
This was selected as the best answer
Maharajan CMaharajan C
Hi Abby,

Try to change the trigger name from EmailTrigger to something else.

Thanks,
Maharajan.C
Abby StockerAbby Stocker
Unfortunately changing the name does not work. I will try deletion/recreation. Thank you!
Abby StockerAbby Stocker
deleting and reentering worked. Thank you!