Retaining out variable value incase of exception

Hi All,

In attached flow, there is an exception in invoked flow however the out variables are loosing their value in catch part. Can you please advise if there is any way of retaining value of out variables in catch part.

Also, is it possible to know which activity faulted as there is no mentioning of it is error message. For example, in attached flow, Activity3 faulted however there is no way of knowing it.

.OutVariable.zip (14.2 KB)

Thanks

OutVariable.zip (3.8 KB)
chk this u will get idea

1 Like

Hi @Kapil,

As per my understanding, Out arguments will not retain its values in case of an exception.
You can handle the exception in the same workflow and take appropriate steps as mentioned by @ImPratham45

Please find the below posts for details and possible workarounds.

Out arguments not carrying value if exception is throw Build activities arguments question exception_handling

Out argument value after an exception

Also, for checking which activity is throwing the exception you can log exception.Source along with exception.Message to know the exact source and exception message.

1 Like

Thanks all for your suggestions!! It really helped!