cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

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
Highlighted
Post Prodigy
Post Prodigy

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.

Highlighted
Frequent Visitor

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:

 

iteration flow erroriteration flow erroriteration flow okiteration flow ok

 

 

Highlighted
Regular Visitor

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.

Highlighted
Post Prodigy
Post Prodigy

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.

Highlighted
Frequent Visitor

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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Users online (9,133)