cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ankit77
Helper II
Helper II

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 @Ankit77 

 

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

 

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 @Ankit77 

 

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

 

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,798)