-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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>