Error Moving Files to a Folder Created Through Iteration on Google Drive

I have uploaded multiple files to a GDrive folder through a previous automation. They are labeled with two values: name and case number. Now I want to create another automation to create new folders based on the names and sort each file into it accordingly.

Right now my setup is:

For Each Sheet in Spreadsheet (the original spreadsheet used to generate the files has Sheets with each name)

Create Folder
Folder Name: CurrentItem
Output Variable:CurrentFolderID

For Each File or Folder
Filter by Name Contains CurrentItem

Get File
Filename CurrentItem ( From the For Each File or Folder)
Output Variable: CurrentFile_ID

This all seems to go fine until I get to the Move File Activity, which is set up like this:

image

I’m new to this but I thought this should work. The output of the prior activities is File ID and Folder ID, so I set it to Enter ID and I also tried Browse but no luck.

The error I get is:

The service drive has thrown an exception. HttpStatusCode is NotFound. File not found: UiPath.GSuite.Drive.Models.GDriveRemoteItem.

Can you post a screenshot of the sequence? Right click anywhere in the empty area of the sequence and select Copy as image.

Means the variable CurrentFile_ID is not set correctly.

@justindward

The output of get files/folder is not currentfile_id it is the current file resource…you can use that outputvarible.id to get the id of the file

In your case currentFile_ID.ID

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.