I run into a very bizarre issue when I packaged a lightning flow in a Managed Beta Package and try to tested out on the installed package.

My lightning flow is linked to a quick action button and it loads fine and worked alright in a dev environment. But after packaged the component and launch it in a staging environment(Managed Beta installed) it fail to launch and give the following error:

Error message on the screen

In the browser console I got something like this: enter image description here

Salesforce debug log shows only following:


The flow I had has one thing different than the other flows that does not have problem loading. That is this flow started with an Apex Action. And the apex action was taking variables from flow as input variables to run.

When I remove the apex action as first element run by the flow, and made a beta package. I tested on the new beta package everything works ok.

This seems like an issue with salesforce. Anyone has any idea on why this is happening. Is it best practice to call "Apex Action" at the beginning of a lightning flow?

Here is a screen shot of the flow I have: enter image description here

1 Answer 1


Ok I have got some progress on this problem. I changed the first Apex Action class to be global class instead of public as it was before, then the problem went away. However, my understand was that the apex action in a packaged flow does not need to be global... Still seem to me like a bug in salesforce

You must log in to answer this question.

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