While working with a Salesforce 2GP managed package screen flow (such as one for managing pledge changes), you may encounter an intermittent error that looks like this:
Error element in 2 GP managed package flow (FlowScreen).
Flow does not exist. Check spelling.
This error can be confusing—especially when it disappears after a few minutes or affects only some records. Let’s break down what’s causing it and the workaround solutions available.
🧩 The Root Cause
This issue originates from referencing a custom label from a managed package directly in a Screen Flow. These flows—typically part of a 2 GP Managed Package Flow—sometimes fail to resolve labels at runtime due to metadata caching issues in Salesforce.
Salesforce has acknowledged this as a known issue, which can intermittently prevent managed package labels from loading properly.
🔄 Why It Happens:
- It doesn’t affect all records or users—only a few at a time.
- It usually resolves automatically after some time.
- The root cause is Salesforce’s internal label caching, especially with 2GP managed packages.
✅ Workaround Solutions
Until Salesforce provides a permanent fix, here are two reliable workarounds:
1. Quick User Fix: Clear Cache and Refresh
If the issue occurs for a particular pledge or user:
- Ask the user to clear their browser cache.
- Refresh the record or screen.
- Try again after waiting a minute or two.
This often helps because the cache refresh triggers reloading of the missing components.
2. Stable Fix: Clone the Managed Package Flow and Localize the Labels
If the issue persists or you need a more scalable fix:
- Clone the affected Managed Package Flow (e.g., Change Pledge Flow).
- In the cloned version:
- Replace any label references from the managed package with local custom labels defined in your org.
- Save and activate this local flow version.
This gives you full control and removes reliance on Salesforce’s runtime label resolution for managed packages.
🎯 Summary
This label resolution issue is a known caching problem in Salesforce when using Managed Package Flows. If you see this error:
- 🟢 Try clearing the cache and refreshing the page as a quick fix.
- 🛠️ For long-term stability, clone the flow and replace managed labels with local ones.
🔗 Track the known issue here: Salesforce Known Issue