cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RiccoHipp1903
Resolver II
Resolver II

ErrorHandling doesnt work

Hello guys,

 

I encountered the following problem. 

 

For my flow(s) I have a Try/catch/finaklly Scope defined to Handle any error, so that the flow constantly beeing succeded even if an error occurs.

 

For Support, if something with the flow is false, I try to recieve the error, package it up in a mail an send it.

So far so good. I found a solution 

RiccoHipp1903_0-1651042493449.png

Get the result('try'), parse it in json with a schema, select the necessary items and write it in an HTML Table attached later to an mail.

 

Works fine...Sometimes. The Problem is, that sometimes the Schema doesn't work. For example:

RiccoHipp1903_1-1651042687894.png

worked really well....

 

RiccoHipp1903_2-1651042938274.png

Here not. 

The Schema doesnt work for all results, and I don't knwo how to handle that.....

What can I do to handle it correctly ?
Doe you need more information?

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User
Super User

Hello @RiccoHipp1903  ,

I tried to do the same in the past, but I failed in the same way - the JSON schema changed and it didn't work. In the end I decided to send just a link to the failed flow as you'll have to open the flow anyway.

concat('https://flow.microsoft.com/manage/environments/', workflow()?['tags']['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])


[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

1 REPLY 1
tom_riha
Super User
Super User

Hello @RiccoHipp1903  ,

I tried to do the same in the past, but I failed in the same way - the JSON schema changed and it didn't work. In the end I decided to send just a link to the failed flow as you'll have to open the flow anyway.

concat('https://flow.microsoft.com/manage/environments/', workflow()?['tags']['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])


[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,630)