Try/Catch in For loop error trapping

Hi everyone.

I noticed some issues with Try/Catch when beeing used within a For loop. The screenshot attached shows my current actions.

1) The Try/Catch is putting the error into a variable. For the second and third loop (only 3 done), the error gets appended to the variable. I think we should be able to choose between appending or setting the vraible to the value.

2) With the same test, I also notifced that VSS warnings gets trapped by the catch (ie : All responsed "Yes" questions from VSS). Would it be hard to modify so we can choose either to log warnings, erros or both from the VSS Get Latest Version action ?

Thanks again for great service

TRY_CTACH_Error1.PNG.jpg

The error variable being appended to was actually a bug in the base action class that wasn’t resetting when run in a loop. This build contains the fix :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1773.exe

Thank you .

I will test it late this afternoon. I'll mark it as "Resolved" since the fixes are usually well made !

Should I repost #2 to "Wish list" ?

Can you post the log for the VSS Action and also what is showing up in the Errors variable? I had a quick look at the action but I couldn’t see why this would happen.