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

Form ending error #11661

Open
kanrun-digital opened this issue Nov 8, 2024 · 18 comments
Open

Form ending error #11661

kanrun-digital opened this issue Nov 8, 2024 · 18 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@kanrun-digital
Copy link

Bug Description

hile attempting to transition between forms in an n8n workflow, an error prevents the form from loading as expected. The workflow structure follows a linear sequence where a form is triggered (On form submission), leading to subsequent forms (Form and Form1). However, the final form does not load properly, displaying an error message.

To Reproduce

Workflow Structure: The workflow comprises three main nodes:

On form submission (formTrigger node) - initiates upon form submission.
Form next - serves as an intermediary form in the sequence.
Form end - acts as the final completion form in the workflow.

Expected behavior

Problem Analysis:

Deactivation Issue: The error suggests that the workflow or a specific node might be inactive. Since the workflow's active setting is set to false, this may prevent form transitions from executing.
Non-Existent Node or Webhook: The webhook IDs tied to each form node might be incorrect or inactive. If any of the webhooks associated with the forms (webhookId) are missing or mismatched, the workflow might fail during transitions.

image

Operating System

Ubuntu 22

n8n Version

1.66.0

Node.js Version

18.60

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Nov 8, 2024

Hey @kanrun-digital,

We have created an internal ticket to look into this which we will be tracking as "GHC-415"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Nov 8, 2024
@Joffcom
Copy link
Member

Joffcom commented Nov 8, 2024

Can you share the env options you have set for your n8n instance and the workflow settings?

@kanrun-digital
Copy link
Author

kanrun-digital commented Nov 9, 2024 via email

@Joffcom
Copy link
Member

Joffcom commented Nov 11, 2024

Hey @kanrun-digital

Can you remove EXECUTIONS_DATA_SAVE_ON_SUCCESS and let me know if that works? There is a known issue that will be fixed soon where if this is set to None the internal "wait" doesn't happen for some nodes.

@kanrun-digital
Copy link
Author

kanrun-digital commented Nov 11, 2024 via email

@kanrun-digital
Copy link
Author

kanrun-digital commented Nov 11, 2024 via email

@Joffcom
Copy link
Member

Joffcom commented Nov 11, 2024

Your image has not made it through.

@kanrun-digital
Copy link
Author

kanrun-digital commented Nov 11, 2024 via email

@Joffcom
Copy link
Member

Joffcom commented Nov 11, 2024

Do you have a form ending node in your workflow?

@kanrun-digital
Copy link
Author

It doesn't matter if you deleted the selection form in the update.
image
image
image
please find field “Respond When” parameter

@kanrun-digital
Copy link
Author

and this field is present in the previous version of the trigger form.
image
image

@kanrun-digital
Copy link
Author

and in the new version of node there is simply no such field

@kanrun-digital
Copy link
Author

image

@kanrun-digital
Copy link
Author

It's funny that it refers to something that cannot be chosen

@kanrun-digital
Copy link
Author

Can you fix it, or should we wait to use the new version until you solve the problem?

@Joffcom
Copy link
Member

Joffcom commented Nov 13, 2024

Hey @kanrun-digital,

Sorry it looks like 2 different issues have been put into this rather than splitting it.

For the original issue we are aware of the problem which is down to one of the env options that you have set and with the second issue the "Respond to Webhook" node is no longer needed or used with a form trigger if you are doing a multi step form as we have a form ending page instead.

We will update the error to make that clearer and the documentation.

@kanrun-digital
Copy link
Author

image
in this scenario, the final form is not shown, although the script says it was successful
image

@Joffcom
Copy link
Member

Joffcom commented Nov 13, 2024

Hey @kanrun-digital,

I would recommend creating a post on the support forum for that and including the full workflow, Looking at the output it looks like the node ran as the output is there but the expresion is invalid as $json.execution_id doesn't exist it looks to be $json.success as the only input which makes that a workflow issue not an application bug.

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