cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lazevedo
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

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

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.

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

 

 

Anonymous
Not applicable

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.

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.

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,387)