Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用MS Graph将文件上载到超过阈值的SharePoint库(该文件已存在)_Sharepoint_Microsoft Graph Api - Fatal编程技术网

使用MS Graph将文件上载到超过阈值的SharePoint库(该文件已存在)

使用MS Graph将文件上载到超过阈值的SharePoint库(该文件已存在),sharepoint,microsoft-graph-api,Sharepoint,Microsoft Graph Api,我正在尝试将文件上载到SharePoint库,其中库中的项目数超过阈值(5000) 当创建一个 …这工作得非常好,除非文件已经存在,然后我会看到一个404 { "error": { "code": "itemNotFound", "message": "The resource could not be found.", "innerError": { "request-id": "6f31b3ee-2003-43a

我正在尝试将文件上载到SharePoint库,其中库中的项目数超过阈值(5000)

当创建一个

…这工作得非常好,除非文件已经存在,然后我会看到一个404

{
    "error": {
        "code": "itemNotFound",
        "message": "The resource could not be found.",
        "innerError": {
            "request-id": "6f31b3ee-2003-43aa-8956-99c82367c770",
            "date": "2018-02-13T01:29:41"
        }
    }
}
我也试过了

https://graph.microsoft.com/v1.0/drive/items/{itemId}/createUploadSession
https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{parent-id}:/{filename}/createUploadSession
文档中说,在进行可恢复上传时,通过启动整个上传来处理404未发现错误。这表示上载会话不再存在。但是我在尝试创建上传会话时出错,所以我不相信这句话是真的

当正文中设置了“
”@microsoft.graph.conflictBehavior:“重命名”
时,仍然会发生这种情况

如果我改用


。。。它将无误地覆盖文件,但最大文件大小为4MB,这是一个相当有限的限制。

OneDrive for Business中出现了一个问题,触发了您所观察到的行为。现在应该部署一个修复程序,所以希望您现在可以上传到大文件夹中。。。如果您仍然看到问题,请务必告诉我们。

谢谢,我忘了提到,我已经在我们的环境中测试了这个问题,并且可以确认它已经解决。
https://graph.microsoft.com/v1.0/drive/items/{itemId}/createUploadSession
https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{parent-id}:/{filename}/createUploadSession
https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{parent-id}:/{filename}:/content