
An error occurred at element myRule_1_A1 (FlowRecordCreate).
INSERT --- INSERT FAILED --- ERRORS : (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. Maximum flow depth exceeded:,
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: Project
Type: Workflow
Version: 1
Status: Active
Flow Interview Details
Interview Label: Project-1_Project__c
Current User: RJ Pitt (00561000000juyM)
Start time: 11/17/2015 2:11 PM
Duration: 0 seconds
How the Interview Started
RJ Pitt (00561000000juyM) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = a0361000004CPN6AAO
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "11/17/2015 2:11 PM"
DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: and
1. {!formula_myRule_1} (true) Equals true
Logic: All conditions must be true (AND)
RECORD CREATE: myRule_1_A1
Create one Project__c record where:
Name = {!myVariable_current.Name} (TestName)
Result
Failed to create record.
Error Occurred: INSERT --- INSERT FAILED --- ERRORS : (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. Maximum flow depth exceeded:,
Did I do something wrong or is this an issue on Salesforce's end?
2 answers
RJ,
I cannot tell exactly by the error message, but from what you have described..here is what I understand:
1) Project 1 is created.
2) Process Builder says, hey...a new project is created...I need to create another new Project, so it creates Project 2
3) Project 2 is created.
4) Process Builder says, hey...a new project is created...I need to create another new Project, so it creates Project 3
5) Project 3 is created
....you see where this goes.
A simple solution woulf be to add a hidden checkbox field on your Project Object call auto_created__c. Have the Process Builder Criteria only fire when that flag is FALSE. Add to your current Process Builder Action setting the auto_created__c field to TRUE as a final step.
Let me know if that works!
Cheers,
Brian