Troubleshooting Error "Find Files And Folders: Code: itemNotFound Message: The Resource Could Not Be Found."

Why is it not possible to retrieve a file using "Find Files And Folders" activity even though the file path exists?

Issue Description:
Sometimes, while using the UiPath MicrosoftOffice365 "Find Files And Folders" activity, one may run into the following error:

Follow the below steps in order to troubleshoot/ resolve the mentioned error:

  1. Check if the Robot account has proper access to that particular file which you are trying to fetch
  2. Check if the file name sent to the activity is correct
  3. Next, check for extensions of the file. In the "query" field, make sure to include both the name and extension of the file. For example: "TestDocument.xlsx"
  4. Upgrade the System.Activities and Office365.Activities packages to the latest version
  5. In case you are using a custom drive apart from the default drive, ensure that the "Drive Name" field is specified. If left empty, the search is carried out in the default drive (typically "Documents") of the SharePoint site specified in the "Site Url" field
  6. Ensure to set the output field type to "Drive Item" as mentioned on the Find files and folders page.
  7. If using a subfolder, ensure that you provide a value for the "Subfolder" field
  8. For getting items from multiple hierarchical subfolders, use the syntax --> "Folder1\Folder2\Folder3".

If the issue still persists, report the issue to UiPath Support and add the following information:

  1. A screenshot of the activity properties.
  2. Following items after reproducing the error:
    1. Studio logs and Robot execution logs
    2. If the process is triggered from Orchestrator, send the job execution logs.
    3. A Fiddler trace file.
  3. Check if the issue occurs just for the root folder or the subfolder or both. Create a subfolder in the "Documents" path and placed the file inside that subfolder. After this, check if it is possible to retrieve the files as expected. Share the outcome of these steps.