I have created a flow that looks up for opportunity object and then performs certain modification.
******The flow works fine in the sandbox however when I run the same flow in production. I get "Too many DML Statements 151".******
The issue seems to be Data dependent on the number of opportunity records being modified.
I searched for this and found that we can avoid this error in code by modifying the code to reduce the number of DML statements.
https://developer.salesforce.com/forums/?id=906F000000093BAIAY https://help.salesforce.com/apex/HTViewSolution?id=000004825&language=en_US Too many DML statements: 151 - no DML in a for loop (that I can see)
Any suggestions on how to handle this in a flow would be appreciated!