Wednesday 1 February 2017

Reading thru the process builder error report

"This article is intended for the newbies in process builder troubleshooting"
In continuation to my previous post "Ways to identify your failed flow/process builder", this post will help beginners to identify the ways to understand the flow error report or even its debug logs.

I am referring to a sample process builder email report down below to read thru. I have added my comments to help you understand the jargon used in the report. Please /**Read between these asterisk-tags**/

Please note that this report lists the elements that the flow interview executed. This flow report is a beta feature.
So here goes the sample one with my comments and steps enumeration added:
An error occurred at element myRule_1_A1 (FlowRecordCreate). /**Type of process action performed on 1st action of the 1st criteria node**/ INSERT --- INSERT FAILED --- ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [CloseDate] This report lists the elements that the flow interview executed. This flow report is a beta feature. 1. Flow Details Flow Name: Test_Process_Builder_Name Type: Workflow Version: 19 Status: Active 2. Flow Interview Details Interview Label: Test_Process_Builder_Name-19_Test_Order__c /**Name of the flow/process builder-version number_ObjectName**/ Current User: Sudhir Kumar (005C000000A0pDv) /**Current User Name (UserId)**/ Start time: 1/25/2017 5:38 AM Duration: 0 seconds 3. How the Interview Started Sudhir Kumar (005C000000A0pDv) started the flow interview. Some of this flow's variables were set when the interview started. myVariable_old = a0w3B000000MylcQAC /**“myVariable_old” contains all of the field values of the record immediately before it was changed. If “myVariable_old” has no values (null), the process is evaluating a newly created record. **/ myVariable_current = a0w3B000000MylcQAC /**“myVariable_current” contains all of the record’s current field values.**/ 3.1. ASSIGNMENT: myVariable_waitStartTimeAssignment {!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime} /**The time when the process/flow starts**/ Result {!myVariable_waitStartTimeVariable} = "1/25/2017 5:38 AM" 3.2. DECISION: myDecision /**decision node starts**/ Executed this outcome: myRule_1 /** The number in “myRule_1” indicates that the process is executing the group of actions that are associated with the first criteria in the process. **/ Outcome conditions: and 1. {!formula_myRule_1} (true) Equals true /**1st Formula of the process related to the 1st criteria node**/ Logic: All conditions must be true (AND) 3.3. RECORD CREATE: /**type of action**/ myRule_1_A1 /**The number A1 in “myRule_1_A1” indicates that the process is executing the 1st scheduled action that is associated with the first criteria “myRule_1” in the process. “A1” indicates that this corresponds to the first action in the action group.**/ Create one Opportunity record where: Location_Address__c = {!myVariable_current.Loc_Address__c} (null) /** myVariable_current.field Here, field is the name of the field that’s referenced. myVariable_current refers to the field values that the record had when it started the process. Similarly, if there is any update, you will also get myVariable_old.field, here, field is the name of the field that’s referenced. myVariable_old refers to the most recent previous values of the record that started the process. **/ Location_City__c = {!myVariable_current.Loc_City__c} (null) /** null values in this field under current context of the record**/ Location__c = {!myVariable_current.Loc_State__c} (null) AccountId = {!myVariable_current.SF_Account__r.Id} (001C000000q7QaWIAU) CloseDate = {!formula_2_myRule_1_A1_CloseDate} (null) /** 2nd formula in the process which is related to 1st action of the 1st criteria node**/ Name = {!formula_3_myRule_1_A1_Name} (Test Account Name) Order_Type__c = New Test_Order__c = {!myVariable_current.Id} (a0w3B000000MylcQAC) RecordTypeId = 0123B000000097f StageName = Customer Review Location_Address__c = {!myVariable_current.Loc_Address__c} (null) Location_City__c = {!myVariable_current.Loc_City__c} (null) Location_ST__c = {!myVariable_current.Loc_State__c} (null) 4. Result /**final result**/ Failed to create record. Error Occurred: INSERT --- INSERT FAILED --- ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [CloseDate] /**Root cause of the error**/


To be continued..

No comments:

Post a Comment

Thank you for visiting. Your comments are highly appreciated.