Hello, on press of a button I have 3 operations in this order:
1. Set(varTempID,Patch(A...... INSERTING a line to sharepoint list A and getting line ID as varTempID
2. Patch(B, Defaults(B),{...EventID: varTempID})...... INSERTING a line to sp list B and using varTempID
3. UpdateIf(C,{...EventID: varTempID}..... UPDATING sp list item and using varTempID
It has worked flawlessly until today: in one instance for one user, It appears, that 1 and 2 operation failed (no visible error message) but operation 3 succeeded.
Process integrity relies on all operations to be successfull. All or nothing.
How to handle this kind of issue? How to ensure that all 3 operations wouldn't fail?
I only can imagine some sort of sequential check:
perform op 1
check if op 1 ok
if not ok - error
if ok - perform op 2
if not ok - delete op 1
if ok - perform op 3
if not ok - delete op 1 and op 2 (but then need to check if op 1 and op 2 is deleted for sure...