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
Saffat Jamal 2Saffat Jamal 2 

ALL_OR_NONE_OPERATION_ROLLED_BACK from Process Builder

Hi,

We have a process builder which triggers on the quote line item object and updates a field on Opportunity based on criteria. the conditions work fine however it errors out (usually when there is a lof of quote line items). Since the error is ALL_OR_NONE_OPERATION_ROLLED_BACK., we cannot identify the actual error.

I read the article below and it suggested to try debug log but even with that we did not have much luck with finding the error.
 
https://help.salesforce.com/articleView?id=000247671&type=1
 
My assumption is that the when multiple Quote line records are getting saved at the same time (Steel Brick CPQ saves all the line item records at the same time) and that is triggering multiple update on the same Opportunity with the Fleet_Current_System process. That error is most likely making the Operation to Rollback.
 
There is an idea related to it but it was delivered. From users comments it seems like even though they have bulkified the process builder there are still issues with similar errors.
 
https://success.salesforce.com/ideaView?id=08730000000DhBlAAK&swol=true
 
Not sure if there is anything else we can try to debug the issue. Any suggestion is appreciated.

This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: Fleet_System_Current
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label: Fleet_System_Current-20_InterviewLabel
Current User: John Crane (00536000000LP9p)
Start time: 10/17/2017 11:46 AM
Duration: 6 seconds
How the Interview Started
John Crane (00536000000LP9p) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = a1N36000006awqCEAQ
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "10/17/2017 11:46 AM"
DECISION: myDecision
DECISION: myDecision2
DECISION: myDecision4
DECISION: myDecision6
Executed this outcome: myRule_7
Outcome conditions: and
1. {!myVariable_current.SBQQ__Quote__r.SBQQ__Opportunity2__r.Type} (Back-to-Base) Does not equal New Client
2. {!myVariable_current.SBQQ__Quote__r.SBQQ__Opportunity2__r.RecordTypeId} (012360000002xjuAAA) Equals 012360000002xjuAAA
3. {!myVariable_current.SBQQ__Quote__r.SBQQ__Opportunity2__r.Current_Fleet_System2__c} (null) Is null true
4. {!myVariable_current.SBQQ__Quote__r.SBQQ__Opportunity2__r.Current_Fleet_System__c} (Other- see notes) Is null false
Logic: All conditions must be true (AND)
RECORD UPDATE: myRule_7_A1
Find all Opportunity records where:
Id Equals {!myVariable_current.SBQQ__Quote__r.SBQQ__Opportunity2__c} (0063600000TOF7AAAX)
Update the records’ field values.
Current_Fleet_System2__c = {!formula_8_myRule_7_A1_1693834058} (Other- see notes)
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow tried to update these records: 0063600000TOF7AAAX. This error occurred: ALL_OR_NONE_OPERATION_ROLLED_BACK: Record rolled back because not all records were valid and the request was using AllOrNone header. For details, see API Exceptions.
 
Dr. Thomas MillerDr. Thomas Miller
I experienced the same. I add contacts to an account and  a process updates a count on the account record. This works with 10 contacts but fails with 20. Seems that the flow engine collects the account update into a bulk update but has an internla undocumented limit on this.
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005nkEQAQ#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9060G0000005nkEQAQ