The “Field Too Long” error (often returned as ValidationException: String length is either shorter or longer than supported) occurs when an external app attempts to send data that exceeds the character limits of QuickBooks Online’s database schema. When an e-commerce platform, CRM, or integration tool tries to push a line item description, customer name, or transaction memo that contains more characters than the target QBO field allows, Intuit’s API rejects the entire transaction. Resolving this error requires identifying the offending field, truncating the text to fit Intuit’s limits, and configuring character limits in your connector settings.
Fast-Fix: The 45-Second Solution
To fix a “Field Too Long” import rejection, open the failed transaction in your integration’s sync queue or error log to identify which field caused the issue. The most common culprit is the DocNumber (Invoice/Reference Number), which has a strict limit of 21 characters, or the Customer Display Name, which is capped at 100 characters. Shorten the text in the source system (e.g., Shopify, Stripe, or Zapier) to fall within Intuit’s limit, save the record, and click Retry Sync.
Quick Status & Triage Snapshot
- Data Risk Tier: Low (The transaction is rejected at the API boundary; no partial or corrupt records enter your QBO ledger).
- Multi-User Impact: Confined to automated data entry pipelines. Users working manually inside QBO are unaffected.
- Common Triggers: Automated order prefixes on e-commerce platforms, lengthy customer notes or shipping addresses, verbose SKU descriptions, or automated transaction tracking hashes.
- Estimated Fix Time: 5 to 15 minutes.
Diagnostic Flowchart: Field Length Error Decision Path
[Start: Integration Sync Error - Field Too Long]
|
Review the Integration Error Log / API Response
|
Identify the specific rejected field name:
|
|-----------------|-----------------|-----------------|
| | |
[DocNumber / RefNumber] [DisplayName / Name] [Line Description]
Limit: 21 Characters Limit: 100 Characters Limit: 4000 Chars
| | |
Is an automated prefix added? Does name contain Is raw HTML or tracking
(e.g., "SHOPIFY-STORE-100234") company + full email? data embedded in notes?
| | |
|-- YES: Shorten prefix in |-- YES: Shorten |-- YES: Strip HTML &
app settings to fit to under truncate text
under 21 characters 100 chars in connector
|
Re-run sync for the rejected transaction batch
Is Your Data at Risk?
Your accounting database is not at risk of data loss or file corruption.
Intuit’s REST API uses strict schema validation. When an integration submits a JSON payload containing an invalid string length, the API immediately throws an error and rejects the entire record. It does not import a partial invoice or cut off the text mid-stream without warning.
However, operational issues can follow:
- Out-of-Sequence Books: If order #1052 is rejected due to an excessively long name, but order #1053 imports successfully, your revenue reporting and invoice numbering sequences become fragmented.
- Reconciliation Gaps: When an unimported transaction represents settled customer funds, your bank feed will show a deposit that cannot be matched to an invoice or sales receipt in QBO.
If you need to trace where an automated pipeline stalled, use Sync Audit: How to Find Where Your QBO App Data Broke.
Technical Anatomy: QuickBooks Online Database Field Constraints
QuickBooks Online’s underlying database enforces fixed-width string limits across all transaction tables. When an integration maps fields without character-trimming rules, it inevitably runs into these boundaries:
| QBO Field Name | Database Target | Character Limit | Common Failure Point |
|---|---|---|---|
| DocNumber | Invoice / Sales Receipt # | 21 characters | E-commerce order numbers with long prefixes |
| DisplayName | Customer / Vendor Name | 100 characters | Syncing full name + email + company in one field |
| PrintOnCheckName | Check Payee Name | 110 characters | Corporate business names with long DBAs |
| Line Description | Invoice / Bill Line Item | 4,000 characters | Automated logs, raw JSON, or long terms text |
| Customer Memo | Transaction Footer Memo | 1,000 characters | Automated delivery notes or full email threads |
| Address Line | Line 1, 2, 3 of Billing/Shipping | 500 characters (per line) | Detailed delivery instructions placed in address lines |
| Item Name (SKU) | Products & Services List | 100 characters | Nested category names (Cat:Subcat:ItemName) |
The most common point of failure is the DocNumber. Many e-commerce connectors automatically append store names, dates, or channel tags to order IDs (for example: AMAZON-US-ORD-2026-9918234). At 25 characters, this payload will immediately trigger a ValidationException from the API.
Differential Diagnosis: Schema Limits vs. Formatting Conflicts
- String Length Violation: The error specifically cites character counts, such as
String length specified does not match regex lengthorField length is greater than maximum allowed. - Duplicate Document Number: The character length is valid (under 21 characters), but QBO rejects the transaction because the invoice number already exists in your company file.
- Tax Code Integration Errors: The length of the payload is acceptable, but the tax percentage or agency ID inside the line item cannot be matched. See Tax Code Mismatch: Fixing Errors in Third-Party App Integrations.
- Automation Step Failure: The data fails to reach QBO because an upstream automation tool like Zapier crashed during data formatting. See Zapier & QBO: Troubleshooting Automation & Workflow Breakdowns.
Step-by-Step Repair Guide
Follow these steps to locate the rejected string, shorten the text, and adjust your integration’s mapping rules.
Step 1: Identify the Rejected Field in the Error Log
- Open your integration software’s dashboard (e.g., Zapier, Webgility, A2X, Shopify QuickBooks Connector, or Synder).
- Go to the Error Log, Sync Activity, or Task History.
- Open the failed transaction record and look for the raw Intuit API response.
- Locate the specific field identified in the error:
{ "Message": "An unexpected error occurred while accessing or saving your data.", "Detail": "ValidationException: String length is either shorter or longer than supported by field: [DocNumber length=26, max allowed=21]" } - Note the field name (
DocNumber,DisplayName,Description) and the excess character count.
Step 2: Manually Shorten the Field in the Source System
- Open the original record in the platform that generated the sale or document (e.g., your e-commerce platform or CRM).
- Edit the identified field to fit within QBO’s limits:
- If DocNumber: Shorten the prefix or reference code so the entire string is 21 characters or fewer.
- If Customer Display Name: Shorten the name to under 100 characters. If the app combined the customer’s personal name and company name into the same field, separate them.
- If Line Description: Remove tracking URLs, system debug codes, or lengthy delivery instructions from the item description, keeping it under 4,000 characters.
- Save the record in the source system.
Step 3: Configure Truncation Rules in Your Connector
To prevent future transactions from failing, configure your sync application to automatically truncate strings that exceed QBO limits:
- In Direct Connector Apps (e.g., Shopify / Amazon Connectors):
- Navigate to Sync Settings > Orders or Invoices.
- Look for the Order Number Prefix setting.
- Shorten the prefix (e.g., change
SHOPIFY-STORE-toSH-). - Ensure the combined length of your prefix and your highest anticipated order number will never exceed 21 characters.
- In Zapier or Custom Middleware:
- Open your Zap in the editor.
- Insert a Formatter by Zapier step immediately before the QuickBooks Online action.
- Choose Text > Truncate.
- Set the input field to the text source (e.g., customer notes or invoice description).
- Set the Max Length to match QBO’s limit (e.g.,
1000for memos,21for document numbers). - Map the output of this Formatter step into the QBO action field.
Step 4: Re-Sync the Failed Transaction Batch
- Return to the integration tool’s error queue.
- Select the failed transactions.
- Click Retry, Re-run, or Force Sync.
- Log into QuickBooks Online and verify that the transactions now appear with the truncated fields in place.
If the sync fails to re-engage after updating your data, you may need to reset the connection cache by following Re-Sync Guide: Disconnect and Re-Connect QBO Apps Without Data Loss. If you cannot resolve the automation error and need to import historical data immediately, you can export the data to a spreadsheet, trim the columns, and upload it manually using Manual Import Guide: How to Upload .CSV and .QBO Files to QuickBooks.
Hard Stop: When to Re-Evaluate Integration Architecture
Stop troubleshooting and adjust your system setup if:
- Your external platform uses non-negotiable identifier strings (such as 32-character financial hashes or UUIDs) as primary transaction numbers, and the sync app does not allow mapping those IDs to the memo field instead of the DocNumber field.
- Your line item descriptions require extensive legal or regulatory disclosures exceeding 4,000 characters per item; these must be added as separate PDF attachments rather than text line entries.
Closing the Books
The “Field Too Long” error is a safeguard enforced by QuickBooks Online’s database schema. The API rejects strings that exceed its storage limits to prevent system instability. By identifying the offending field in your integration logs, shortening the text, and adding truncation rules to your connector setup, you can keep your automated sync pipelines running smoothly.