onedrive-api-docs: Unable to create subfolders or files under App_Data when using API calls

When attempting to create an entire path using the API, the following path fails:

./Documents/Programming/C#/Websites/GuessNumber/App_Data/PublishProfiles

Additionally any folder being created under “App_Data” using the API fails. Full log below:

OneDrive Client requested to create remote path: ./Documents/Programming/C#/Websites/GuessNumber/App_Data/PublishProfiles
* Found bundle for host graph.microsoft.com: 0xb716c0 [can pipeline]
* Re-using existing connection! (#7) with host graph.microsoft.com
* Connected to graph.microsoft.com (20.190.142.178) port 443 (#7)
> GET /v1.0/me/drive/root:/.%2FDocuments%2FProgramming%2FC%23%2FWebsites%2FGuessNumber%2FApp_Data:/?select=id,name,eTag,cTag,deleted,file,folder,root,fileSystemInfo,remoteItem,parentReference HTTP/1.1
Host: graph.microsoft.com
User-Agent: Phobos-std.net.curl/2.081 (libcurl/7.59.0)
Accept: */*
Authorization: bearer <redacted>

< HTTP/1.1 200 OK
< Cache-Control: private
< Transfer-Encoding: chunked
< Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
< request-id: 6409f8c0-9780-4121-8b23-f95792121d2f
< client-request-id: 6409f8c0-9780-4121-8b23-f95792121d2f
< x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Australia Southeast","Slice":"SliceC","Ring":"5","ScaleUnit":"001","Host":"AGSFE_IN_3","ADSiteName":"ASE"}}
< OData-Version: 4.0
< Duration: 982.5017
< Strict-Transport-Security: max-age=31536000
< Date: Sat, 15 Sep 2018 10:13:51 GMT
< 
* Connection #7 to host graph.microsoft.com left intact
OneDrive Response: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#users('andre%40basel.co.nz')\/drive\/root\/$entity","cTag":"adDpGRTIyNUUwNURGMUE1NUI3ITI5NDUyMS42MzY3MjU4NDk4NTIyNzAwMDA","eTag":"aRkUyMjVFMDVERjFBNTVCNyEyOTQ1MjEuMA","fileSystemInfo":{"createdDateTime":"2018-09-15T05:09:45.226Z","lastModifiedDateTime":"2018-09-15T05:09:45.226Z"},"folder":{"childCount":0,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"FE225E05DF1A55B7!294521","name":"App_Data","parentReference":{"driveId":"fe225e05df1a55b7","driveType":"personal","id":"FE225E05DF1A55B7!294516","name":"GuessNumber","path":"\/drive\/root:\/Documents\/Programming\/C#\/Websites\/GuessNumber"}}
* Found bundle for host graph.microsoft.com: 0xb716c0 [can pipeline]
* Re-using existing connection! (#7) with host graph.microsoft.com
* Connected to graph.microsoft.com (20.190.142.178) port 443 (#7)
> GET /v1.0/me/drive/root:/.%2FDocuments%2FProgramming%2FC%23%2FWebsites%2FGuessNumber%2FApp_Data%2FPublishProfiles:/?select=id,name,eTag,cTag,deleted,file,folder,root,fileSystemInfo,remoteItem,parentReference HTTP/1.1
Host: graph.microsoft.com
User-Agent: Phobos-std.net.curl/2.081 (libcurl/7.59.0)
Accept: */*
Authorization: bearer <redacted>

< HTTP/1.1 404 Not Found
< Content-Type: text/html
< Server: Microsoft-IIS/10.0
< Strict-Transport-Security: max-age=31536000
< Date: Sat, 15 Sep 2018 10:13:51 GMT
< Connection: close
< Content-Length: 1245
< 
* Closing connection 7
std.json.JSONException@std/json.d(1392): Unexpected character '<'. (Line 1:1)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>
</html>

However, if I then log on to OneDrive (onedrive.live.com) I can browse to that path & create any folder as required - no error is generated.

However even if any folder is created under “App_Data” any file upload / file creation fails with the same error.

Additionally, this restriction or limitation is not detailed here:

https://support.microsoft.com/en-au/help/3125202/restrictions-and-limitations-when-you-sync-files-and-folders

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

@chackman It appears the changes have been rolled out. Validated & verified locally with OneDrive Personal & OneDrive Business accounts that this is no longer an issue and has been resolved.