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!””
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.
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
```
@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:
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.
I came across this thread because I had the same error below.
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.