function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RC_48RC_48 

MAX_DEPTH_IN_FLOW_EXECUTION

Hi there, I am trying to update orderitem objects date field from order object using process builder. I am getting below error. Can anyone please confirm if it is possible to update orderItem objects fields from Order Object..and also please provide best resolution.

The flow tried to update these records: null. This error occurred: MAX_DEPTH_IN_FLOW_EXECUTION: Maximum flow depth exceeded: flow Testing_Order_Process_Builder is triggered for [*****************] flow. 
Best Answer chosen by RC_48
SwethaSwetha (Salesforce Developers) 
HI Ragdeep,
The issue you are facing is related to a Known salesforce issue https://trailblazer.salesforce.com/issues_view?id=a1p3A0000001CuSQAU .

According to this, if you try to use a process to update an OrderItem when there is a change/edit to the Order object you will hit an error.


Updating OrderItem on any create/edit of Order via process builder gets recursive and hence the error "MAX_DEPTH_IN_FLOW_EXECUTION: Maximum flow depth exceeded"

The error message is slightly different in the KI but the underlying error is "MAX_DEPTH_IN_FLOW_EXECUTION: Maximum flow depth exceeded" in the bug.

Currently, there is no workaround and ETA for the fix mentioned in the KI link.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.

Thank you