Error Creating QuickBooks Customer

I’m creating a Customer in QuickBooks Online via the QuickBooks Node. When I execute the node, I get an error saying Bad Request and check parameters. The Customer is Created in Quickbooks, and I’m setting the Display Name Value.

ERROR: Bad request - please check your parameters
400 - {“Fault”:{“Error”:[{“Message”:“No name provided”,“Detail”:“Title, GivenName, MiddleName, FamilyName, DisplayName, Suffix - one of these must be non-empty.”,“code”:“6080”,“element”:“Title, GivenName, MiddleName, FamilyName, Suffix, DisplayName”}],“type”:“ValidationFault”},“time”:“2023-06-01T13:00:04.704-07:00”}

{
“meta”: {
“instanceId”: “e61935e864a695ab76b586a3cc28d57af9675df33ed99fcf7803ed35ee7c588e”
},
“nodes”: [
{
“parameters”: {
“operation”: “create”,
“displayName”: “={{ $node["SF - Get all Accounts not QB Synced"].json.Name }}”,
“additionalFields”: {
“Active”: true,
“BillAddr”: {
“details”: {
“City”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.city }}”,
“Line1”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.street }}”,
“PostalCode”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.postalCode }}”,
“Lat”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.latitude }}”,
“Long”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.longitude }}”,
“CountrySubDivisionCode”: “={{ $node["SF - Get all Accounts not QB Synced"].json.BillingAddress.country }}”
}
},
“CompanyName”: “={{ $node["SF - Get all Accounts not QB Synced"].json.Name }}”,
“PrimaryPhone”: “={{ $node["SF - Get all Accounts not QB Synced"].json["Phone"] }}”
}
},
“id”: “7a6079a1-3276-4ba5-bcc8-36266700be16”,
“name”: “QB - Create Customer”,
“type”: “n8n-nodes-base.quickbooks”,
“typeVersion”: 1,
“position”: [
1300,
200
],
“credentials”: {
“quickBooksOAuth2Api”: {
“id”: “1”,
“name”: "Sandbox - QuickBooks Online "
}
}
}
],
“connections”: {}
}

Information on your n8n setup

  • n8n version:0.228.2
  • Running n8n via n8n cloud

Must have been a bug. It is working now.

Hey @ies-trevor,

It looks like Quickbooks was replying back and saying one of the fields was empty, Looking at the part of the workflow you shared I suspect one of the variables was empty and that was the cause.

Keep an eye on the workflow and if it happens again share the full thing and we can take a proper look.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.