Skip to content

Missing Next Value Connector in Loop #273

@RubenHalman

Description

@RubenHalman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new ruleprevented by UIViolations that are prevented by Flow Builder UI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions