Skip to main content
I have a custom object called Project, that when created, automatically needs to create another Project object with different data. However, whenever I try to create a record, workflow fails to trigger a flow and I get exactly 15 copies of the same failure e-mail message that says this:

 

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
  1. Nov 18, 2015, 12:59 AM
    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
0/9000