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 / OneDrive for Business ...
Power Automate
Unanswered

OneDrive for Business "Copy File" Unauthorized Error

(4) ShareShare
ReportReport
Posted on by 14

Hi,

 

I encountered a strange behaviour / bug in the "Copy File" Action in my Cloud flows.

 

I have a flow with a trigger "When a file is modified (properties only)":

  • File is opened with "Get file content".
  • Content is checked.
  • If this check is true, the file is copied to another place with "Copy File".

The "Copy File" returns an 401 error

 

{
 "status": 401,
 "message": "Unauthorized",
 "source": "api.connectorp.svc.ms"
}

 

But if I look in the OneDrive for Business Folder, the files is copied correcty. 

 

I also implemented a delay of 30 seconds before copying the file and created a new Manual Cloud Flow which has only the "File Copy"-Action. Same problem there.

 

The Flow is triggered at least once a month and at beginning of April, the flow was executed correctly.

 

Does somebody has encountered an similar problem? For me, it looks like the action is returning a wrong status code, despite working correctly.

 

Any ideas or feedback would be great.

Categories:
  • 8BitWarrior Profile Picture
    68 on at

    I am also experiencing the above issue (since May 2nd) with workflows that have been running without issue for years. Now all of a sudden the OneDrive for Business Copy file steps are failing with an Unauthorized error. 

    Copy_File_Unauthorized_error.pngCopy_File_body_error.png





    Hoping to get a resolution to this issue soon.

  • CU24100807-0 Profile Picture
    11 on at

    I am in the same situation. Copy file with OneDrive for Business is failing in all the flows 

    mcrislg_0-1715004760772.png

    It has no sense. They were working correctly before

     

  • Lundsteen Profile Picture
    on at

    Happen to me too.

    Lundsteen_0-1715059401087.png

     

  • asthalon628 Profile Picture
    2 on at

    I encountered the same issue. There's an open service advisory right now for issues with Convert File (OD789650) and I have to wonder if it isn't related.

     

    At any rate, I implemented a workaround in my affected flow by following the Copy Activity on failure with a Get File Metadata Using Path action against the destination path of the Copy, to validate the presence of the file. If you're actually overwriting you need to do a bit more work validating attributes, but if the Copy is a new file then presence is ideally good enough.

     

    asthalon628_0-1715099039550.png

     

  • CU24100807-0 Profile Picture
    11 on at

    Certainly, I've just implemented this and it has worked.

     

    All the same, this morning  my flow was working correctly without having made any changes. Sometimes I can't understand these mysteries....

  • JK_80 Profile Picture
    14 on at

    @mcrislg wrote:

    Certainly, I've just implemented this and it has worked.

     

    All the same, this morning  my flow was working correctly without having made any changes. Sometimes I can't understand these mysteries....


    Didn't make any changes yet, but flow has still errors. But it could be that they are implementing a fix, which is not available in all datacenter regions yet.

     

    I'll keep an eye on issue MO791038, which replaces OD789650 to see if anything works again, if this issue is resolved. If not the issue has to be reported somehow, because who knows, what else is affected.


  • HenryPF Profile Picture
    30 on at

    We are experiencing the same issue. A flow that's worked perfectly for months and which we haven't touched, is now giving us "Unauthorized" errors at the Copy File action. 

  • JK_80 Profile Picture
    14 on at

    Connector seems to work again as expected. Today I got no error.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard