You need to sign in to do that
Don't have an account?
Deep898747
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 ?
'. Any idea how to deal with this ?
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
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
Thank you very much for this discussion, very helpful for me.