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

Problem while showing error messages in default page



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:[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 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 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,





Message Edited by JVN on 02-17-2009 08:28 AM

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.



Message Edited by JVN on 02-17-2009 08:27 AM