qbXML status code 3000

Error

A ListID or TxnID in the request is not a valid id at all; the message names the field.

What QuickBooks says

The given object ID "%1" in the field "%2" is invalid. %4

QuickBooks fills in the marked parts when it answers: usually the value, the field, the kind of record and a longer explanation of its own.

It arrives on the response element as statusCode="3000" statusSeverity="Error", with this text in statusMessage.

What to do

Send the id exactly as QuickBooks returned it. A well-formed id whose record is gone is 3120 instead.

Seen from a real company file

  • Answering BillToPayQuery:

    The given object ID "E2E Test Vendor" in the field "Payee Entity" is invalid. QuickBooks error message: Invalid argument.

With QuBe Sync's API

QuBe Sync reads QuickBooks' response for you. When BillToPayQuery gets this code, your webhook receives this JSON:

Webhook state and error
{
  "error": {
    "debug_message": null,
    "error_code": 3000,
    "error_type": "quickbooks_business_error",
    "hresult": null,
    "message": "The given object ID \"E2E Test Vendor\" in the field \"Payee Entity\" is invalid. QuickBooks error message: Invalid argument.",
    "user_message": "This request refers to a QuickBooks record by an id QuickBooks doesn't recognize. Look the record up again, then retry. QuickBooks said: The given object ID \"E2E Test Vendor\" in the field \"Payee Entity\" is invalid. QuickBooks error message: Invalid argument."
  },
  "state": "error"
}

Wording read from QuickBooks Enterprise Solutions 24.0 (R21_80).