Use OneDrive-Copy File or Folder activity get unspecific exception

Hi everyone,
I am trying to copy all files from the Templates folder to the Event folder using the For Each File or Folder activity. For each file, I use the Copy File activity to copy it to the target folder.

Here’s a screenshot of my workflow:

When I execute the process, the files are successfully copied to the target folder, but I get the following exception:
image

Current workaround:
I’ve used a Try Catch block to handle this error and continue execution, but I would like to understand what causes the error and how to avoid it properly.

Additional Information:

  • Source Folder: OneDrive/…/Templates
  • Target Folder: OneDrive/…/Event

Could anyone help me understand why this error occurs and how I can resolve it?

Thanks a lot in advance!

@miayang,

What’s the version of O365 activity package you are using?
If it’s older once, can you try upgrading to latest possible version.

Thanks for replying. I use the new version instead of the classic one.

@miayang,

The error message Code: invalidRequest Message: ObjectHandle is Invalid suggests that the request being made to the Microsoft Graph API is not correctly formatted or the resource identifier is invalid.

Can you try passing just the CurrentItem in File or folder Url property?