Value of type 'GDriveRemoteItem()' cannot be converted to 'GDriveRemoteItem

When I am using the drive Get Files/Folders activity in UiPath and passing the its output variable in for each loop this error is coming " Value of type ‘GDriveRemoteItem()’ cannot be converted to GDriveRemoteItem ".How to solve this Error. Thanx in Advance.

Can you show the scrnshot of error and respective flow

it is returning a single file/folder.

Maybe you have a different intention like iterate over all files form folder?

You might want to use this activity instead:

image

The output type of the get file/folder is not a collection.

ok ,i will try .