Skip to main content
11 votes
Accepted

Salesforce System Error when accessing a list in @AuraEnabled method

Looks weird,might be a bug. As a workaround, try passing the stages array as string from the component and deserialize the string to List<BpiStage> in the apex controller. Controller.js ction....
Praveen's user avatar
  • 10.1k
11 votes
Accepted

Confirmation that (inner) classes are still not fully supported in @AuraEnabled methods?

Unfortunately I wasn't able to make it work using the class directly, either with an inner class or even a top level class. Using the second solution with a String attribute in your AuraEnabled method ...
Fabien Taillon's user avatar
11 votes
Accepted

Is there a *public-facing* list of GACK codes?

I work for Salesforce on the Apex product team, but this is mostly personal opinion and not an official stance. is there a GACK ID to Metadata Type list for issues around the Metadata/Tooling/Bulk ...
ca_peterson's user avatar
10 votes

Why am I getting this error on a test class?

That is a GACK response. See What Is A Gack? 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. ...
Daniel Ballinger's user avatar
10 votes
Accepted

Spring 22 testmethod GACK when assigning a PermissionSet to a newly-created user

Fixed - This will be handled by Spring '22 Patch 4.6. Update: There is now a Known Issue - Test classes are failing with Salesforce Internal Server Error. The workaround listed is to update the ...
Kris Goncalves's user avatar
8 votes

Is there a *public-facing* list of GACK codes?

The GACK ID values are derived heuristically, and are only meant for grouping crashes with the same root cause together, in order to define the frequency of the crash. It is up to a human to read the ...
sfdcfox's user avatar
  • 495k
7 votes
Accepted

Testing Community "Passwordless Login" using the System.UserManagement Class

I think the sad truth is that there is currently (as at v47.0) no support in Apex for testing those methods or the corresponding TwoFactorMethodsInfo API. I'm asking around for verification, but the ...
Daniel Ballinger's user avatar
6 votes

Internal Server Error - What Now?

TL;DR You have encountered a gack. The number in parentheses is the identifying ID for that specific event, and the general stack trace that was produced by that failure. When you see a gack error ...
6 votes
Accepted

Internal Server Error - What's in a GACK?

The best publicly available information on the structure of a gack is this blog post from Josh Kaplan Specifically, These two numbers, respectively, are the identifying ID for that specific event, ...
ca_peterson's user avatar
6 votes
Accepted

Problem with inner (nested) class in @AuraEnabled method when namespace present

As a workaround, you could set the type to be Object: <aura:attribute name="payee" type="Object"/> This does work, and to date I have not noticed any negative side effects of doing so.
Phil Hawthorn's user avatar
6 votes

Lightning - An internal server error has occurred Error ID: 1544293028-3109 (-1865483868)

The answer is in the comments, however, here are the details of the error. It looks like there is a problem with serializing Apex objects to JSON. Calling server controller method, I get the ...
dev.e.loper's user avatar
5 votes
Accepted

Generic Salesforce Error when creating record

You've run into a gack. R&D should already be working on it or have it in their queue. If you want to work on the problem yourself, disable all triggers and flows on the object and see if the ...
Adrian Larson's user avatar
  • 150k
5 votes
Accepted

Passing complex structured data type from Lightning to Apex Controller causes Internal Error with Gack Id 263119078

I didn't even open a Salesforce ticket for this one, just observed that to avoid this Salesforce internal platform bug I can pass my model as JSON string var action = component.get( "c.saveModel" ...
Patlatus's user avatar
  • 17.2k
5 votes
Accepted

Two lines of code raises internal server error with Gack Id 472275017

Salesforce Support refuses to accept this as a bug. They also refuse to agree that 'default' parameter is required. They also refuse to change the error message to "'Default' parameter is required ...
Patlatus's user avatar
  • 17.2k
5 votes

Can variables with inline get/set not be @AuraEnabled?

As per Salesforce document (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_AuraEnabled.htm) the AuraEnabled is available for methods and also there is ...
Bugude's user avatar
  • 390
5 votes
Accepted

Penalties? - Code ran in seconds yesterday, today it times out

The CPU governor limit includes the time spent by the system writing to the log file, so the more detailed the logs, the more you risk running into a CPU limit exceeded problem. Maximum level logging ...
sfdcfox's user avatar
  • 495k
5 votes
Accepted

Getting "An unexpected error occurred while preparing endpoint: C-9999" while (second generation) packaging this morning

This is a bug most probably introduced with the update to Spring '24 and affects also the creation of scratch orgs. Salesforce has just identified it as a multi-customer concern and confirmed it as ...
Alberto's user avatar
  • 513
4 votes
Accepted

Getting a log/stack trace from an Error Id with basic support

I don't think they will give out the internal stack trace for a GACK even if you have Premier support. It would probably show too much of the internals of how Salesforce works. Is there somewhere ...
Daniel Ballinger's user avatar
4 votes
Accepted

Internal Server Error (gack) Submit for Approval - VF Email Templates

Fortunately, SFDC Help had the clue, pointing me to an issue with the VF email template Prior to bug report, Submit for Approval was working fine VF template had markup like below: <apex:...
cropredy's user avatar
  • 72k
4 votes

Deployment Issue: An unexpected error occurred. Please include this ErrorId if you contact support: 94477506-8488 (-1165391008)

Typically, a gack of this nature revolves around a single point of failure, one component that failed to compile. Once a gack occurs, all future components will fail with the same gack. Check the ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

System.UnexpectedException: Illegal arguments during execution of lightning server side action

Update: As far as I can see now in Spring 2019 version, this issue can no longer be reproduced even if I set API Version to older one for both the Lightning Application and Apex Controller. The issue ...
Patlatus's user avatar
  • 17.2k
4 votes
Accepted

SFDX: Setting role for "User User"

After what @Raul said in the comments, and with this known issue, it can be seen that there is a general issue with Salesforce SFDX scratch orgs and "Out of the Box" roles. The workaround I have used ...
Phil W's user avatar
  • 36.9k
4 votes
Accepted

API equivalent of "Compile all classes" as a gack work around?

The enableCompileOnDeploy setting should make that happen. It should be applied to your scratch org definition. It is enabled by default when deploying to production, for other orgs the default is ...
Pablo Fischer's user avatar
4 votes

Why error An internal server error has occurred Error ID: 1065883952-6153 (1010177878) happens?

It is related to invalid data spaces. We need to delete invalid data spaces or open a SF Support case. Update from SF Support. Since there is no UI for Data Space deletion, one has to use Workbench or ...
Patlatus's user avatar
  • 17.2k
3 votes
Accepted

Lightning Internal Server Error Caused By Changing Return Type

Well this might help somebody else, or it might not. Now that I know what's going on, it makes sense that the changing the return type was causing this issue. I'd neglected to notice (I set this code ...
Matt Lacey's user avatar
  • 25.7k
3 votes

Internal Server Error - What Now?

It's worth noting that GACKs caused by your code can sometimes be debugged and fixed. For example, a colleague had written a long test, and had used a Class name as a Variable name. This wound up ...
GrumpyTechDude's user avatar
3 votes

Lightning, Error ID: 1959731306-16624 (-227057212). How to get more data?

You have found a gack and should open a case with support. What Is A Gack? If you’ve been around Salesforce long enough, you have probably encountered a screen that looks like this one here: What ...
Adrian Larson's user avatar
  • 150k
3 votes

Confirmation that (inner) classes are still not fully supported in @AuraEnabled methods?

Spring 19 Update : I just stumbled upon this question and I recently used something similar in Spring 19 so thought might answer this. Inner classes are supported now, you have to use setter and ...
Pranay Jaiswal's user avatar
3 votes

Internal Salesforce.com Error -- when I pass a Javascript value to Apex

You'll want to go log a case. It appears that the internal state of the parameter is screwed up. Using parseInt in the helper does not fix the problem. Interestingly, if you use Integer.valueOf in ...
sfdcfox's user avatar
  • 495k
3 votes

Why am I unable to pass an Opportunity from a Lightning Component into an @AuraEnabled Apex controller method?

I have found that not having default attributes can cause problems with binding. UPDATE - this applies to ALL attributes, including the sobjectType and CloseDate . Add all attributes (even if empty ...
Caspar Harmer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible