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
singhd62singhd62 

Internal Server Error while accessing Apex Class generated from MetadataAPI

Hi,

Apex class is generated successfully from Metadata API with size: 583,024.

But while viewing the class from below path:

Setup -> Develop -> Classes -> <ClassName>

By clicking on Class Name, am getting internal server error:

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 Salesforce Support. 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.com!

Error ID: 683239064-10236 (-149558205)
SamuelDeRyckeSamuelDeRycke
singhd62

Internal errors are exaclty that, and most of the time they are pretty impossible to analyse or work around from an external point of view. The best thing to do is to log a salesforce support case with the error id. Support agents can than view the full error log and offer a solution or escalate the issue.


AshwaniAshwani
As explained by Samuel, there is no way to exactly find the reason of these type or error. Actually they are exceptions at Salesforce end because of our code. There is something in your apex generated class which is causing this error try to create a simple class first. If that work for you then try some complex class. There may be iisue with reference used by apex classs which doesn't exist in referenced class.

Compile all Apex classes and see which classes have in invalid flag false.