Google Drive trigger not capturing all uploaded files

Describe the problem/error/question

I’m building a workflow to manage my pgVector database following a tutorial, but I’m encountering an issue with the Google Drive trigger not capturing all uploaded files.

Expected Behavior

When I upload 3 PDF files to my monitored Google Drive folder, I expect to see 3 binary files in the Download File by ID node.

Actual Behavior

Despite uploading 3 PDF files to the Google Drive folder, I only see 1 binary file in the Download File by ID node output.

What is the error message (if any)?

No error message

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“pollTimes”: {
“item”: [
{
“mode”: “everyMinute”
}
]
},
“triggerOn”: “specificFolder”,
“folderToWatch”: {
“__rl”: true,
“value”: “1xAe9KPIoMe8NxyOCBPpUfhs4OrzqZGc3”,
“mode”: “list”,
“cachedResultName”: “n8n-test-ground”,
“cachedResultUrl”: “https://drive.google.com/drive/folders/1xAe9KPIoMe8NxyOCBPpUfhs4OrzqZGc3
},
“event”: “fileCreated”,
“options”: {}
},
“type”: “n8n-nodes-base.googleDriveTrigger”,
“typeVersion”: 1,
“position”: [
-1040,
-760
],
“id”: “1d8cac67-af29-49c8-be4b-0e303782644b”,
“name”: “Google Drive Trigger”,
“credentials”: {
“googleDriveOAuth2Api”: {
“id”: “DFRYP43dMpEE2uzO”,
“name”: “Google Drive account deyuan.n8n”
}
}
},
{
“parameters”: {
“operation”: “download”,
“fileId”: {
“__rl”: true,
“value”: “={{ $json.id }}”,
“mode”: “id”
},
“options”: {}
},
“type”: “n8n-nodes-base.googleDrive”,
“typeVersion”: 3,
“position”: [
-460,
-760
],
“id”: “76a0df20-4930-4813-aa17-4f4daf7752c6”,
“name”: “Google Drive”,
“credentials”: {
“googleDriveOAuth2Api”: {
“id”: “DFRYP43dMpEE2uzO”,
“name”: “Google Drive account deyuan.n8n”
}
}
},
{
“parameters”: {
“batchSize”: “=1”,
“options”: {}
},
“type”: “n8n-nodes-base.splitInBatches”,
“typeVersion”: 3,
“position”: [
-740,
-760
],
“id”: “6a244afb-67a3-4299-b1d3-5c8f1cd6c1f9”,
“name”: “Loop Over Items”
}
],
“connections”: {
“Google Drive Trigger”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
},
“Google Drive”: {
“main”: [

]
},
“Loop Over Items”: {
“main”: [
,
[
{
“node”: “Google Drive”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “64be1de1613e8bf1c9097ef0bb343c9249b9ed63143089eef9344517aac37453”
}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest version
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): v1 execution order
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Windows

You don’t need the loop node

1 Like

Hey @darrell_tw , thanks for checking out my problem. Yes you are right, I had the loop for other reason. I tried to copy your workflow’s code and test. I am still getting the same result, which is really strange in my case.

I tried to open a new folder and upload 3 jpeg images, but the result only shows 1 jpeg image, which is why.. it’s really weird.

However, I did find an alternate solution from other forum thread, tested and it works: Downloading all files from a google drive folder

Just wondering why is my outcome different with the same workflow as the rest.

I think I know the difference.

If you doing the test execution

You will only get 1 item even you upload 3.

But if you activate the workflow and wait for it

You will get 3 items.