AnsweredAssumed Answered

Copy Document Set and Contents from Site A to Site B

Question asked by dgoodridge on Jun 21, 2016
Latest reply on Jul 29, 2016 by andrewg@intellinet.com

Hey there,

 

I'm using a Call web service action to try and copy a document set from Site Collection A to Site Collection B. I haven't been able to find anything online to help me along, so I started at a more basic level and just trying to copy a document from A/Documents/DocumentSet to B/Documents/DocumentSet.

 

I'm using copy.asmx and the CopyIntoItems method and I can copy a document into the root but haven't been able to get the destination URL right to allow me to copy the document into the Document Set. I get the following error:

 

<CopyResult ErrorCode="Unknown" ErrorMessage="Object reference not set to an instance of an object." DestinationUrl="http://vspiappweb02dv:9292/sites/Board/AgendaDocs/Board%20of%20Directors%20-%20February%2C%202016%C2%A05/Non-Procurement%20Resolution%20Agenda%20Report.docx" />

 

If I copy it to the library root I get:

<CopyResult ErrorCode="Success" DestinationUrl="http://vspiappweb02dv:9292/sites/Board/AgendaDocs/Non-Procurement%20Resolution%20Agenda%20Report.docx" />

Outcomes