The following code doesn't work when toParentFolderId is the same folder id as the original file:
var status = await client.ItemWithPath(fromPath).Copy(toFileName, new ItemReference {Id = toParentFolderId}).Request().PostAsync();
var item = await status.PollForOperationCompletionAsync(null, CancellationToken.None);
The error I get is:
Microsoft.Graph.ServiceException: Code: generalException
Message: Unexpected exception returned from the service.
This error appears after I updated Microsoft.OneDriveSDK to the latest version.
Hi,
The following code doesn't work when toParentFolderId is the same folder id as the original file:
var status = await client.ItemWithPath(fromPath).Copy(toFileName, new ItemReference {Id = toParentFolderId}).Request().PostAsync(); var item = await status.PollForOperationCompletionAsync(null, CancellationToken.None);
The error I get is:
Microsoft.Graph.ServiceException: Code: generalException Message: Unexpected exception returned from the service.
This error appears after I updated Microsoft.OneDriveSDK to the latest version.
Do you have the same issue?
Thanks.