Issue with custom node, with new version

Good day!

I create my custom node which fetching data from crm and display in dropdown in module. Today I update my n8n(self host) to Version 1.0.5. Pls can someone advice what happen? the error “”
There was a problem loading the parameter options from server: “no data, execute “Execute Workflow Trigger” node first”

Hi @David_Semenenko, welcome to the community!

I am sorry you’re having trouble, though unfortunately I am not quite sure what might happen here, mostly because I don’t know your custom node. I am not aware of any changes in the way custom nodes would function with v1 though.

Does the behaviour change when you execute the previous node as suggested in the error message?

Perhaps our chief node builder @marcus has an idea?



So I see now that if I open exist workflow geeting that error.

But if I gonna create new workflow everything is working as usually.

(in dropdown data that I am fetching from my crm that for sources and mapping in options field)
Below example
methods = {
loadOptions: {
async getSource(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>{
const response = await axios.get(‘’)
const data = response.data.result.map((item: any) => ({name: item.NAME, value: item.STATUS_ID}))
return data
},
},
};

Hello! @marcus @MutedJam
I notice that my custom node has error only when I duplicate workflow and trying to use. But if I trying to add as new module - everything working as usually. Could you pls advice, what can be wrong?


also when I swithing to expression in any other input the data in options getting error

Hi @David_Semenenko,
I can’t see any changes in n8n that should provoke this behavior.

  • Is your custom node code publicly available by any chance?
  • How are you installing the custom node to your self hosted n8n?

Hi Marcus, sure I can share my code with you

I notice that when I switch any of input to expression to set code like {{$json.body}} the data in
typeOptions: {
loadOptionsMethod: ‘getSource’,
},
not loading at all

Hey @David_Semenenko,
I looked into your provided node.ts, it seems to be a stripped down version that doesn’t really work. Nevertheless, could you try updating your imports on top of your node to the following?

import type {
	INodeExecutionData,
	INodeType,
	INodeTypeDescription,
	INodePropertyOptions,
	ILoadOptionsFunctions,
	IExecuteFunctions,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';

You are also using axios directly to make http requests. We do provide internal helper functions like this.helpers.request(options) or this.helpers.requestWithAuthentication(options).

Hey @marcus can you clarify? “it seems to be a stripped down version that doesn’t really work.”
I am using GitHub - n8n-io/n8n-nodes-starter: Example starter module for custom n8n nodes. repository for my nodes.

The node.ts you uploaded seemed like a stripped down version because all of your http requests go to https://.....

Hey @marcus
Bcs the links with token. We cannot share it. But the API returning
getProjects:

{
"result": [
{
"ID": "529",
"ENTITY_ID": "CRM_LEAD",
"FIELD_NAME": "UF_CRM_1568907438",
"USER_TYPE_ID": "enumeration",
"XML_ID": null,
"SORT": "600",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "E",
"SHOW_IN_LIST": "Y",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"DISPLAY": "LIST",
"LIST_HEIGHT": 1,
"CAPTION_NO_VALUE": "",
"SHOW_NO_VALUE": "Y"
},
"LIST": [
{
"ID": "6952",
"SORT": "10",
"VALUE": "Address JBR[A]",
"DEF": "N"
},
{
"ID": "6968",
"SORT": "20",
"VALUE": "Plots[A]",
"DEF": "N"
},

getSource:

{
"result": [
{
"ID": "6",
"ENTITY_ID": "SOURCE",
"STATUS_ID": "CALL",
"NAME": "",
"NAME_INIT": "Call",
"SORT": "10",
"SYSTEM": "Y"
},
{
"ID": "79",
"ENTITY_ID": "SOURCE",
"STATUS_ID": "FACE_TRACKER",
"NAME": "Facebook",
"NAME_INIT": "",
"SORT": "20",
"SYSTEM": "N"
},
{
"ID": "7",
"ENTITY_ID": "SOURCE",
"STATUS_ID": "EMAIL",
"NAME": "Instagram",
"NAME_INIT": "",
"SORT": "30",
"SYSTEM": "N"
} 
]}

ad_language:

{
"result": [
{
"ID": "469",
"ENTITY_ID": "CRM_LEAD",
"FIELD_NAME": "UF_CRM_1553165368131",
"USER_TYPE_ID": "enumeration",
"XML_ID": null,
"SORT": "500",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "E",
"SHOW_IN_LIST": "Y",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"DISPLAY": "LIST",
"LIST_HEIGHT": 1,
"CAPTION_NO_VALUE": "",
"SHOW_NO_VALUE": "Y"
},
"LIST": [
{
"ID": "6849",
"SORT": "10",
"VALUE": "English",
"DEF": "N"
},
{
"ID": "6850",
"SORT": "20",
"VALUE": "Arabic",
"DEF": "N"
},```

Good day!

Is there any updates regarding my topic?

Best Regards
David