Loading

Approval Step Error: Data Uniqueness Violation

게시 일자: Oct 13, 2022
상세 설명
When I edit an approval step to change its reject behavior, I’m unable to save the approval step. Instead, I get the following error:
 
Data Uniqueness Violation
The proposed data changes would violate a uniqueness constraint.

This error occurs when an approval step’s reject behavior is modified without also modifying 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.
  • 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.
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.
    • Click Next.
  4. Click Save on the Select Assigned Approver page. Important: Don’t change the reject behavior, yet. You’ll do that in a later step.
  5. Click Edit next to the approval step.
  6. Click Next on the Enter Name and Description page.
  7. On the Specify Step Criteria page:
    • Find the “Enter this step if the following…” field.
    • After “else”, select the desired value.
    • Click Next.
  8. On the Select Assigned Approver page:
    • Select the desired Reject Behavior.
    • Click Save.
Knowledge 기사 번호

000386951

 
로드 중
Salesforce Help | Article