Curious if anyone has ever seen this… I have the robot using a Google Workspace activity called “FindFiles”. It searches a variable containing the name of the folder referenced by an Orchestrator asset. It is searching the correct name of the folder. The log outputs the Folder ID, but the ID does not match what the Folder ID actually shows in the URL in Gdrive. I’ve confirmed there are no duplicate folders with the same name (because that has happened to us in the past).
The only workaround I have is to delete the folder in Gdrive and re-create the same folder, then everything works fine. I’m not sure if this is even a UiPath problem, maybe it’s a Google issue?
From your description it seems like you are using the classic Google Workspace activities, can you also try with the new ones? You might have to updated your package though and then try with this activity whether it’s the same result:
Hello Adrian - Thank you for the suggestion. If I did this, I would have to completely rebuild 4 of my processes that have previously worked fine for months. I’m going to try having the search skip the trash folder and see what happens. I will explore this option if that doesn’t pan out, thank you.
Question about these newer activities - Do they still offer as much functionality as the classic ones? I ask because it seems like the newer ones offer fewer activities than the classic.
Although the trash filter was needed, this did not solve the issue in Production as to why the bot is pulling an imaginary Folder ID… Everything works as it should in Dev though. I did try updating the bot client app on the machine, that did not work either.
Finally figured this out. Would have gotten there sooner if Gdrive let you search for a Spreadsheet ID, but it returns zero results when that happens. It wound up being a Spreadsheet with the same name as the folder, so the log would return the Sheet ID instead of the folder ID. I had to add to the VB expression in the Gdrive activity that would ONLY look for app type “folder” and nothing else.
“name = " + “'” + strSourceFolder + “'” + " and mimeType=‘application/vnd.google-apps.folder’ and trashed=false”