Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving a workflow with non-existing tag will raise an Error #9132

Open
barn4k opened this issue Apr 11, 2024 · 1 comment
Open

Saving a workflow with non-existing tag will raise an Error #9132

barn4k opened this issue Apr 11, 2024 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@barn4k
Copy link

barn4k commented Apr 11, 2024

Bug Description

If I choose a non-existing tag (don't ask) and try to save a workflow, I will get an error SQLITE_CONSTRAINT: FOREIGN KEY constraint failed for SQLight or insert or update on table "workflows_tags" violates foreign key constraint "fk_workflows_tags_tag_id" for Postgres.

To Reproduce

  1. Create any Workflow (just to not mess with the existing workflow tags).
  2. Save it
  3. Go to the tags section
  4. Enter anything new
  5. Click on the first dropdown entry
  6. Save the workflow or click inside the workflow to loose the focus from tag section

Examples:
image

image

Expected behavior

The new tag will be created or there won't be a dropdown entry with the "ghost" tag

Operating System

Cloud / Docker

n8n Version

1.36.1

Node.js Version

docker

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Apr 12, 2024

Cheers @barn4k,

I have created ADO-2150 as the internal ticket to resolve this.

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants