Hi,
I’m just getting started with n8n and I have built today my very first workfllow. The goal is to automatically edit pictures added to the Google Drive folder, reload them under a different folder, and send a Slack notification. The inital flow works but if more than 1 picture is added only 1 is processed at a time. I have therefore added a ‘loop over items’ node but even if it detects that there is for instance 2 pictures I still only see 1 processed. Any idea what I’m doing wrong?
Thanks!
Cécile
Welcome @Cecile_Maindron to our community! I’m Jay and I am a n8n verified creator.
The Google Drive trigger fires once per file event - each execution carries exactly 1 file as 1 item. So if 2 files are uploaded, you get 2 separate workflow executions, each with 1 file. The Loop Over Items node isn’t doing anything useful here because the input is already 1 item.
Your current flow is actually correct - you should see 2 separate executions in your execution history when 2 files are uploaded. Check the Executions tab to confirm both ran. If only 1 execution shows up, the trigger might be de-duplicating events (this can happen when files are uploaded very close together). In that case, switch to a Schedule trigger + Google Drive List Files node to poll for new files on a set interval instead.
1 Like
Thank you @nguyenthieutoan for your quick and detailed response. I’ll follow your advice.
1 Like