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

Flow OneDrive unauthorised error?

Hi guys,

I am using a Flow in PowerApps to allow saving captured Images in my app and upload to Onedrive folder (mine is for Business)

I am using the technique in this link and a small modification

https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

I tested the app on my phone, which worked just fine, save multiple photos into my new folder.

When another employee use my app , the flow encouter an error.

I check where the error is - is on the final step of "Create file" in OneDrive.

of "Createfile_Folderpath" - which I used Ask in Powerapps to create a new folder in Onedrive with some text input.

The error says "UNAUTHORIZED" like in the photo below.

I saw on their phone, when opening my Powerapps app, it already requested access to his own Onedrive 

So why cant the flow run?

Can anyone please help me,

Thanks so much,

flow error 01.PNGThis is the error in "CReate file "in Onedriveflow error 02.PNGthe error detailsflow error 03.PNGThis is the step in my Flow.

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Flow OneDrive unauthorised error?

Hi @luuminhvuong93,

 

Could you please share more details about the configuration of your flow and PowerApps?

 

I am afraid that other employees need to be authenticated when uploading files to OneDrive for Business folder, otherwise there will be a "UNAUTHORIZED" error.

 

If the error code 401 appears and the error message contains "Unauthorized", the failure is always an authentication error. You could usually fix an authentication error by updating the connection.

 

More details please check this doc for a reference:

https://docs.microsoft.com/en-us/flow/fix-flow-failures

 

Please take a try and let me know if issue still exists.

 

Best Regards,

Barry

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

Re: Flow OneDrive unauthorised error?

@v-bacao-msft

 I read the article you mentioned but not sure what you mean by "updating the connection".?

 

 

I tried to change from Create File in OneDrive to Sharepoint, but this final step is still failed (other previous steps worked fine)

 

Below is the download Flow package that use in my Powerapps.

 

https://app.box.com/s/5c0v17gm8l3el55jnwbi3dcvyo1zpd8w

 

 

 

 

This is the trigger in my PowerApps. Basically, I have the camera control to create a collection of 2 column (url is the PHoto and the id)

The the Submit Button will collect this into the string....

The method actually is from https://techmikael.com/2017/05/saving-collection-of-images-from.html

I think the problem is maybe somehow only I am allowed to create the file, not other users?

 

They clicked allowed when Powerapps asked for the permission to use the account for Onedrive Business/ SharePoint Online.

 

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,670)