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
Deep898747Deep898747 

Apex trigger CaseTrigger caused an unexpected exception, contact your administrator: CaseTrigger: data changed by trigger for field Email Address: invalid email address: (value has been hidden)

Hi all, while clong the case I am facing this error 'Apex trigger CaseTrigger caused an unexpected exception, contact your administrator: CaseTrigger: data changed by trigger for field Email Address: invalid email address: (value has been hidden)
'. Any idea how to deal with this ? 
ShirishaShirisha (Salesforce Developers) 
Hi Deepika,

Greetings!

This means the Email address you are trying to use is invalid.If you are trying to use the salesforce email address,I would suggest you to validate it before using it.Otherwise,if you are trying to use the dynamic email address which you get from external system then validate the email address before using it as mentioned in the below thread:

https://developer.salesforce.com/forums/?id=906F00000009YqgIAE

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
SwethaSwetha (Salesforce Developers) 
HI Deepika,
As the error indicates, the email I'd field in the case record is invalid and this is getting assigned through your CaseTrigger . You can setup debug logs to identify where it is going wrong.
See related: https://salesforce.stackexchange.com/questions/16462/getting-error-message-when-trying-to-execute-trigger-stating-incorrect-type
Robert Bentley 2Robert Bentley 2
Hi, (https://homeheavenz.com/best-air-purifier-for-smoke/)
Thank you very much for this discussion, very helpful for me.
olansies janmesolansies janmes
Amazing stuff thanks for your information. could you please let me know what is the best solution you have found actually i was facing the same issue. some one suggest me about Purificador de aire Olansi (https://www.olansies.com/) but this one is not helpful thats way i am looking for the best solution.