Salesforce Exception Collections Internal Error

Salesforce Exception Collections Internal Error

February 19, 2016

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

Is Your Email Secure Enough?

February 16, 2018 | Anton Derevyanchenko

Methods to Minimize Spoofing and Forgery Throughout Your Workplace With the arrival of any transformative technology, those wishing to exploit it ethically or otherwise always arrive with it. The digital communication era has been no different. The nuisance of email spoofing and forgery threatens digital security on every level of society, from personal email to […]

CoreValue Services Welcomes Roman Dzvinka as a VP of Business Development

February 9, 2018

CoreValue Services, a software and technology company, is pleased to announce and welcome Roman Dzvinka as a Vice President of Business Development. Mr. Dzvinka, as a member of our management team, will be responsible for the leadership of company sales and marketing, developing new business opportunities and implementing company strategies for customer service. Igor Kruglyak, […]

© Copyright - CoreValue 2018
Salesforce, Sales Cloud, and others are trademarks of salesforce.com, inc., and are used here with permission.
Used with permission from Microsoft.