How to extract the Exception Reason in a Try Catch

Hello, this is my first post. In my project, I am using the Present Validation Station. I want to extract the reason that was input by the user in the Present Validation Station when rejecting a document and put it into a variable. These are the screenshots. Thanks!
reject button 1
reject button


I think the only thing that you can do is to manage that kind of exception inside a trycatch and start adding the file name into a collection. However remember that present validation is just for debug purposes


Hi, is there any way of extracting the reason? Currently, my present validation station is already in a try-catch and it is in a ForEach loop that will loop through the all the files in the folder


try with this



Yup, this is what i want, Thank you very much! Hope you have a good day!

1 Like

Hello @thewy

You can also look at:
It’s not always helpful but sometimes is :stuck_out_tongue_winking_eye:

This will allow you to catch the specific exception type in the Catch block instead of a general ‘system.exception’

I would suggest swapping your write line activity for a “Log Message” at Error level.

Hopefully this helps



Hi, will definitely try this in future projects! thanks for your input!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.