Try/Catch within BP
Hello everyone,
I'm facing an issue i would like to resolve :).
I have a BPL which throw a DTL. My DTL has many reasons to raise an Exception.
I would like to catch this exception within my BP with a SCOPE but it does not work.
The BP seems to catch its own Exception but does not care at all of my DTL Exception.
So, is it possible to use the SCOPE in my case ? Otherwise, how can I handle the exception in my DTL ?
Thanks a lot for your reply.
Matt.
I would expect the "catchall" to work in this situation - it's how I catch general exceptions not otherwise handled. Are you using "catchall" or attempting to "catch" a particular exception with catch? If using catch, a gotcha for new players is that it only works in conjunction with a BPL "throw" as it will only catch based on a string in a corresponding throw and not based on a %Status value or %Exception or whatever.
Hi @Matthieu
I am facing the same issue. Did you ever figured out how to catch exceptions thrown by your DTL ?
Many thanks,
Utsavi
Is Amir's solution not satisfactory?
In some cases, it is preferable to use a
< code >
activity that directly calls the transformation and assigns the status code to the status variable, which will be processed by the try/catch.