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?
Thanks for your help. For now, at least, I have replaced OneDrive with an alternative option and all is good with the flow.
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.
Just tested successfully at my end. I am out of ideas atm.