Problem:
When using the field CopyIntoItems to upload files from a client to a server, instead of its original intended purpose to copy files between two SharePoint servers, you may encounter an error:
Destination Invalid. The Copy web service method must be called on the same domain that contains the destination URL.
Solution:
Your SharePoint server may not be set up to use Alternate Access Mappings (AAM).
For example, by default a SharePoint server will only have:
http://psigen
Stored in a value as an AAM.
If you are using
http://psigen.corp.com
With the Copy service, and using it as the URL of the destination URL, it will fail.
This is because internally the URL is being resolved as
http://psigen
This is the only valid URL syntax internally.
The fix this, add http://psigen.corp.com as a URL in AAM on the SharePoint site within the configuration settings.
Comments
Please sign in to leave a comment.