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.
To work around this error, edit the approval step twice.
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:
Important: Don’t change the reject behavior yet. You’ll do that in a later step.
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.
000386951

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.