My problem is very similar to this one (in what I'm calling) but I'm receiving a different error.
The XML I feed the service and the response is as follows;
<Batch OnError="Continue" PreCalc="True" ListVersion="3"> <Method ID="1" Cmd="Update"> <Field Name="ID" /> <Field Name="FileRef">https://troom.corp.com/sites/subsite/Document Repository/John Doe Co/123456/Readme.md</Field> <Field Name="Account">John Doe Co</Field> <Field Name="UID">123456</Field> </Method> </Batch> <Results xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <Result ID="1,Update"> <ErrorCode>0x81020030</ErrorCode> <ErrorText>The URL 'Document Repository/John Doe Co/123456/Readme.md' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.</ErrorText> </Result> </Results>
I am hitting
_lists.UpdateListItems(listGUID, updates); after uploading the file by a PUT request. I've tried playing with the
FileRef, from which I've found out only the full URL is accepted. I'd be grateful if anyone can spot something I can't.