Loading

Approval Process Flow Fails at Runtime on Approval Step When Using Custom Screen Flow

Udgivelsesdato: Aug 18, 2026
Beskrivelse

In a Record-Triggered Flow Approval Process, when a custom Screen Flow is used for the approver's review step instead of the standard Approvals Workflow: Evaluate Approval Requests flow, and the radio button component on the review screen is configured with stored values "Approved" and "Rejected", these values are stored in the approvalDecision output variable; the value the custom Screen Flow returns to the parent Approval Process flow. As a result, the Approval Process flow fails at runtime specifically on the approval step with the below errors:

  • Approval Flow: This interview encountered a recoverable error: An unexpected error occurred.
  • Screen Flow: An error occurred with the flow. Contact your admin for more information.


Error message: This interview encountered a recoverable error: An unexpected error occurred, shown on the Approval flow Error message: An error occurred with the flow. Contact your admin for more information, shown on the Screen Flow

Løsning

This article explains how to fix an Approval Process flow that fails at runtime when a custom Screen Flow is used for the approval step. Salesforce Flow Approval strictly expects the approvalDecision output variable from the custom Screen Flow to contain the exact strings "Approve" or "Reject". The stored value from the radio button is directly passed into this output variable, and any mismatch prevents the Decision elements in the parent flow from evaluating correctly.

Fix the Screen Flow Choice Values

In the custom Screen Flow, update the Radio Button component choices as follows:

  • Choice Label: Approve -> Choice Value: Approve
  • Choice Label: Reject -> Choice Value: Reject

Verify the Decision Element in the Approval Flow

In the Record-Triggered Approval flow:

  • Locate the Decision element that checks {!<StepName>.Outputs.approvalDecision}.
  • Verify that it uses the exact conditions:
    • Equals "Approve"
    • Equals "Reject"
Vidensartikelnummer

005385269

 
Indlæser
Salesforce Help | Article