It looks like while we have not marked the field as required the way we load the items is expecting a value. We do have a new design feature we have recently started rolling out to nodes which would likely solve this although I don’t know where Mautic is on the list at the moment.
I’ve tried a few things. Not sure what you mean by empty expression, but it seems that as long as there is no value for the ID provided that is also present in the Mautic database, no contact is created.
I have just given it a quick test and if you just swap it to an expression and don’t input anything it looks like it does work. You will see the icon next to field but it doesn’t appear to impact the node working.
I just checked and you are right, it works.
Somehow the IF node before the Mautic node seemed to cause the problem, even though all the fields were filled in.
Hi there, I am stuck with the same situation and changing to an empty expression doesn’t help:
NodeApiError: Bad request - please check your parameters
at Object.mauticApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/GenericFunctions.js:37:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/Mautic.node.js:513:40)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:590:53
I’ve got this same issue. n8n crate contact and even company (also required this field), but I see this alert with code 500.
NodeApiError: The service was not able to process your request
at Object.mauticApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/GenericFunctions.js:37:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/Mautic.node.js:513:40)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:652:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:596:53
I checked this on two indepedient Mautic units. 4.4.9 and 4.4.5. First is based on Google Cloud, second on shared hosting. This bug happen when I create or update contacts with n8n. I checked others actions like ‘point change’ with successful result (no errors).