You need to sign in to do that
Don't have an account?

Problem while showing error messages in default page
Hello,
We have a problem when displaying error messages in a certain page. Let me explain you, take this environment:
1) Create a Case.
2) Click the "Send An Email" button in "Activity History" section.
3) Fill all required fields and send the email.
When the email is sent, internally it creates a task for the current Case. We have a trigger (before insert and update on Task) that makes some validations and adds an error message if necessary. When it happens, the error message don't appear correctly but a "An internal server error has occurred" page instead.
- This is the code we use to add an error message in the trigger:
Trigger.new[0].addError('My message error.');
- This is your error page:
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact support@salesforce.com. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.
Thank you again for your patience and assistance. And thanks for using Salesforce!
Error ID: 1144007776-73 (257953934)
Click here to return to the previous page.
So, what you recommend to do to solve this matter?
Thanks in advance,
This error is not related with the code that you have written, my suggestion is to log a case with salesforce with error id that you got.
Hello Srinivasan and thanks for your reply.
Done.