+ Start a Discussion
debradebra 

Flow with Fault handling does not rollback all DMLs?

I have a Flow that creates several types of records:  Contract, Order and Order Products.
Initially if the Flow encountered any errors on the DML elements it would report the ugly "Unexpected Fault" error screen and no data would be created.
I added screens to handle "Fault" outcomes for the DML elements which worked well however if the fault occurred in later part of the Flow - for example when Order Products are inserted the previously inserted Contract and Order remained.

This is not ideal!  Has anyone found a method to make use the Flow does not create/update any data if there is a DML error that is handled by a fault message?