cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DuaneBergh
Level: Powered On

Flow running twice

Ive got a flow that imports rows from an excel doc into a sharepoint list when a new xls file is uploaded into a ondrive document library. The flow is working as expected but runs runs twice for each document. Has anyone else had this problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Flow running twice

Hi @DuaneBergh,

 

If you use "When a file is created (metadata only)" trigger, you should fill File name field with Id content of the trigger in "Get rows" action. Please take a try with the following configuration:22.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
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

5 REPLIES 5
Community Support Team
Community Support Team

Re: Flow running twice

Hi @DuaneBergh,

 

Could you please share a screenshot of your flow’s configuration?
Is the new excel file uploaded into OneDrive document library?

I have made a test on my side and don't have the issue that you mentioned. Please take a try with the following workaround:19.JPG

 The flow works successfully as below:20.JPG

Please check if another file is created in your OneDrive document library when the new excel file is uploaded into OneDrive document library.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DuaneBergh
Level: Powered On

Re: Flow running twice

Hi,

 

Yes the file is upoaded to OneDrive. My flow is configured the same but uses the "When file is created" action. If I use "When a file is created (metadata only)" I dont get the option to select File identifier in the get rows action.

 

 Capture.PNG

Community Support Team
Community Support Team

Re: Flow running twice

Hi @DuaneBergh,

 

If you use "When a file is created (metadata only)" trigger, you should fill File name field with Id content of the trigger in "Get rows" action. Please take a try with the following configuration:22.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
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

anhthuch4ng
Level 8

Re: Flow running twice

@DuaneBergh - did you get a chance to apply @v-xida-msft's suggestions to adjust your Flow?

 

If yes and you are satisfied with that as a solution, please go ahead and mark this as solved. 🙂

 

Cheers,

-AT

Highlighted
JosephBoland
Level: Powered On

Re: Flow running twice

There is another possible cause of a flow running twice in this scenario ("excel doc into a sharepoint list when a new xls file is uploaded into a ondrive document library").  The scenario requires defining a table in the Excel doc.  If, inadvertently, one or more rows are left outside the defined table, Flow's behavior will be to run twice over the total set of rows (in and outside the table space).  This occurred for a two row test Excel document in which one row was in, the other outside of, the table.  I didn't do any further experiments with other combinations of rows in and outside of the table.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

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 (4,870)