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

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.


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:


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


Best Regards,


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.
Level: Powered On

Re: Flow OneDrive unauthorised error?


 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.





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

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


New & Improved Power Automate Community Cookbook

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


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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