Iterating through google drive subfolders

Describe the problem/error/question

The workflow is meant to find folders in a list of items in a google drive then recursively search in each folder it finds.

Google Drive Search is not iterating over the complete list of folders.

What is the error message (if any)?

No error message just not completing the collection there are over 20 folders but the the second google drive check does not loop through all…

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.64.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 24.04.1 LTS

Welcome to the community @Ephraim_Moss !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


You seem to be using a very old version of Google Drive node. Have you copied it from some old template or workflow?

The latest version allows you to get all the folders as with the node below. Similarly, you can get all the files only.

Plus you can’t use the Merge node as a Loop node