Local FIle Trigger miss files when batch of files dropped

I have a Local File Trigger listening to changes on the folder. When a xml file is dropped into the folder, it goes through a series of nodes to convert to json and eventually https POST to an endpoint.

The problem I faced is when a batch of files are dropped into the folder together, the output are inconsistent. The process will miss a few files on every run. Anyone can advise a method to address this? How can the Local File Trigger process each file one at the time?

Thanks in advance

@leonardchiu You said Thanks way too advanced…
The Local File Trigger can miss files when multiple are dropped at once due to how file system events work. Try these fixes:

Use a two-workflow approach:

  • Workflow 1: Local File Trigger → Move new files to a “pending” folder
  • Workflow 2: Cron trigger (every minute) → List Files in “pending” folder → Process files one by one → Move to “processed” folder