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

CoreValue evolves into Avenga

November 26, 2019

Meet a fresh face in IT – leading new technology built on years of experience CoreValue, IT Kontrakt, Sevenval, and Solidbrain unite into Avenga with four unique cultures, backgrounds and strengths. Together, we are one global IT company on a mission to transform business. Avenga combines the speed, flexibility and innovative power of a start-up, […]

Stories from AQA Team

November 21, 2019 | Michael Lehinchenko, Head of Automation Department and Deputy QA Production Director

As a part of quality management, Automation QA is responsible for everything to work the way it should. At CoreValue, Automation testing is a part of services to ensure the best of software quality. Our AQA department has grown to 34 specialists over 7 years. Every division is defined by the way it hires people, by the […]

Contact Us

By submitting this form you acknowledge that you agreed to our Cookies and Privacy Policy.