• Saffat Jamal 2
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
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.