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
Alexandre BouhierAlexandre Bouhier 

Internal Salesforce Error: 20878693-139583 (-1872511937) (-1872511937) Stack Trace: null

Hello,

when we execute test methods for one class (and only one class, no problem for others), we're getting this error:
Internal Salesforce Error: 20878693-139583 (-1872511937) (-1872511937)
Stack Trace: null
This error occurs only on production instance, not on sandbox. I don't know how to fix that, anyone can help?
Thanks!
RainnyCloudyRainnyCloudy
With these types of errors, you'll most likely need to contact Salesforce support.
Omveer kundu 8Omveer kundu 8
Hi Alexandre
 It can be because of dependencies. Is there any other class this particular failed class uses and which is not included in the Test Method
Alexandre BouhierAlexandre Bouhier
Thanks a lot for your answers. I modified the code and now I have no problem, even though I still do not know what was causing the problem. :/
Omveer kundu 8Omveer kundu 8
please Like And Select the best answer
Alexandre BouhierAlexandre Bouhier
Sorry Omveer, but as I said, I don't know where was the problem (for information, this class was programmed by an external service provider), so no answer here is the best. :)