# Issue in "Execute Workflow" node

**URL:** <https://community.n8n.io/t/issue-in-execute-workflow-node/969>\
**Category:** Questions\
**Created:** [March 8, 2020, 9:32pm UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969 "2020-03-08T21:32:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooghermez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mooghermez/32/26_2.png) [@mooghermez](https://community.n8n.io/u/mooghermez)\
**Post date:** [March 8, 2020, 9:32pm UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/1 "2020-03-08T21:32:29Z")

</div>

Hi dear friends

I try to use “Execute workflow” node to use one of my workflow in another. I think I should use “database source” to see other workflows but unfortunately I see below issue in “workflow” item:

- There was a problem loading the parameter options from server: “401 - “Authorization is required!””

Could anyone please help me?

Best regards;

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [March 8, 2020, 9:45pm UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/2 "2020-03-08T21:45:06Z")

</div>

That has probably to do with the security-fix. I will remove the workflow selection and then require that people type in the workflow-id manually. In the meantime, you can do the same by simply setting the parameter to an expression and then set the workflow-id as such. It will still display you the error message but it will work anyway.

---

<div class="post-metadata">

**Author:** ![mooghermez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mooghermez/32/26_2.png) [@mooghermez](https://community.n8n.io/u/mooghermez)\
**Post date:** [March 13, 2020, 11:20am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/3 "2020-03-13T11:20:54Z")

</div>

I’m so sorry I can’t fix it by my own can you please give an example or  
Do you have some time to fix security please?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [March 13, 2020, 11:27am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/4 "2020-03-13T11:27:31Z")

</div>

Sorry do not understand. I already wrote exactly what has to be done. But can write it down again step by step if it helps:

1. Left click on the cogs icon on the very right side of the field “Workflow ID:”
2. In the appearing menu select “Add Expression”
3. You will then see the Expression-Editor
4. In it use as expression simply the workflow-ID. So if it is `12` you write in the field simply `12` not more and not less

That is it.

It then probably still displays the message that it can not load the data but it should execute just fine.

---

<div class="post-metadata">

**Author:** ![mooghermez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mooghermez/32/26_2.png) [@mooghermez](https://community.n8n.io/u/mooghermez)\
**Post date:** [June 23, 2020, 6:33am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/5 "2020-06-23T06:33:33Z")

</div>

Can anyone please explain me why when my workflow run a “Execute Workflow” node it run that workflow but show below error?

````
ERROR: Cannot read property 'data' of undefined

```
TypeError: Cannot read property 'data' of undefined
    at Object.executeWorkflow (/usr/local/lib/node_modules/n8n/dist/src/WorkflowExecuteAdditionalData.js:225:27)
    at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/ExecuteWorkflow.node.js:161:30)
    at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:370:47
```
````

---

<div class="post-metadata">

**Author:** ![huuich](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/huuich/32/1115_2.png) [@huuich](https://community.n8n.io/u/huuich)\
**Post date:** [June 23, 2020, 6:53am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/6 "2020-06-23T06:53:00Z")

</div>

Can you share your workflow to test? (by select all node, copy and paste to post)

---

<div class="post-metadata">

**Author:** ![mooghermez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mooghermez/32/26_2.png) [@mooghermez](https://community.n8n.io/u/mooghermez)\
**Post date:** [June 23, 2020, 7:02am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/7 "2020-06-23T07:02:30Z")

</div>

In fact it happen on any workflow like this:

```
{
  "name": "",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "workflowId": "27"
      },
      "name": "Execute Workflow",
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {}
}

```

in this workflow I get below error:

````
ERROR: Cannot read property 'toString' of undefined

```
TypeError: Cannot read property 'toString' of undefined
    at Object.contains (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/If.node.js:223:50)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/If.node.js:259:94)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:570:37)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:370:62
```
````

---

<div class="post-metadata">

**Author:** ![huuich](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/huuich/32/1115_2.png) [@huuich](https://community.n8n.io/u/huuich)\
**Post date:** [June 23, 2020, 7:16am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/8 "2020-06-23T07:16:11Z")

</div>

I’ve tried and put Workflow ID but has this error:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/b/b30e46603cf191cd4274dae19c51f4c04d797210.png)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [June 23, 2020, 8:53am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/9 "2020-06-23T08:53:30Z")

</div>

@mooghermez That means that something tries to access the property `data` on something which does not exist or that you call `toString` on something that does not exist. The following should for example return the same error:

```auto
const a = {};
a.b.data;
a.b.toString();

```

In this case does `a` not have the property `b` which means that b is `undefined`. If you then try to access `data` on it or call `.toString()` you will see an error message like you do.

In your case it seems to happen in the IF-Node which makes me believe that one of the values you reference in there returns `undefined`. So please check them.

---

<div class="post-metadata">

**Author:** ![Chris-Hayes](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/chris-hayes/32/2490_2.png) [@Chris-Hayes](https://community.n8n.io/u/Chris-Hayes)\
**Post date:** [November 22, 2020, 10:38am UTC](https://community.n8n.io/t/issue-in-execute-workflow-node/969/10 "2020-11-22T10:38:02Z")

</div>

I came across this thread because I had the same error below.

```auto
ERROR: Cannot read property 'data' of undefined

```

If it helps anyone else, I got this on a Jira trigger because I put the wrong domain into the Jira server credentials. So, untested credentials are something to check.
