diff --git a/packages/core/src/execution-engine/workflow-execute.ts b/packages/core/src/execution-engine/workflow-execute.ts index 233b6c3c97..4f9361f6b5 100644 --- a/packages/core/src/execution-engine/workflow-execute.ts +++ b/packages/core/src/execution-engine/workflow-execute.ts @@ -1221,18 +1221,9 @@ export class WorkflowExecute { }); } + /** Node execution stack will be empty for an execution containing only Chat Trigger. */ const startNode = this.runExecutionData.executionData.nodeExecutionStack.at(0)?.node.name; - if (!startNode) { - throw new ApplicationError('Failed to run workflow due to empty node execution stack', { - extra: { - workflowId: workflow.id, - executionId: this.additionalData.executionId, - mode: this.mode, - }, - }); - } - let destinationNode: string | undefined; if (this.runExecutionData.startData && this.runExecutionData.startData.destinationNode) { destinationNode = this.runExecutionData.startData.destinationNode;