I have used the below code to copy the files from One library to other in a SharePoint site by following the below mentioned Microsoft article,
https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.movecopyutil.copyfile?view=sharepoint-csom
MoveCopyOptions option = new MoveCopyOptions();
option.KeepBoth = true;
MoveCopyUtil.CopyFile(clientContext, SrcFile, DestFile, true, option);
But on few instances, the file was copied successfully to the destination library but few properties failed to get copied. Can someone please check what could be cause of this issue.
I have used the below code to copy the files from One library to other in a SharePoint site by following the below mentioned Microsoft article,
https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.movecopyutil.copyfile?view=sharepoint-csom
MoveCopyOptions option = new MoveCopyOptions();
option.KeepBoth = true;
MoveCopyUtil.CopyFile(clientContext, SrcFile, DestFile, true, option);
But on few instances, the file was copied successfully to the destination library but few properties failed to get copied. Can someone please check what could be cause of this issue.