I’m experiencing an intermittent error in my workflow that’s quite puzzling. The error message is:
Cannot read properties of undefined (reading 'replace')
The issue:
-
The workflow works correctly sometimes, but randomly fails with this error
-
When it fails, it seems like the node is executing twice but receiving empty data on one of the executions
-
The error occurs in my Embeddings5 node, which receives data from a
dados_produtos(product data) node
Workflow setup:
-
I have a data source node (
dados_produtos) connected to an Embeddings node (Embeddings5) -
The workflow is supposed to process product data and generate embeddings
-
I’m using the same input/question each time, but getting inconsistent results
What I’ve observed:
-
The error appears to be related to the
replacemethod being called on an undefined variable -
Sometimes the workflow completes successfully with identical input
-
When it fails, the Input section shows
{}(empty object)
Has anyone encountered similar intermittent errors with data processing nodes? Any suggestions on how to debug or fix this issue would be greatly appreciated.
Screenshots attached show the error output and my workflow structure.

