Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating folder named "Forms" in Sharepoint #1671

Closed
1 of 3 tasks
kotsak opened this issue Feb 21, 2023 · 12 comments
Closed
1 of 3 tasks

Error when creating folder named "Forms" in Sharepoint #1671

kotsak opened this issue Feb 21, 2023 · 12 comments
Labels

Comments

@kotsak
Copy link

kotsak commented Feb 21, 2023

Category

  • Question
  • Documentation issue
  • Bug

Observed Behavior

I am receiving an HTTP 400 Bad Request when trying to create a folder named "Forms" on Sharepoint Online. I am aware that such name is reserved and not allowed to be used as a folder name in the root of a document library but in my case (and in our customer's case, who brought this up) the folder is being created in a subfolder. I have no problem creating it manualy via the Office 365 Sharepoint web page but the API rejects it. Here is the HTTP request/response:

POST /sites/testing/_api/v2.0/drives/b!6vsuLOWBgEOykKqKKn_2GOCi2Z7HpZdNowmxO8Iou6iXnD66Xu-QQqrNl1tNMQXR/items/01ESVDJ3REA53NJMG7G5FZBVOPQFTLTJ57/children
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
Content-Length: 28
Authorization: Bearer [snip]
Host: [snip]
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: [snip]


{"name":"Forms","folder":{}}

HTTP/1.1 400 Bad Request

Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Length: 87
Content-Type: application/json
Expires: -1
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
X-NetworkStatistics: 0,525568,0,0,351755,0,525568
X-SharePointHealthScore: 0
X-VroomVersion: 2.0
X-DataBoundary: NONE
X-1DSCollectorUrl: https://mobile.events.data.microsoft.com/OneCollector/1.0/
X-AriaCollectorURL: https://browser.pipe.aria.microsoft.com/Collector/3.0/
SPRequestGuid: ab6298a0-8075-2000-1828-8468cf471402
request-id: ab6298a0-8075-2000-1828-8468cf471402
MS-CV: oJhiq3WAACAYKIRoz0cUAg.0
Strict-Transport-Security: max-age=31536000
X-FRAME-OPTIONS: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;
SPRequestDuration: 45
SPIisLatency: 1
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 16.0.0.23408
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: 1EABBEAB868540E79717548691739D07 Ref B: BKK30EDGE0509 Ref C: 2023-02-21T12:41:02Z
Date: Tue, 21 Feb 2023 12:41:02 GMT
Connection: keep-alive

{
	"error": {
		"code": "invalidRequest",
		"message": "Name is reserved for list forms folder."
	}
}

@ghost ghost added the Needs: Triage 🔍 Needs initial triage assessment label Feb 21, 2023
@ghost
Copy link

ghost commented Feb 21, 2023

Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.

@patrick-rodgers patrick-rodgers added area:DriveItem Storage General DriveItem storage questions Needs: Investigation Needs investigation from the area owners. and removed Needs: Triage 🔍 Needs initial triage assessment labels Feb 27, 2023
@abhijeet-chatarjee
Copy link

I am also facing the same issue. I am creating a folder by the name 'Forms' through the API, but it is rejected with the
Executing the curl RPC: 1356 failed with error: 0, status msg: {"error":{"code":"invalidRequest","message":"Name is reserved for list forms folder.","innerError":{"date":"2023-03-07T17:08:06","request-id":"6d28c5d4-5900-40c7-bdd0-97d21379d741","client-request-id":"c4ff9a01-6c84-4267-9eae-68128f86d12f"}}}

Please triage this asap.

@abhijeet-chatarjee
Copy link

But Microsoft is creating the subfolder with the name 'Forms' anyway even after returning the error.
kotsak Please check if it's the same behavior in your case also.

@kotsak
Copy link
Author

kotsak commented Mar 9, 2023

But Microsoft is creating the subfolder with the name 'Forms' anyway even after returning the error. kotsak Please check if it's the same behavior in your case also.

@abhijeet-chatarjee Not in my case.

@PeetMcK
Copy link

PeetMcK commented Mar 11, 2023

Not in my case either. This same issue presents in rclone when attempting to create "forms" folders outside of the Document Collection root. I do believe this is a bug.

@abhijeet-chatarjee
Copy link

Will Microsoft be going to fix this anytime soon?

@AZweimiller
Copy link

This is causing us major issues as well. I am having to manually create hundreds of "Forms" folders in a complicated directory tree because the API rejects the folder name. Creating on the Sharepoint web interface works fine.

@kashiftahir
Copy link

Thanks for reporting the issue. We are working on a fix. Will circle back here once the issue is resolved.

@PeetMcK
Copy link

PeetMcK commented Apr 17, 2023

Thanks for reporting the issue. We are working on a fix. Will circle back here once the issue is resolved.

@kashiftahir I've been waiting with bated breath here. Do you have any sort of timeline. This really is a giant time suck. Thanks.

@kotsak
Copy link
Author

kotsak commented May 19, 2023

FYI, I don't receive the errors anymore. Has the problem been fixed or I was just been lucky? :>

@kashiftahir
Copy link

The change completed rolling out on 5/20. Let me know if folks can still repro and I can take a look otherwise I will consider this resolved. Thanks everyone for the feedback.

@ificator ificator added status:resolved and removed Needs: Investigation Needs investigation from the area owners. labels May 26, 2023
@ghost ghost added the no-recent-activity label Jun 5, 2023
@ghost
Copy link

ghost commented Jun 5, 2023

This issue has been automatically marked as stale because it has marked as resolved but has not had any activity for 10 days. It will be closed if no further activity occurs within 10 days of this comment. Thank you for your contributions to OneDrive API Docs!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants