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

Having random Unauthorized error when adding row into a table

Part of my flow is an action which adds a row into an excel table and is part of an "apply to each". The strange thing is that sometimes the action works (in 15 instances of the for each worked) and others it fails simply saying "Unauthorized" which leaves me without any clue on how to fix it. Any ideas ? Flow below:

excel-flow-error.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
lazevedo
Level: Powered On

Re: Having random Unauthorized error when adding row into a table

Thanks for the recomendations but neither of them worked.

What improved the issue was putting a timer delay after adding a row of 5s. Means for each row to insert into the excel file it waits 5seconds in between, that decreased considerably the issue having very rarelly the unthorized issue. 

 

excel-issue-delay.PNG

View solution in original post

5 REPLIES 5
v-lin-msft
Level 10

Re: Having random Unauthorized error when adding row into a table

Hi @lazevedo,

 

I have made a test on my side and the flow works well, and my flow work status like this.Annotation 2019-05-07 120712.png

 

 

Please check if the connection to your "Add a row into a table" action is invalid, if yes, please update the connection to the action and then try your flow again. In addition, you could also re-create a new connection to this action and then try your flow again to check if the issue is solved.

 

If you still have the problem, please show us more screenshots so we can help you find the source of the problem.

 

Best Regards,

Community Support Team _ Lin Tu

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

lazevedo
Level: Powered On

Re: Having random Unauthorized error when adding row into a table

The flow works most of the time. I mean, the apply for each is going through an array of entries and most of the entries are added to the excel but exporadicly some aren't , giving the "Unauthorized" error. As you can see in the images below the iteration 4 gives an error while the iteration 5 adds the row without any issues, same connection, same everything. And then the 6 and "beyond" are also ok:

 

eror-flow.pngiteration flow errorfine-flow.pngiteration flow ok

 

 

cbowe
Level: Powered On

Re: Having random Unauthorized error when adding row into a table

I'm experiencing the same issue, I'm creating a new flow using the "Excel Online (Business)" connector to add rows to an Excel table on Sharepoint and intermittently getting a "Unauthorized" error when its in the middle of looping through the data its adding. If one of the flow submissions fails i can rerun the flow again without changing anything and it sometimes works totally fine the second time, other times it'll fail on a different row with the same "Unauthorised" error.

v-lin-msft
Level 10

Re: Having random Unauthorized error when adding row into a table

Hi @lazevedo,

 

Please check whether the data in your table is normal, whether every row has data, and whether the data format is correct.

 

Best Regards,

Community Support Team _ Lin Tu

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

lazevedo
Level: Powered On

Re: Having random Unauthorized error when adding row into a table

Thanks for the recomendations but neither of them worked.

What improved the issue was putting a timer delay after adding a row of 5s. Means for each row to insert into the excel file it waits 5seconds in between, that decreased considerably the issue having very rarelly the unthorized issue. 

 

excel-issue-delay.PNG

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!

Top Kudoed Authors (Last 30 Days)
Users online (5,363)