You need to sign in to do that
Don't have an account?
Abhishek Khosla
flow error - Process builder and Validation
Dear All,
I am getting the below error when my process builder is trying to create a new record. Can you please help me to undersatnd why I am getting this error.
First I will expalin what is the logic behid the same so that I can understand the problem
1) We use Zoom Info to push the leads to Salesforce. When the lead is pushed from Zoominfo the LeadSource values goes as Zoominfo. Which is not required as per the business logic. Hence I created a process builder to update the LeadSource field as List import and lead source detail( Custom Filed ) as ZoomInfo. When I created the process builder i chose the option Created and edited. The logic is if LeadSource = Zoominfo then update LeadSource = Listimport and Lead Source Detail as Zoominfo.
2) Validation rule : There is a validation rule on the lead object. The objective is that once the lead source is updated then it cannot be changed. Below is the rule formula :
AND(
ISCHANGED(LeadSource),
NOT(ISBLANK(TEXT(PRIORVALUE(LeadSource)))
)
)
&&
$Profile.Name <> "System Administrator"
Now below is the error I am getting
Error element myRule_1_A1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Lead Source cannot be edited once a value has been set.. You can look up ExceptionCode values in the SOAP API Developer Guide.
Flow Details
Flow API Name: Zoominfo_Lead_to_Campaign
Type: Record Change Process
Version: 4
Status: Active
Org: TrackTik (00D610000006k9b)
Flow Interview Details
Interview Label: Zoominfo_Lead_to_Campaign-4_InterviewLabel
Current User: Dominic O'Toole (005610000038BU6)
Start time: 29/04/2019 12:18 PM
Duration: 0 seconds
How the Interview Started
Dominic O'Toole (005610000038BU6) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = Lead (00Q4N00000Y5b95UAB)
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "29/04/2019 12:18 PM"
DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions:
{!formula_myRule_1} (true) Equals true
RECORD UPDATE: myRule_1_A1
Find all Lead records where:
Id Equals {!myVariable_current.Id} (00Q4N00000Y5b95UAB)
Update the records’ field values.
LeadSource = List Import
Lead_Source_Detail__c = Zoominfo
Result
Failed to update records that meet the filter criteria.
Error Occurred: The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Lead Source cannot be edited once a value has been set.. You can look up ExceptionCode values in the SOAP API Developer Guide.
Salesforce Error ID: 1737613578-24183 (798020834)
ReplyForward
I am getting the below error when my process builder is trying to create a new record. Can you please help me to undersatnd why I am getting this error.
First I will expalin what is the logic behid the same so that I can understand the problem
1) We use Zoom Info to push the leads to Salesforce. When the lead is pushed from Zoominfo the LeadSource values goes as Zoominfo. Which is not required as per the business logic. Hence I created a process builder to update the LeadSource field as List import and lead source detail( Custom Filed ) as ZoomInfo. When I created the process builder i chose the option Created and edited. The logic is if LeadSource = Zoominfo then update LeadSource = Listimport and Lead Source Detail as Zoominfo.
2) Validation rule : There is a validation rule on the lead object. The objective is that once the lead source is updated then it cannot be changed. Below is the rule formula :
AND(
ISCHANGED(LeadSource),
NOT(ISBLANK(TEXT(PRIORVALUE(LeadSource)))
)
)
&&
$Profile.Name <> "System Administrator"
Now below is the error I am getting
Error element myRule_1_A1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Lead Source cannot be edited once a value has been set.. You can look up ExceptionCode values in the SOAP API Developer Guide.
Flow Details
Flow API Name: Zoominfo_Lead_to_Campaign
Type: Record Change Process
Version: 4
Status: Active
Org: TrackTik (00D610000006k9b)
Flow Interview Details
Interview Label: Zoominfo_Lead_to_Campaign-4_InterviewLabel
Current User: Dominic O'Toole (005610000038BU6)
Start time: 29/04/2019 12:18 PM
Duration: 0 seconds
How the Interview Started
Dominic O'Toole (005610000038BU6) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = Lead (00Q4N00000Y5b95UAB)
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "29/04/2019 12:18 PM"
DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions:
{!formula_myRule_1} (true) Equals true
RECORD UPDATE: myRule_1_A1
Find all Lead records where:
Id Equals {!myVariable_current.Id} (00Q4N00000Y5b95UAB)
Update the records’ field values.
LeadSource = List Import
Lead_Source_Detail__c = Zoominfo
Result
Failed to update records that meet the filter criteria.
Error Occurred: The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Lead Source cannot be edited once a value has been set.. You can look up ExceptionCode values in the SOAP API Developer Guide.
Salesforce Error ID: 1737613578-24183 (798020834)
ReplyForward
Abhishek Khosla
Further When I am deactiviating the Valdiation rule it works perfecatly fine so i am not able to figure out why this is not working