0

This is what the JSON looks like:

{
    "properties":[
        {
            "isVisible":true
        },
        {
            "isOverlapping":false
        }
     ]
 }

In apex code, I am iterating over the same JSON object:

for (Object obj : requestObj.properties) {

//some code

}

The code saves successfully. It gives me the following error when I try to invoke this from javascript(the error is caught in the salesforce developer console):

FATAL_ERROR System.UnexpectedException: Salesforce System Error: 1574064081-423898 (225376621) (225376621)

Upon debugging, the exception is thrown at line where for loop begins. I am calling the method through a remote action and my request is automatically mapped to the type of input the remote action takes.

  • I am calling the method through a remote action and my request is automatically mapped to the type of input the remote action takes. – Kanika Jan 5 '17 at 0:10
  • Can you actually add the Type of object that requestObj is and its definition? – Adrian Larson Jan 5 '17 at 0:16
1

Open a case with support and provide as much detail about reproduction as you can. You've run into a gack. R&D should already be working on it or have it in their queue. Note that Salesforce specifically calls out that the error is not your fault in describing what a gack is.

What Is A Gack?

If you’ve been around Salesforce long enough, you have probably encountered a screen that looks like this one here:

gack

What you are looking at is what we call a GACK. A gack is our blue screen of death, our frowny Mac icon, our “the number you have reached is no longer in service”, our “Jedediah has died of dysentery”. A gack is what happens when an error got thrown within our application and we didn’t catch it and handle it.

What this means is that it’s not your fault. It’s ours. That’s why we apologize in that message. Sorry!

This friendly message is the above-water portion of a huge iceberg of functionality. The numbers you see are part of an elaborate system for efficiently bringing these events to the attention of R&D. This post will help you understand that system, and how you can help us in getting you running safely. (Hint: steer away from icebergs.)

  • Should I open a case with Salesforce? – Kanika Jan 5 '17 at 0:30
  • Yep, that's your best bet when you get a gack. – Adrian Larson Jan 5 '17 at 0:31
  • 1
    @kanika - and be sure you have a super simple reproducible test case that can be readily performed by support. – cropredy Jan 5 '17 at 2:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.