cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jordib
Level: Power Up

repeat step in case of error

Hello, I am making a flow that is the following: when creating or modifying a file in a sharepoint, copy it to a path of a local computer. I would need it to be repeated after 30 min.
1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: repeat step in case of error

Hi @Jordib 

 

The Flow will run at the background even if the PC is out of network

 

If you go to the settings action for your Flow action for file system

you can set the retry policy as a fixed interval

Set counter to 90 (it will try 90 times)

Set interval as PT30M

 

this will ensure the action keeps retrying for 30 mins 90 times if it fails

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

7 REPLIES 7
Super User
Super User

Re: repeat step in case of error

@Jordib 

To accomplish your goal, you'll need to use the File System Connector.  The file system connector requires that you install and configure the On-Premises Data Gateway on your computer.   Here is a link to documentation on the File System Connector.

 

There are a number of templates that use the File system connector and SharePoint - I suggest that, once you install the data gateway, you create a Flow using one of the templates to gain experience with the File system connector.

 

To create your Flow, you'll want to use a recurrence trigger and a SharePoint Get items action along with an OData filter so that you only retrieve items that are modified within the last hour.

 

Please post here if you need additional help once the data gateway is installed.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Jordib
Level: Power Up

Re: repeat step in case of error

Hello, thanks for answering. The flow is already created. I just need that in case of error the process is repeated automatically after 30 min or 1 h
Super User
Super User

Re: repeat step in case of error

@Jordib 

Please post a screen shot of your Flow and I will assist.  The error handling may involve involve changing the retry settings as well as configuring the run after settings.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Highlighted
Jordib
Level: Power Up

Re: repeat step in case of error

The flow works correctly, I want the repetition in case the PC is out of network or off

Super User
Super User

Re: repeat step in case of error

@Jordib 

I undertsand that the Flow is functioning correctly.  However, it is difficult to tell you how to configure it for your requiremenst without seeing it.

One technique would be to use a variable - make it a boolean and initialize it to false.  Place the action that that is going to error our inside of a do until loop.  Immediately after the action that may error, include a delay action.   Configure the run after settings on thedelay to run only if the action before it has failed.  Next, configure a set variable action to run only if the action before it (the delay action) is skipped.  In this action, set the variable to true. 

The Do until loop will time out in one hour by default.  Make sure that you change the timeout by click on change limits in the action.

The loop should run until the variable equals true.

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Jordib
Level: Power Up

Re: repeat step in case of error

Hello,
Could you send me a sample capture? many thanks

 

Captura.JPG

 

Dual Super User
Dual Super User

Re: repeat step in case of error

Hi @Jordib 

 

The Flow will run at the background even if the PC is out of network

 

If you go to the settings action for your Flow action for file system

you can set the retry policy as a fixed interval

Set counter to 90 (it will try 90 times)

Set interval as PT30M

 

this will ensure the action keeps retrying for 30 mins 90 times if it fails

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users Online
Currently online: 205 members 5,484 guests
Recent signins:
Please welcome our newest community members: