On my sandbox org this request failed when I try to select Apex as an action in Setup > Process Builder:


And i see error:

Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Error ID: 24769416-25943 (317755707)

But in Flows I can use apex classes as actions (it does request to /aura?r=6&ui-interaction-builder-components-controllers.FlowBuilder.getAllInvocableActionsForType=1 and it works)

  • For invoking apex in process builder the method needs to be invocableMethod.
    – Mitesh
    Commented Jan 23, 2020 at 12:33
  • I know, and it works fine on other dev orgs, but does not work on my sandbox org Commented Jan 23, 2020 at 12:42
  • 1) close Process in PB 2) Go to Setup / Develop / Apex Classes and click "Compile all classes" 3) Try to go to your process and select your class
    – Mitesh
    Commented Jan 23, 2020 at 13:11
  • 1
    It's more likely that it's something Salesforce support will have to look into where you can provide the error ID. Is it a partial sandbox or just a dev org? Commented Jan 23, 2020 at 13:36
  • 1
    If you click on the question mark and select "Help" you should get routed to their support website where you can create a case or follow their directions here Commented Jan 23, 2020 at 15:12

1 Answer 1


That error message is part of a "gack". Gacks are salesforce internal errors that you can't usually fix on your own. Think of them as an unhandled salesforce error.

Theres a lot of resources out there about gacks but at the end of the day they all say the same thing - only salesforce knows what this error means and only salesforce can fix it.

What is a 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.)

This blog post goes into detail about some aspects of the gack and how to report it. It offers great advice, expect for posting on stack exchange - we really can't help you fix this exception. Sometimes, maybe, if its caused by code you wrote but not something baked into the standard functionality of salesforce.

  • So which portion in error message is giveaway that it's a gack. Based on your experience is there any pattern in error message to look for. Thanks.
    – Mitesh
    Commented Jan 24, 2020 at 14:38
  • Its this bit of the message 24769416-25943 (317755707) . The ###-## (##) is a dead giveaway. Commented Jan 24, 2020 at 14:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .