The workflow can not be activated

Hello all

I cannot activate my workflow. It complains about no trigger or webhook being available, but it does have a Start node. It saves correctly and the workflow executes correctly.

Screenshot at 2021-10-08 05-46-46

Here’s the workflow JSON

{
  "name": "My workflow 4",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "operation": "getAll",
        "docType": "User",
        "returnAll": true,
        "options": {
          "fields": [
            "*"
          ]
        }
      },
      "name": "ERPNext",
      "type": "n8n-nodes-base.erpNext",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "alwaysOutputData": true,
      "credentials": {
        "erpNextApi": "ERPNext account"
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "ERPNext",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "id": 12
}

The error on the invocation terminal is

Unable to activate workflow "My workflow 4"
ERROR RESPONSE
Error: The workflow can not be activated because it does not contain any nodes which could start the workflow. Only workflows which have trigger or webhook nodes can be activated.
    at ActiveWorkflowRunner.add (/usr/local/lib/node_modules/n8n/dist/src/ActiveWorkflowRunner.js:343:23)
    at async /usr/local/lib/node_modules/n8n/dist/src/Server.js:443:21
    at async /usr/local/lib/node_modules/n8n/dist/src/ResponseHelper.js:86:26

and in DevTools I get

DevTools failed to load source map: Could not load content for http://localhost:5678/js/chunk-vendors.e3775ff8.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://localhost:5678/js/app.4a6f8d98.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
chunk-vendors.e3775ff8.js:1 PATCH http://localhost:5678/rest/workflows/12 500 (Internal Server Error)
(anonymous) @ chunk-vendors.e3775ff8.js:1
e.exports @ chunk-vendors.e3775ff8.js:1
e.exports @ chunk-vendors.e3775ff8.js:1
c.request @ chunk-vendors.e3775ff8.js:29
(anonymous) @ chunk-vendors.e3775ff8.js:78
r @ app.4a6f8d98.js:1
l @ app.4a6f8d98.js:1
makeRestApiRequest @ app.4a6f8d98.js:1
updateWorkflow @ app.4a6f8d98.js:1
activeChanged @ app.4a6f8d98.js:1
async function (async)
activeChanged @ app.4a6f8d98.js:1
rt @ chunk-vendors.e3775ff8.js:56
n @ chunk-vendors.e3775ff8.js:56
rt @ chunk-vendors.e3775ff8.js:56
Tn.e.$emit @ chunk-vendors.e3775ff8.js:56
handleChange @ chunk-vendors.e3775ff8.js:78DevTools failed to load source map: Could not load content for http://localhost:5678/js/chunk-vendors.e3775ff8.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://localhost:5678/js/app.4a6f8d98.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
chunk-vendors.e3775ff8.js:1 PATCH http://localhost:5678/rest/workflows/12 500 (Internal Server Error)
(anonymous) @ chunk-vendors.e3775ff8.js:1
e.exports @ chunk-vendors.e3775ff8.js:1
e.exports @ chunk-vendors.e3775ff8.js:1
c.request @ chunk-vendors.e3775ff8.js:29
(anonymous) @ chunk-vendors.e3775ff8.js:78
r @ app.4a6f8d98.js:1
l @ app.4a6f8d98.js:1
makeRestApiRequest @ app.4a6f8d98.js:1
updateWorkflow @ app.4a6f8d98.js:1
activeChanged @ app.4a6f8d98.js:1
async function (async)
activeChanged @ app.4a6f8d98.js:1
rt @ chunk-vendors.e3775ff8.js:56
n @ chunk-vendors.e3775ff8.js:56
rt @ chunk-vendors.e3775ff8.js:56
Tn.e.$emit @ chunk-vendors.e3775ff8.js:56
handleChange @ chunk-vendors.e3775ff8.js:78
switchValue @ chunk-vendors.e3775ff8.js:78
click @ chunk-vendors.e3775ff8.js:78
rt @ chunk-vendors.e3775ff8.js:56
n @ chunk-vendors.e3775ff8.js:56
Zi.o._wrapper @ chunk-vendors.e3775ff8.js:56
switchValue @ chunk-vendors.e3775ff8.js:78
click @ chunk-vendors.e3775ff8.js:78
rt @ chunk-vendors.e3775ff8.js:56
n @ chunk-vendors.e3775ff8.js:56
Zi.o._wrapper @ chunk-vendors.e3775ff8.js:56

Does someone have any ideas as to why this happens?

Thanks so much

You have to activate a workflow when you want that it does something automatically in the background. So like if you have for example a Cron-Trigger-Node, that it starts the workflow at the set time, if you have a Webhook-Trigger-Node that it starts when a specific URL got called, … and so on.

If a workflow does not have such a Trigger node, there is no need to activate it (as there is nothing that would ever start it in the background) and for that reason can it not be activated.

The Start-Node is not an actual Trigger-Node. It never triggers anything. It is only the start point if you start a workflow manually and no other Trigger-Node is present. But by itself, would it never start a workflow. Hope that makes sense!

2 Likes

Ah… great.Thanks so much @jan
BTW, I’ve fallen in love with n8n. Thanks so much for such a great FOSS project. I’ll promote it where and when I can.

1 Like

Happy to hear that it helped and even more that you did fall in love with n8n! Is always great when people people get real value out of it and enjoy using it. Have fun!

fyi n8n is technically not FOSS because of our license. It is close but because of its commercial restrictions does it not qualify.