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

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard