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 Services is listed as one of the Top CRM Software Development Companies

October 17, 2018

CoreValue Services, a US-based software and technology services company, ranked among the Top 10+ CRM Software Development Companies published by Top App Development Companies platform. This listing promotes the best global vendors in app development, helping buyers find the right partners for their next app development projects. As a worldwide platform, it represents a unique […]

Blockchain: Making a Difference in the Healthcare Landscape

October 11, 2018 | Lily Smirnova, Marketing & Business Development Manager

A recent survey from IBM showed that 56% of health executive respondents plan to implement commercial blockchain solutions by 2020. The now headliner blockchain technology is gaining momentum as a transformative technology with the potential to redefine a wide variety of industries. Originally from cryptocurrency and cybersecurity, blockchain is making its way as a trusted […]