开发者

Sudden error accessing custom settings in SalesForce

开发者 https://www.devze.com 2023-03-15 14:41 出处:网络
We use custom settings in a SalesForce app. We access it like so: MySettings__c settings = MySettings__c.getOrgDefaults();

We use custom settings in a SalesForce app. We access it like so:

MySettings__c settings = MySettings__c.getOrgDefaults();

This was working fine, but today the app completely crashed. By that I mean the page doesn't load at all, I just get a white screen telling me an internal error occurred. We traced it down to this line of code - when it is commented out the page loads as well as it can without those settings (but at least it loads).

Running that single line of code in the System Log (using the Execute functionality) also causes a report of Internal System Error. The only thing the system log reports is "FATAL_ERROR Internal Salesforce.com Error." The Apex code modal reports "Internal System Error: 1018505045-332 (-920440070)"

The setting has values for the organization - we'开发者_StackOverflowve also tried deleting the settings and recreating them to no affect. So far SalesForce has been no help beyond telling us to ask on their website.

This is very frustrating as it was working fine on Friday and today it was broken before anyone touched anything.


What you have there is a platform error. Whenever you get those you should report them to SFDC support and they will be able to see further internal logging to sort it out.

Nothing anyone out here can do to help I am afraid.

Paul


try setting the apiVersion of the affected code back to version 21.0. We had the same issue and making this change has provided an effective workaround.


This was a bug in Salesforce's infrastructure, which has been reported resolved. If you're still seeing this error with API version 22.0, you should create a case with salesforce support.

0

精彩评论

暂无评论...
验证码 换一张
取 消