cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How do i handle 404 error of file not found in power automate?

By using power automate, I am copying file from SharePoint folder to blob storage and passing the file name to service bus message queue . and for that I am using Get File Content Using Path action.

 

Now there will be scenario where the path will not be present i.e. the file will not be present in SharePoint library. in that case, it gives me error 404, file not found and it does not execute the further step of passing message to Service bus Queue.

 

I would like to handle this error so that in case of file not found, I pass message to Service bus as file not found. Is it possible that I skip the step in case there is 404 error???

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Super User
Super User

Hi @Anonymous 

 

Have a look at the try catch finally template https://flow.microsoft.com/en-us/galleries/public/templates/e8e028c6df7b4eb786abdf510e4f1da3/try-catch-and-finally-template/

 

Here you can trigger different stages based on the outcome of the previous step or scope.  This might help you group together the different stages and run different branches depending on outcome.

 

Worth investigating the configure run after step

 

DamoBird365_0-1614800304437.png

Damien

View solution in original post

1 REPLY 1
DamoBird365
Super User
Super User

Hi @Anonymous 

 

Have a look at the try catch finally template https://flow.microsoft.com/en-us/galleries/public/templates/e8e028c6df7b4eb786abdf510e4f1da3/try-catch-and-finally-template/

 

Here you can trigger different stages based on the outcome of the previous step or scope.  This might help you group together the different stages and run different branches depending on outcome.

 

Worth investigating the configure run after step

 

DamoBird365_0-1614800304437.png

Damien

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,539)