Loop stop successfully without completing all items

Hey,
Not sure if this defect, or I’m doing something wrong.
I have a lot of files needs to go through loop. I see that the input for the loop looks good, proper json.
I see in the right side also, also looks good, loop process files.
The issue… I have over 7000 files, but as the loop “complete succesfully” after only 27.

I see some erros in the log, is this relevant?
Error Log:
Warning: fetchStandardFontData: failed to fetch file “FoxitSans.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerif.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: TT: undefined function: 21
Warning: fetchStandardFontData: failed to fetch file “FoxitSerif.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSans.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: TT: undefined function: 32
Warning: fetchStandardFontData: failed to fetch file “FoxitSans.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSans.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerif.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBoldItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSansBoldItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBold.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: TT: undefined function: 32
Warning: fetchStandardFontData: failed to fetch file “FoxitSerif.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.
Warning: fetchStandardFontData: failed to fetch file “FoxitSerifBoldItalic.pfb” with “UnknownErrorException: The standard font “baseUrl” parameter must be specified, ensure that the “standardFontDataUrl” API parameter is provided.”.

Any idea???

Information on your n8n setup

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

I think the problem is you need to connect your “Edit Fields” node back to the input of the Loop Over Items node.

Give that a try

It is larger workflow, I just copied the nodes that impacting the issue. Yes, it is eventiouly going back to the loop, and the 27 “successful” are realy doing what it was supposed to do.

I noticed in your custom code, you seem to be checking a directory for files. Are there 7000 plain files in that directory, or are there subdirectories? The code you’re using won’t search through any subdirectories.

It seems like whatever is getting input into the loop node are only 27 items. I’m also wondering if something further in your workflow is reducing the number of items.

Yes, only files, no directories and no, you can see that the source for the loop is all the ~7000 files. it shows in the print screen on the left.