-
-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Loop elements require a Next connector to define how the flow continues after each iteration. Without this connector, the loop has no valid execution path and cannot function correctly.
Salesforce prevents creating loop elements without a Next connector in the Flow Builder UI, making this configuration impossible to build through the UI by default.
However, flows created or modified outside the UI (for example, via Metadata API, source control, or manual metadata edits) may still contain loop elements that are missing this required connector.
This rule in Lightning Flow Scanner identifies such invalid loop configurations, which would otherwise result in runtime errors or stalled flow execution. Affected flows should be fixed by adding a valid Next connector or refactoring the loop logic.