Failed to make directory: invalidRequest: Name is reserved for list forms folder

What is the problem you are having with rclone?

rclone doe not create folders named "forms" when cloning to Sharepoint Online. Folders named "forms" are not allowed in the root of SharePoint Document Libraries, but are allowed anywhere else. rclone should have no issue creating the "forms" folder.

If the folder is created manually, rclone can copy the files into the folder.

rclone throws this error:

2023-03-11 08:42:42 ERROR : AAAA/Dep/Releases/Forms/170917 Authorization Release Phone Records bup.docx: Failed to copy: failed to make directory: invalidRequest: Name is reserved for list forms folder.

Run the command 'rclone version' and share the full output of the command.

rclone v1.61.1

  • os/version: Microsoft Windows Server 2012 R2 Standard (64 bit)
  • os/kernel: 6.3.9600.20821 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Sharepoint Online

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone.exe sync E:\shares\Data\DOCS\ DOCS:\ --progress --ignore-checksum --ignore-size user-agent "ISV|rclone.org|rclone/v1.61.1" --checkers 1 --exclude "/zRecycle/**" -vv

The rclone config contents with secrets removed.

[DOCS]
type = onedrive
token = {"access_token":"e..F","expiry":"2023-03-11T09:52:38.0600138-07:00"}
drive_id = b...T
drive_type = documentLibrary

A log from the command with the -vv flag

PS E:\Users\wlfadmin.WLF\OneDrive - WLF\Desktop> rclone.exe sync E:\AAA-forms-test DOCS:\AAA-forms-test --progress --ignore-checksum --ignore-size --user-agent "ISV|rclone.org|rclone/v1.61.1" --checkers 1 --exclude "/zRecycle/**" -vv
2023/03/11 09:43:48 DEBUG : rclone: Version "v1.61.1" starting with parameters ["C:\\Windows\\system32\\rclone.exe" "sync" "E:\\AAA-forms-test" "DOCS:\\AAA-forms-test" "--progress" "--ignore-checksum" "--ignore-size" "--user-agent" "ISV|rclone.org|rclone/v1.61.1" "--checkers" "1" "--exclude" "/zRecycle/**" "-vv"]
2023/03/11 09:43:48 DEBUG : Creating backend with remote "E:\\AAA-forms-test"
2023/03/11 09:43:48 DEBUG : Using config file from "C:\\Users\\wlfadmin.WLF\\AppData\\Roaming\\rclone\\rclone.conf"
2023/03/11 09:43:48 DEBUG : fs cache: renaming cache item "E:\\AAA-forms-test" to be canonical "//?/E:/AAA-forms-test"
2023/03/11 09:43:48 DEBUG : Creating backend with remote "DOCS:\\AAA-forms-test"
2023/03/11 09:43:49 DEBUG : fs cache: renaming cache item "DOCS:\\AAA-forms-test" to be canonical "DOCS:AAA-forms-test"
2023-03-11 09:43:50 DEBUG : OneDrive root 'AAA-forms-test': Waiting for checks to finish
2023-03-11 09:43:50 DEBUG : OneDrive root 'AAA-forms-test': Waiting for transfers to finish
2023-03-11 09:43:51 DEBUG : empty.docx: Starting multipart upload
2023-03-11 09:43:52 ERROR : FORMS/empty.docx: Failed to copy: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2023-03-11 09:43:53 DEBUG : empty.docx: Uploading segment 0/18269 size 18269
2023-03-11 09:43:55 INFO  : empty.docx: Copied (new)
2023-03-11 09:43:55 ERROR : OneDrive root 'AAA-forms-test': not deleting files as there were IO errors
2023-03-11 09:43:55 ERROR : OneDrive root 'AAA-forms-test': not deleting directories as there were IO errors
2023-03-11 09:43:55 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2023-03-11 09:43:55 DEBUG : empty.docx: Size and modification time the same (differ by 0s, within tolerance 1s)
2023-03-11 09:43:55 DEBUG : empty.docx: Unchanged skipping
2023-03-11 09:43:55 DEBUG : OneDrive root 'AAA-forms-test': Waiting for checks to finish
2023-03-11 09:43:55 DEBUG : OneDrive root 'AAA-forms-test': Waiting for transfers to finish
2023-03-11 09:43:56 ERROR : FORMS/empty.docx: Failed to copy: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2023-03-11 09:43:56 ERROR : OneDrive root 'AAA-forms-test': not deleting files as there were IO errors
2023-03-11 09:43:56 ERROR : OneDrive root 'AAA-forms-test': not deleting directories as there were IO errors
2023-03-11 09:43:56 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2023-03-11 09:43:57 DEBUG : empty.docx: Size and modification time the same (differ by 0s, within tolerance 1s)
2023-03-11 09:43:57 DEBUG : empty.docx: Unchanged skipping
2023-03-11 09:43:57 DEBUG : OneDrive root 'AAA-forms-test': Waiting for checks to finish
2023-03-11 09:43:57 DEBUG : OneDrive root 'AAA-forms-test': Waiting for transfers to finish
2023-03-11 09:43:58 ERROR : FORMS/empty.docx: Failed to copy: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2023-03-11 09:43:58 ERROR : OneDrive root 'AAA-forms-test': not deleting files as there were IO errors
2023-03-11 09:43:58 ERROR : OneDrive root 'AAA-forms-test': not deleting directories as there were IO errors
2023-03-11 09:43:58 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: invalidRequest: Name is reserved for list forms folder.
Transferred:       17.841 KiB / 17.841 KiB, 100%, 2.548 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 2 / 2, 100%
Transferred:            1 / 1, 100%
Elapsed time:        10.1s
2023/03/11 09:43:58 INFO  :
Transferred:       17.841 KiB / 17.841 KiB, 100%, 2.548 KiB/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 2 / 2, 100%
Transferred:            1 / 1, 100%
Elapsed time:        10.1s

2023/03/11 09:43:58 DEBUG : 7 go routines active
2023/03/11 09:43:58 Failed to sync: failed to make directory: invalidRequest: Name is reserved for list forms folder.
PS E:\Users\wlfadmin.WLF\OneDrive - WLF\Desktop>

That error is direct from the API so not much rclone can do about it.

"forms" seems to be a reserved name that you can't use that way.

Yup, looks that way:

"Error when creating folder named "Forms" in Sharepoint · Issue #1671 · OneDrive/onedrive-api-docs · GitHub"

I wonder if this is a regression in the API.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.