Throwing a user defined exception from an invoke code activity

How do I throw a user defined exception from an invoke code stage? Something like the following:


I would like for it to work like a normal throw:

Instead, it gives me the following generic error message which really doesn’t let me add any details.

As a workaround, I am forced to use an output variable and then an if condition to create a throw. But surely, there must be a more elegant solution?

@anupamck I hope it is not too late but I found a solution to this issue.

Please use exception.InnerException.Message

Hope it works!

Thanks @haider1991. I also used the same solution, but forgot to update it here. Thanks to your reminder, you get a solution tick :slight_smile:

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