function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pankaj PahadePankaj Pahade 

I am getting error on production. The error occurs when particular users login and after Case creation procedure , he will create WorkOrder for Case when he is going to update the field of the WorkOrder then it will through below exception.

We can't save this record because the “UNITY WO Document Compliance Update on Orders” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: UNITY_OrderTrigger: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 8020Z0000017SXfQAM; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, The cost cannot be increased if the PO is in Accepted, Final, or Completed status.: [] () . You can look up ExceptionCode values in the SOAP API Developer Guide.---This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: UNITY_OrderTrigger: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 8020Z0000017SXfQAM; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, The cost cannot be increased if the PO is in Accepted, Final, or Completed status.: [] () . You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1922870313-4732 (-475982047)
Dev-FoxDev-Fox
Hi Pankaj,
Your process builder(UNITY WO Document Compliance Update on Orders) failed due to t(UNITY_OrderTrigger)rigger validation " The cost cannot be increased if the PO is in Accepted..." which means PO should not be any of Accepted, Final, or Completed status​​​​​​​.