Reputation: 95
I am creating an azure logic app workflow with try & catch scope to capture specific exception message happens in one of actions within try scope.
As per the documentation, I am filtering Failed status of result('try') but still getting generic message " An action failed. No dependent actions succeeded." even when I try to capture body('Filter_array')?[0]?['error']?['message']
I followed this article & azure documentation as well but no luck: https://www.tech-findings.com/2022/06/Exception-Handling-in-Logic-app.html
Upvotes: 0
Views: 1527
Reputation: 11253
I have reproduced in my environment and got expected results try to follow below process then you will get output as I got:
Firstly, I have taken trigger and initialized variable as:
Then I have used scope as below:
Then I have set variable as below to get error (using this scope as try):
Then I added another scope to catch with run after as below (Using this scope as Catch):
Then i filtered array as:
Then composed it as :
Output:
The Scope(Try) error is composed into Scope2(Catch) as below:
Try to follow above steps you will get output as I got, I guess this clears all your doubts.
Upvotes: 1