Error Handling and Creating a Detailed Log in Power Automate - Beginners Tutorial

preview_player
Показать описание
This tutorial shows how to create advanced error handling in Microsoft Power Automate. Based on the outcome of the errors, we make a detailed log in Excel.

VIDEOS FOR YOU:

POWER AUTOMATE GROUPS:
- Join my network with 4500+ Automation/RPA developers, where we solve Automation/RPA problems, network, and help each other upgrade our careers. It's free!

FOLLOW ME:

0:00 Configure run after
Power Automate flows will terminate when they face an error. Therefore we do error handling so that we can continue after an error. In the action following the action with an error, you change the Configure run after setting and specify that this action should run after the previous action failed. Then we can see the status and error message of a failed action. Finally, we create an expression for the flow name to use in our log. This has the advantage that if the flow name changes, we use the updated name in our log.

19:32 Try, Catch, Finally
In programming, a Try, Catch, Finally block is used to handle errors. This is not natively built into Power Automate, but it's straightforward to create. A Try Catch Finally block consists of three scopes. In the Try, we place the actions likely to produce an error. The Catch performs the things when we have an error in the Try. The finally runs whether or not we have an error in the Try.

29:19 A More Detailed Log
We get the flow's date and URL in scope. With the URL, we let the user get a direct link to the failed (or successful) Power Automate flow. Finally, we'll email the detailed log and terminate the flow (= set the status to Failed).

37:03 Error Handling and Log for Multiple Transactions
Now we iterate through an Excel sheet, perform calculations and update log fields about the transaction. We still use our Try Catch Finally framework.

#powerautomate #powerplatform #office365
Рекомендации по теме
Комментарии
Автор

It is one of 'The Best' tutorials I have ever watched on YouTube. Perfect.

shaibeezz
Автор

Thank you. I followed every step you did in this video and got much better understanding of Power Automate.

kellyscott
Автор

super vidéo très pédagogique.

l'auteur précise en cours vidéo que l'anglais n'est pas sa langue maternelle, ce qui le rend compréhensible facilement.
il articule et il ne parle pas trop vite, on le comprend donc bien bien.

great video very educational.

the author clarifies in the video that English is not his native language, which makes it easily understandable.
he articulates and he doesn't speak too quickly, so we understand him very well.

ty for your work

sylvainchermanne
Автор

I love you 🥰 very detail way to show exception handling

gurbachhansingh
Автор

Very helpful tutorial, well explained!
'MS API is busy' part at the end was funny 😂

discrate
Автор

Wonderful Couse, My Advice to every beginner wants to learn Power Automate like me to watch these videos here at this channel
I would like to thank this wonderful trainer my brother Anders (My brother in humanity)
Thanks a lot

khaledalaqqad
Автор

Thanks for your video Anders,

Very nice concept with very clear way to teach again.

I realised why we should apply all the steps together with you during the video, I've made many mistakes 🙂 Also expressions look more complex in video but I realised it is very easy to use them when I try.

All the best.

SalihKocaSK
Автор

Thanks for your guide however i could not manage to pull scope try catch into "apply to each". It showed error "This action cannot be dragged into foreach as an action outside foreach depends on it.

eygegfu
Автор

Try to increase concurrency control to speed up the apply to each step.
Concurrency Control is found in apply to each settings.

Max allowed is 50 concurrency.

mdhidayat
Автор

These videos has been done using old designer, which confused me. Then I noticed that there is a button in upper corner of designer table to switch Power Automates' new designer on and off. The new designer BTW shows easy way to read OUTPUT JSON data. (Check the raw data iputs/raw outputs in flow results of activity ).

kariluonteri
Автор

very nice video just a quick tip, you do not need to use ? multiple times when marching through the JSON, you can write all into one [] and use /

KleinmeisterPang
Автор

Superb Thank you very much. I want to hug you. Please create similar try catch for logic app. One request

gurbachhansingh
Автор

How are you opening in browser. I don't see any option to use power automate in browser. How to do it? Please tell me

chandanmaity
Автор

I can't see the raw output of the activities, I don't know why it just shows me numbers or error.

SrdjanS_Automations