Help needed - Passing of Variables or arguments from Invoked workflow to catch Block


I have created two Xaml files 1. A main file 2. B sub file
I have invoked B file from A main file.
If a exception occurs, I wanted to pass arguments/ variables in B file to catch block where the variables are used to write into a excel.

For Example

I am calling a Excel file in B file and updating the Status as per the RowIndex of excel file. When exception occurs BOT should update the status as “failed” in that particular rowIndex of excel.

Thank you in advance.

when you have defined the exception you want to catch, add the activities it needs to carry out when it encounters it in the Catches section.