qbXML status code 3070

Error

A text value is longer than QuickBooks allows for that field; the message names the field.

What QuickBooks says

The string "%1" in the field "%2" is too long.

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="3070" statusSeverity="Error", with this text in statusMessage.

What to do

Shorten the value and send the request again.

With QuBe Sync's API

QuBe Sync reads QuickBooks' response for you. When CustomerAdd gets this code, your webhook receives this JSON, with the marked parts filled in:

Webhook state and error
{
  "error": {
    "debug_message": null,
    "error_code": 3070,
    "error_type": "quickbooks_business_error",
    "hresult": null,
    "message": "The string \"%1\" in the field \"%2\" is too long.",
    "user_message": "A value in this request is longer than QuickBooks allows for that field. Shorten it and try again. QuickBooks said: The string \"%1\" in the field \"%2\" is too long."
  },
  "state": "error"
}

Wording read from QuickBooks Enterprise Solutions 24.0 (R21_80).