-
Notifications
You must be signed in to change notification settings - Fork 228
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
Sharepoint: Replacing Files of Specific Types Return 404 #1068
Comments
|
Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible. |
|
Thanks for your feedback. Could you please clarify when the application uploaded the original version of the document? And whether there were other upload sessions that had recently been created on this file, such as to replace the content? |
|
@chackman Thanks for replying. The application uploaded the first version of the document no more than 3 minutes before uploading the modified version. (If you need a timestamp I can re-run the steps to reproduce.) There shouldn't be other upload sessions as the document is a newly created one. And I'm not using other clients such as the official OneDrive client. |
|
Thanks @Cnly, we have sent the request/response information along to another team for them to investigate further. |
|
Not sure how related could be to an issue I had raised almost 2 years ago and it still bugs some of our users from time to time. In our case the only solution is to manually deleted the existing files before re-uploading. |
|
I have requested an update from the team looking in to this issue. |
|
Hey, @chackman any news one the issue? We are seeing this also while trying to sync a few TB into onedrive/sharepoint. Together with the known defect of sharepoint modifying uploaded files, finding out if an upload was successful is not straight forward... |
|
I have requested an update from the team looking in to this issue. (Again.) |
|
Hey, @chackman any update from the team yet? |
|
Sorry, nothing to report from that team. |
|
2.5 years later.. any movement? :) |
|
As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness. |
Category
Expected or Desired Behavior
After uploading a file with the API to Sharepoint, re-uploading a modified version of the file should work and should replace the previously uploaded version.
Observed Behavior
For files of some types (currently there have been reports for .docx and .xlsx), attempts to replace the uploaded versions get 404 instead:
{"error":{"code":"itemNotFound","message":"The resource could not be found."}}Response headers required:
Steps to Reproduce
.docx) locally. This file should not exist on remote at this time.POST /v1.0/drives/b!{driveID}/items/{itemID}:/{filename}.docx:/createUploadSessionandPUT {path in uploadUrl}. The upload should succeed normally.200forcreateUploadSession, but then404forPUT, with the body{"error":{"code":"itemNotFound","message":"The resource could not be found."}}.Thank you.
The text was updated successfully, but these errors were encountered: