Regex not working as expected when Workflow is active

Hi guys,

I have a problem with the function exec of regular expressions. This is a weird scenario because when we replicate the error (Pinning the values on a previous node), the regex works as expected. But when we turn on the workflow, we get a null value.

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:

@Diego_Rodriguez , try replacing $input.item.json.error with $input.first().json.error.

1 Like