question

56220211 avatar image
0 Votes"
56220211 asked 56220211 answered

Until activity succeeds even when one of the inner activity failed.

I have an until loop with some inner activities. Looks like the until activity is marked as succeeded even when one of the inner activity failed. It caused the rest of the activities after the until activity to be executed. Is there anything to do differently to make until activity Fail when one of the inner activity failed.

125741-image.png


125742-image.png




Update
Until activity reported failure when I updated the looping logic to end the iteration immediately upon the inner activity failure. Looks like the status of the Until activity is determined based on the status of the inner activities of the final iteration.

azure-synapse-analytics
image.png (9.7 KiB)
image.png (31.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @56220211 ,

Following up to see if below answer helps you? If yes, Please Accept Answer. Accepting answer helps community as well. Please let us know if any further queries. Thank you.

0 Votes 0 ·
56220211 avatar image
0 Votes"
56220211 answered

I just updated my original post.... but posting it again...

Until activity reported failure when I updated the looping logic to end the iteration immediately upon the inner activity failure. Looks like the status of the Until activity is determined based on the status of the inner activities of the final iteration.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered

Hi @56220211 ,

Welcome to Microsoft Q&A Platform. Thank you for posting query here.

The Until activity provides the same functionality that a do-until looping structure provides in programming languages. It executes a set of activities in a loop until the condition associated with the activity evaluates to true.

Your inner activites of Until fail or success it continues to run loop until the condition associated with the until activity evaluates to true.

Hence, you can't make it explicity failed, but You can specify a timeout value for the until activity in Data Factory.

By making until activity timeout u can make your pipeline execution to fail.

Hope this will help. Please let us know if any further queries. Thank you.


  • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

  • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.