1

I've a workflow in which I'm copying file from one library to a folder in another one. It is being done with calling a web service like below:

    <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
  <soap:Header>
  </soap:Header>
  <soap:Body>
    <m:CopyIntoItemsLocal>
      <m:SourceUrl>WebUrl/Library/DocumentName.docx</m:SourceUrl>
      <m:DestinationUrls>
        <m:string>WebUrl/2ndLibrary/Folder/DocumentName.docx</m:string>
      </m:DestinationUrls>
    </m:CopyIntoItemsLocal>
  </soap:Body>
</soap:Envelope>

I'm getting an error below:

<CopyResult ErrorCode="Unknown" ErrorMessage="Invalid URI: The format of the URI could not be determined." DestinationUrl="/Adlib Merge Library/Test24.10_33/Test24.10_33.docx" />

What is interesting is that the same call works in 2010 SharePoint. Any ideas?

Update: Also, CopyIntoItems, on the same addresses is working fine.

1
  • Did you find an answer for that? I have the same requirement and it doesnt work.
    – jlai
    Nov 16, 2020 at 6:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.