OneDrive ObjectHandle Invalid error with new Microsoft accounts
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 59.9k
- Forks
- 5.4k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 48
Description
The associated forum post URL from https://forum.rclone.org
I will create a forum post if this issue needs further discussion.
What is the problem you are having with rclone?
OneDrive configurations fail with "ObjectHandle is Invalid" error on newly created Microsoft accounts, while older Microsoft accounts work perfectly. This appears to be related to Microsoft's infrastructure changes for accounts created after a certain date.
Error Details:
Failed to query root for drive "b!qWHy76K4fkSwgZeaoE1M0XP9zl6BO3lHuw-nlPuG8CTwyaF7SpDkRK55CLhDd0Dc": HTTP error 400 (400 Bad Request) returned body: "{"error":{"code":"invalidRequest","message":"ObjectHandle is Invalid","innerError":{"date":"2025-07-18T18:35:57","request-id":"d701d8ca-0227-4129-88bb-702bef0eeeef","client-request-id":"d701d8ca-0227-4129-88bb-702bef0eeeef"}}}"
Pattern Observed:
✅ Old Microsoft accounts (created before ~2023): Work perfectly
❌ New Microsoft accounts (created 2024-2025): Consistent "ObjectHandle is Invalid" error
❌ This affects ALL new accounts: @hotmail.com, @outlook.com, Office 365 Family accounts
❌ Error occurs on multiple computers, ruling out local configuration issues
Steps to Reproduce:
Create a fresh Microsoft account (any type: @hotmail, @outlook, Office 365)
Configure rclone with OneDrive using the new account
Initial sync may work partially
Subsequent operations fail with ObjectHandle Invalid error
Expected Behavior:
New Microsoft accounts should work the same as older accounts.
Troubleshooting Already Attempted:
Completely deleted and recreated rclone configurations
Tested on multiple computers
Revoked application permissions in Microsoft account settings
Tested with different account types (personal, Office 365 Family)
Cleared all tokens and re-authenticated
The issue is reproducible with any newly created Microsoft account
What is your rclone version (output from rclone version)
C:\rclone>rclone version
rclone v1.70.3
- os/version: Microsoft Windows Server 2019 Standard 1809 (64 bit)
- os/kernel: 10.0.17763.6893 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: cmount
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Windows10 y Windows11
Which cloud storage system are you using? (e.g. Google Drive)
Microsoft OneDrive (Personal and Office 365 Family accounts)
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
N/A
Please run 'rclone config redacted' and share the full output. We need this information to help you.
C:\rclone>rclone config redacted
[GoogleDriver]
type = drive
scope = drive.file
token = XXX
team_drive =
[Nas]
type = smb
host = XXX
user = XXX
pass = XXX
domain = XXX
[OneDriver]
type = onedrive
token = XXX
Double check the config for sensitive info before posting publicly
C:\rclone>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the failure with rclone v1.70.3 and a newly created Microsoft account, then trace the OneDrive operation that queries the root drive and compare it with an older working account. Done means establishing a supported handling or confirmed workaround for the ObjectHandle error, with regression coverage if the cause is controllable in rclone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100