web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow OneDrive unauthor...
Power Automate
Unanswered

Flow OneDrive unauthorised error?

(0) ShareShare
ReportReport
Posted on by 300

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,

This is the error in "CReate file "in OnedriveThis is the error in "CReate file "in Onedrivethe error detailsthe error detailsThis is the step in my Flow.This is the step in my Flow.

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    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

  • luuminhvuong93 Profile Picture
    300 on at

    @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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 225

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard