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 / One Drive File ID has ...
Power Automate
Unanswered

One Drive File ID has changed.

(3) ShareShare
ReportReport
Posted on by 14

I have a couple of automations that grab files out of OneDrive when they are created and move them to sharepoint. The flows have been working just fine for a few years. Suddenly they are not.

I am getting this error trying to access the contents of the file after getting the file properties of the file:


{
"status": 400,
"message": "The file id '0123456789ABCDEF!s0123456789abcdef0123456789abcdef' is not valid.",
"source": "api.connectorp.svc.ms"
}


So going back to the runs that worked it seems that every One Drive file had an ID like this:

 

0123456789ABCDEF!01234

 

where the part after the ! is unique. The part before I assume represents my account.

From the runs that fail, the ID looks like this:

 

0123456789ABCDEF!s0123456789abcdef0123456789abcdef

 

Where again, the part before the ! looks like my account and the part after looks like the unique file id. But the service, api.connectorp.svc.ms does not accept it.

 

The FileLocator is identical to the Id and there is nothing else that looks like an Id I could use.


So, what do I do to fix this?

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Can you please post a screenshot of your flow in design mode?

     

  • vz333 Profile Picture
    14 on at

    vz333_0-1711063393017.png

    Nothing special. Gets a file in step 1, supposed to get the contents in step 2 but fails now.

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    On surface your flow looks okay but maybe the reference Ids could have changed.

    There is a template you can use

    Move file from OneDrive for Business to SharePoint and notify me | Microsoft Power Automate

    SudeepGhatakNZ_0-1711068668091.png

     

     

  • vz333 Profile Picture
    14 on at

    This works better as it avoids the two steps I took before to get file contents to create the sharepoint file. I am not sure why I had two steps before, but it was working for years so there was no reason to visit it until now. 

    However, even though the file id was not needed to create the sharepoint file now, it is used in the above template to delete the OneDrive file afterwards. And it still does not like the new file id.

     

    vz333_0-1711078131312.png

    So, this gets me closer to what I need. But there is an underlying problem with OneDrive's new file id length, I feel, as the api call used to manipulate the file does no like it.

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Are you sure you are specifying the File Identifier field and not the Id field?

     

  • vz333 Profile Picture
    14 on at

    Of course.

    vz333_0-1711078918163.png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Just tested successfully at my end. I am out of ideas atm.

    SudeepGhatakNZ_0-1711079496470.png

     

     

  • vz333 Profile Picture
    14 on at

    Your file ID is much different than mine. Also, I did not use OneDrive for business. I am using OneDrive Personal as this an at home project. That may be where the difference lies.

  • vz333 Profile Picture
    14 on at

    Thanks for your help. For now, at least, I have replaced OneDrive with an alternative option and all is good with the flow.

  • dev@iwasaki Profile Picture
    3 on at
    Were you able to resolve this issue? The exact same thing is happening again after the Microsoft-Crowdstrike outage. It seems that only newly created files in OneDrive are affected (proven after multiple testing).

    I'd appreciate it if anyone can provide any solutions on this. THANK YOUUUU!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard