IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Result doesn't pass for error/success handling Options · View
Bingdom
Posted: Monday, May 17, 2021 10:06:36 AM
Rank: Newbie

Joined: 5/17/2021
Posts: 4
Location: Australia
Hey all,

Essentially, it appears that the result for the first execution step doesn't pass down to the handler as the image depicts below.



Is there an existing workaround?

wriley
Posted: Tuesday, May 18, 2021 1:22:17 PM
Rank: Member

Joined: 2/3/2016
Posts: 17
Location: Plymouth, Michigan
You should be able to get the output of the Error Handling step by declaring a variable (for lack of a better word), in the 'Assign this step's result to field.

This screenshot shows an example of it.

Hope this helps

Bingdom
Posted: Thursday, May 20, 2021 2:35:45 AM
Rank: Newbie

Joined: 5/17/2021
Posts: 4
Location: Australia
wriley wrote:
You should be able to get the output of the Error Handling step by declaring a variable (for lack of a better word), in the 'Assign this step's result to field.

This screenshot shows an example of it.

Hope this helps



Hey, Thanks for the tip.

Doesn't help too much, unfortunately.

I've noticed I can move it out of the error handling, and the variable would carry over.

I don't want to introduce the error handling through the program I wrote. It would be nice to keep everything as close to the Altova products as possible (don't need some else to specialise in both Altova and programming if I were to leave).

Maybe I should report it as a bug.

I noticed I can retrieve the variable from when it's outside the scope of the error handling. Very weird.


K101
Posted: Thursday, May 20, 2021 8:51:34 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 558
It's by design. Per the documentation, "one cannot refer to the result of a step that's within a protected block, from the exception handler…It doesn't matter if the exception handler is On Success, On Error or Always."
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.