How to reinitialize variable in loop after loop

im capturing the exception message in one variable and need to initialize that variable after writing the cell for each item.

please reply fast

Hi @omkard222
After writing it into the cell … reinitialize it with null at the end of the loop.

Thanks

@Blesslin please provide example

@omkard222
Please look into the img

In the body of the “foreach2 activity” you have to perform your actions before assigning your exception variable as null.

@Blesslin i have tried this way but its not working

Can you check where you have provided the first assign activity ?

is there any other way?