Cloud Sync /w OneDrive Personal suddenly broken due to subfolder

Hi guys,

around a month ago I setup my (first) TrueNAS scale. Up until now, everything runs flawlessly. I use it as local SMB storage, backup storage for TimeMachine etc.

I also set it up do sync and backup all of my cloud storages (OneDrive Personal, OneDrive Business, Google Drive & DropBox).

All of these Cloud Syncs worked like a charm. But after a few days of running, OneDrive Personal suddenly “failed” (it worked initially for a few days and was setup to sync every hour).

I thought it might be a bug or an outage of a cloud gateway, but nothing changed back to normal.

I waited for a software update and installed TrueNAS 25.04.2 when it came around. Nothing changed. Job is still failing. I verified the credentials work, tried setup a new Cloud Sync, tried changing the sync direction, nothing works.

I always got this error message

" Error: 2025/08/06 17:50:28 ERROR : Persönlicher Tresor: error reading source directory: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:28 ERROR : Attempt 1/3 failed with 1 errors and: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:28 ERROR : Persönlicher Tresor: error reading source directory: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:28 ERROR : Attempt 2/3 failed with 1 errors and: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:29 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 1.1s

2025/08/06 17:50:29 ERROR : Persönlicher Tresor: error reading source directory: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:29 ERROR : Attempt 3/3 failed with 1 errors and: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/06 17:50:29 Failed to copy: couldn’t list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid"

Took a while for me to realize that apparently it has an issue with one specific subfolder “Persönlicher Tresor” which translates to “Personal Vault” and is apparently a feature within OneDrive Personal. It`s not a feature I actively use and I have excluded this from the sync now, but it hinders me from syncing my entire OneDrive Personal folder incl.

Is this a know bug/limitation and if not, anyone know how to forward this to the maintainers so it can be fixed eventually?

Thanks in advance

Under the hood TrueNAS is using rclone for this feature. The rclone community has been tracking a recent regression in OneDrive Personal sites whereby the Personal Vault folder has become visible to third party clients, which are not compatible with the Vault directory.

In the link above there is a specific citation to this issue on TrueNAS 25.04.1. The user there reports that adding /Personal Vault/** to the excludes in the sync job fixed it for them. From my personal use of rclone that syntax should be correct, but a caveat: I have not used OneDrive Personal with TrueNAS Cloud Sync.

Edit to add: rclone docs covering exclusion are here.

1 Like

Thanks, I came across the linked post a day or two after I noticed it first. But neither of the posted syntaxes seemed to help (regardless of if I specify “Personal Vault” or “Persönlicher Tresor”). That`s why I started wondering if TrueNAS utilizes rclone for “Cloud Sync” or something else.

I guess Im either doing something wrong syntax wise atm or something else has changed. In any way, I now know there is an underlying issue/regression that is already being tracked and I hope it gets fixed eventually and for now, Ill exclude it the way I did and contact fu*** MS support (my ex-parent company… sigh) to permanently disable this useless feature for me since it can`t be disabled by the end user anymore (I know this worked a couple of years ago because I turned it off for a friend).