
Hi @
I have tested the following code and works in SharePoint 2019. Please make a reference
private SPCopyMigrationInfo CreateCopyJobInternal(Uri[] exportObjectUris, Uri destinationUri, SPCopyMigrationOptions options, Guid correlationId, bool? runOnFE, long totalBytes = 0L)
{
throw new InvalidOperationException();
}
[Obsolete("Use CreateCopyJobs instead")]
[ClientCallableMethod]
public SPCopyMigrationInfo CreateCopyJob(Uri[] exportObjectUris, Uri destinationUri, SPCopyMigrationOptions options)
{
throw new InvalidOperationException();
}
[ClientCallableMethod]
public List<SPCopyMigrationInfo> CreateCopyJobs(Uri[] exportObjectUris, Uri destinationUri, SPCopyMigrationOptions options)
{
throw new InvalidOperationException();
}
Or you can provide us with your codes for further testing
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.