Tracking data when error occurs

Dear all,

As showned in advance training in academy, the best way how to do error handling is using try catches a passing arguments between various workflow.

However, there is one thing which would probably need also an academy lesson. If I have a for each loop inside a workflow and the application crashes, I am able to restart the app and continue in the flow. All processed rows of DT are marked as done so the robot is able to skip them. Unfortunately, the status of some variables is not possible to track as passing arguments does not work when exceptiom occurs.

Do you have any ideas how to deal with this? Of course writing range after each step is possible, but I am looking for something more elegant.