Loading

Approval Step Error: Data Uniqueness Violation

Udgivelsesdato: Jun 14, 2026
Beskrivelse

When I edit an approval step to change its reject behavior, I’m unable to save the approval step.

The error message displayed is: Data Uniqueness Violation — The proposed data changes would violate a uniqueness constraint. T

his error occurs within Salesforce Approval Processes when an approval step's reject behavior is modified without also updating the step criteria's "else" statement.

The step criteria’s “else” statement determines what happens if the step criteria isn’t met. The reject behavior determines what happens if the approver rejects the approval request during this step of the approval process.

Løsning

To work around this error, edit the approval step twice.

First Edit: Temporarily Change the Else Statement

In the first edit, temporarily change the step criteria’s “else” statement to a different value from the one you want. Make sure you save this temporary change.

Detailed steps, starting from the approval process detail page:

  1. Click Edit next to the approval step.
  2. Click Next on the Enter Name and Description page.
  3. On the Specify Step Criteria page:
    • Find the “Enter this step if the following…” field.
    • After “else”, select a different value from the one you want.
  4. Click Next.
  5. Click Save on the Select Assigned Approver page.

Important: Don’t change the reject behavior yet. You’ll do that in a later step.

Second Edit: Set Final Values for Both Fields

In the second edit, change both the step criteria’s “else” statement and the approval step’s reject behavior to the values you want.

Important: Don’t click Save for this edit until you’ve changed both of these settings.

  1. Click Edit next to the approval step.
  2. Click Next on the Enter Name and Description page.
  3. On the Specify Step Criteria page:
    • Find the “Enter this step if the following…” field.
    • After “else”, select the desired value.
  4. Click Next.
  5. On the Select Assigned Approver page:
    • Select the desired Reject Behavior.
  6. Click Save.
Vidensartikelnummer

000386951

 
Indlæser
Salesforce Help | Article