Im getting this error when trying to copy a file from one document library to another. "status": 400,
"message": "Failed to verify the existence of destination location at 'https://x.sharepoint.com/sites/SiteName/DocLibrary/Folder/' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: 5b2ed5bd-568d-4e53-af95-ec586209cee8\r\nserviceRequestId: bf333fa1-f07f-6000-0bfa-daac9d28946b"
}
The step it fails on:
If I remove the "Output" it works.
The Output for destination Folder is a Replace" there to get the FolderName where the file needs to get copied to and not use the whole path since the library is different but the folder name is the same. replace(variables('Pre_UserFolderNamePath'),'Removepath','')
You mentioned that the step fails when you use the "Output" for the destination folder but works when it's removed. This suggests that there might be an issue with the value being generated or passed in the "Output" variable.
If you're using a replacefunction to modify the path, make sure that the text replacement is accurate and that the final path does not include any invalid characters or formatting issues.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.