Salesforce Exception Collections Internal Error
February 19, 2016

Salesforce Exception Collections Internal Error

We had some legacy code which was storing exceptions happening during future methods into Salesforce custom object.
This tool had some code which was converting a single exception into a list and then iteration over the list was performed.

This issue could be reproduced by the following snippet:

try {
String testString;
Boolean testBool = testString.startsWith( 'text' );
} catch ( Exception e ) {
for ( System.Exception anExToLog : new List{ e } ) {
System.debug(LoggingLevel.ERROR, '@@@ anExToLog: ' + anExToLog );
}
}

When we tried to execute this code, the following exception was raised:

System.QueryException: Dynamic query yields incompatible SObject type System.NullPointerException for loop variable of type java.lang.Exception

We have opened a ticket against Salesforce support on 9th of February.

Finally today, in about two weeks, Salesforce has acknowledged this as an issue and provided a link for us to click “This issue affects me” to get email alert when the issue is fixed. If this issue affects you then you can also subscribe to it.

If you notice some other internal error issue then you can also open Salesforce support ticket by being logged in to Salesforce. 

Tags



Share


Recent Articles

How to Build the Best Medical Mobile App

January 9, 2019

Time is a vital issue nowadays and we can not afford wasting it. That is why we order things online and keep most of our important information on our smartphones. Healthcare services are also available at your fingertips today. According to the IQVIA institute for Human Data Science, there are more than 318,000 medical or […]

CoreValue is Top Web and Software Development Company in 2018

January 2, 2019

CoreValue is proud to be listed as one of the Top Web and Software Development Companies of 2018 in the USA, according to TopDevelopers.co. The researched list includes 50 web and software development companies that provide exemplary software development proficiency. TopDevelopers.co noted the high level of expertise CoreValue handled projects for different business sectors with. […]