qbXML status code 3150
ErrorQuickBooks requires an element the request left out; the message names it.
What QuickBooks says
There is a missing element: "%2".
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="3150" statusSeverity="Error", with this text in statusMessage.
What to do
Add the named field and send the request again.
Seen from a real company file
-
Answering CreditMemoQuery:
There is a missing element: "MaxReturned".
Things to know
- An iterated query by ListID or FullName answers 3150 for a missing MaxReturned, which the XSD forbids beside an id, so an iterator can never be combined with an id
With QuBe Sync's API
QuBe Sync reads QuickBooks' response for you. When CreditMemoQuery gets this code, your webhook receives this JSON:
{
"error": {
"debug_message": null,
"error_code": 3150,
"error_type": "quickbooks_business_error",
"hresult": null,
"message": "There is a missing element: \"MaxReturned\".",
"user_message": "This request is missing information QuickBooks requires. QuickBooks said: There is a missing element: \"MaxReturned\"."
},
"state": "error"
}
Wording read from QuickBooks Enterprise Solutions 24.0 (R21_80).