Workflow saving issue

Hey everyone, has anyone hit this error when trying to save a workflow lately?
Error: Problem saving workflow: SQLITE_ERROR: near “-”: syntax error
I’ve never seen it until now. I’ve double-checked my workflow’s JSON for hyphens in the keys (which the error seems to point to), but I can’t find any. It happens even when the data source is simple (Google Sheet/Datatable). Is this a known issue/new bug, or am I missing something obvious? Thanks!

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

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:

@woriqowi Based on my experience with the exact same error while hosting n8n in Docker at Hostinger, the issue appears to be a temporary system glitch or a database lock, not a permanent bug in the workflow itself.

The possible Solution is:

Restart your n8n Docker container.

After the container has fully restarted, try saving the workflow again.

For me, simply bouncing the Docker instance cleared the underlying connection issue with the SQLite database, and the workflows saved without the SQLITE_ERROR: near “-”: syntax error.

Give that a try first before diving into your JSON code and let me know how it goes friend.

Cheers

2 Likes

Thanks, looks good!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.