n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
49.95k stars 8.1k forks source link

There was a problem activating the workflow: "Cannot read properties of undefined (reading 'internalDate')" #11895

Open yanndebelgique opened 2 days ago

yanndebelgique commented 2 days ago

Bug Description

when I want to activate a workflow I get: There was a problem activating the workflow: "Cannot read properties of undefined (reading 'internalDate')"

To Reproduce

Workflow

{ "name": "emails copy", "nodes": [ { "parameters": { "pollTimes": { "item": [ { "mode": "everyMinute" } ] }, "simple": false, "filters": {}, "options": {} }, "id": "13d63ce2-697b-4286-8314-393535c14f11", "name": "Gmail Trigger", "type": "n8n-nodes-base.gmailTrigger", "typeVersion": 1.2, "position": [ 460, 340 ], "credentials": { "gmailOAuth2": { "id": "Mr9GLYqEVwhuPBZt", "name": "Gmail account" } } }, { "parameters": { "options": {} }, "id": "888128d9-a90c-43bb-bb92-7d0bb5a53d1c", "name": "OpenAI Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "typeVersion": 1, "position": [ 960, 560 ], "credentials": { "openAiApi": { "id": "zN6SXNRCSQCKaT3N", "name": "OpenAi account" } } }, { "parameters": { "authentication": "oAuth2", "workspace": "4256973384821", "name": "={{ $json.message.content }}", "otherProperties": { "assignee": "={{\n$('Gmail Trigger').item.json.to.value[0].address\n}}", "notes": "={{ $('summarize').item.json.message.content }}\n\nOriginal email:\n{{ $('Gmail Trigger').item.json.text }}" } }, "id": "9a38fd37-da72-462b-ab87-d6290e0b14f0", "name": "Asana", "type": "n8n-nodes-base.asana", "typeVersion": 1, "position": [ 2080, 260 ], "credentials": { "asanaOAuth2Api": { "id": "PI78W2aX1KSW1u30", "name": "Asana account" } } }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 }, "conditions": [ { "id": "6bee39bd-4530-49fc-9201-61415e00722a", "leftValue": "={{ $json.from.value[0].address }}", "rightValue": "yann@fonteynethekitchen.be", "operator": { "type": "string", "operation": "contains" } }, { "id": "00df3453-fb73-49b7-9aec-1e89c64ec420", "leftValue": "{{ $json.from.value[0].address }}", "rightValue": "yann@fthek.be", "operator": { "type": "string", "operation": "contains" } } ], "combinator": "or" }, "options": {} }, "id": "98b903e4-cf8b-4068-8dc4-6edb5486430b", "name": "If", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 700, 360 ] }, { "parameters": { "dataToSave": { "values": [ { "key": "content", "value": "={{ $json.notes }}" }, { "key": "message", "value": "={{ $('summarize').item.json.message.content }}" }, { "key": "to", "value": "={{ $('Gmail Trigger').item.json.to.value[0].address }}" } ] } }, "id": "0664b623-1722-4dc1-a00a-10d7adda8829", "name": "Execution Data", "type": "n8n-nodes-base.executionData", "typeVersion": 1, "position": [ 2300, 260 ] }, { "parameters": { "inputText": "={{ $json.text }}", "categories": { "categories": [ { "category": "request", "description": "If the email asks something to someone" }, { "category": "other", "description": "anything else" } ] }, "options": {} }, "id": "b6f56bc2-eb05-438d-8334-01da0abfb062", "name": "Text Classifier", "type": "@n8n/n8n-nodes-langchain.textClassifier", "typeVersion": 1, "position": [ 940, 340 ] }, { "parameters": { "modelId": { "rl": true, "value": "gpt-4o", "mode": "list", "cachedResultName": "GPT-4O" }, "messages": { "values": [ { "content": "=Create a summary of this request so that the person who has to do the task (i.e. {{ $json.To }}) has all the information required to do it. Explain why. Do not give detailed instructions how to do it.\n\nemail sent by the requestor (yann@fonteynethekitchen.be): \"\"\"{{ $json.text }}\"\"\"" } ] }, "options": {} }, "id": "9eea3710-4938-4248-bdd5-3baa9400859d", "name": "summarize", "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.7, "position": [ 1320, 240 ], "credentials": { "openAiApi": { "id": "zN6SXNRCSQCKaT3N", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "rl": true, "value": "gpt-4o", "mode": "list", "cachedResultName": "GPT-4O" }, "messages": { "values": [ { "content": "=Give 1 line summary the following request from Yann. make the summary imperative:\"\"\"{{ $json.message.content }}\"\"\"" } ] }, "options": {} }, "id": "581f2443-4e23-44aa-aee2-e278247ac7f5", "name": "create title of todo", "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.7, "position": [ 1700, 260 ], "credentials": { "openAiApi": { "id": "zN6SXNRCSQCKaT3N", "name": "OpenAi account" } } } ], "pinData": {}, "connections": { "Gmail Trigger": { "main": [ [ { "node": "If", "type": "main", "index": 0 } ] ] }, "OpenAI Chat Model": { "ai_languageModel": [ [ { "node": "Text Classifier", "type": "ai_languageModel", "index": 0 } ] ] }, "If": { "main": [ [ { "node": "Text Classifier", "type": "main", "index": 0 } ] ] }, "Asana": { "main": [ [ { "node": "Execution Data", "type": "main", "index": 0 } ] ] }, "Text Classifier": { "main": [ [ { "node": "summarize", "type": "main", "index": 0 } ] ] }, "summarize": { "main": [ [ { "node": "create title of todo", "type": "main", "index": 0 } ] ] }, "create title of todo": { "main": [ [ { "node": "Asana", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1" }, "versionId": "a2e560ed-a12c-4efb-9167-7e12ba62bf77", "meta": { "templateCredsSetupCompleted": true, "instanceId": "89bc62648e822abd34b1dbe8f5a7c8ec3a7ab087214099723cb9fa0e4a5a42d4" }, "id": "NeQw4E3AvUSUmZg9", "tags": [] }

Expected behavior

I could activate it before. not anymore

Operating System

cloud environment

n8n Version

cloud environment

Node.js Version

cloud environment

Database

SQLite (default)

Execution mode

queue

Joffcom commented 2 days ago

Hey @yanndebelgique,

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

Joffcom commented 2 days ago

Hey @yanndebelgique,

Are you able to format your workflow json or provide a file? Can you also confirm which n8n version you are running cloud environment could be any version of n8n.

You mentioned you could activate it before, Did anything change recently like an upgrade of the n8n version?

yanndebelgique commented 2 days ago

Hi Jon. I signed up today so I assume the latest version? otherwise how do I find the version nbr?

On Tue, Nov 26, 2024 at 12:18 PM Jon @.***> wrote:

Hey @yanndebelgique https://github.com/yanndebelgique,

Are you able to format your workflow json or provide a file? Can you also confirm which n8n version you are running cloud environment could be any version of n8n.

You mentioned you could activate it before, Did anything change recently like an upgrade of the n8n version?

— Reply to this email directly, view it on GitHub https://github.com/n8n-io/n8n/issues/11895#issuecomment-2500357576, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQBVNQKWP4TAZCQ3RESTL2CRKJVAVCNFSM6AAAAABSQFRY5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBQGM2TONJXGY . You are receiving this because you were mentioned.Message ID: @.***>

Joffcom commented 2 days ago

Hey @yanndebelgique,

It will be under Help > About n8n in the UI.

yanndebelgique commented 2 days ago

Debug info

core

storage

pruning

client

Generated at: 2024-11-26T17:29:16.824Z

On Tue, Nov 26, 2024 at 4:20 PM Jon @.***> wrote:

Hey @yanndebelgique https://github.com/yanndebelgique,

It will be under Help > About n8n in the UI.

— Reply to this email directly, view it on GitHub https://github.com/n8n-io/n8n/issues/11895#issuecomment-2501118376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQBVJ7FD7G6Q66SPRSBZL2CSGSXAVCNFSM6AAAAABSQFRY5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBRGEYTQMZXGY . You are receiving this because you were mentioned.Message ID: @.***>