Question about setting up retry for a loop node by using if node


Here is a simplified example of my workflow for processing data from Google Sheets to Google Sheets. First, I use Get Row, and the result is 300 rows. I use a loop Node to process 3 rows per batch. Sometimes, the OpenAI HTTP request returns empty content or “NA”. If this happens, I want it to be processed again. Ideally, only retry for 3 times.

I’ve been reading some old threads But I still can’t make it happen. Below is my example flow. Thanks

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Something like this might work for you!