If you have ever helped an accountant, CPA, or startup founder close historical books in QuickBooks Online or QuickBooks Desktop, you have almost certainly stared at the most unhelpful error dialog in accounting software:

Error OL-221: "QuickBooks was unable to verify the Financial Institution information for this download."

Most online tutorials tell you to "call your bank" or "edit the file in Notepad." Neither fixes the root cause reliably—especially when the file came from a Quicken .QFX export, a generic .OFX download, or a third-party PDF converter.

When we engineered LocalBankCSV—a 100% browser-local bank statement converter for .PDF, .CSV, .QIF, and .QFX files—we had to reverse-engineer every strict rule inside Intuit's legacy OFX 1.0.2 parser so exported .QBO files pass on the first upload with zero bytes leaving the user's browser.

Here is the exact technical breakdown of why OL-221 happens and how we solved it purely client-side in TypeScript.

The 4 Real Bugs Behind 95% of QuickBooks OL-221 Rejections

QuickBooks Web Connect .QBO is not modern XML. Under the hood, QuickBooks Desktop (and much of QuickBooks Online's Web Connect ingestion path) expects OFX 1.0.2 SGML (OFXHEADER:100, DATA:OFXSGML, ENCODING:USASCII, CHARSET:1252).

A single subtle defect anywhere inside a 500-transaction statement aborts the entire import:

1. Missing or Inactive <INTU.BID>

Quicken .QFX and generic .OFX files use almost identical transaction blocks to .QBO, except they omit <INTU.BID> or carry a Quicken-only institution ID. QuickBooks validates <INTU.BID> against Intuit's active Financial Institution Directory (fidir.txt).

  • Chase → 10898
  • Bank of America → 5959
  • Wells Fargo (and reliable universal fallback for regional credit unions & neobanks like Mercury) → 3000
  • American Express → 3101
  • Capital One → 1009
  • Citibank → 24909

2. Unescaped SGML Characters (&, <, >) & UTF-8 Accents

One single merchant name like AT&T BUSINESS & FIBER or CAFÉ MONTRÉAL breaks QuickBooks' USASCII SGML tokenizer. Worse, <NAME> has a hard 32-character limit in QuickBooks Desktop (<MEMO> allows up to 255 characters).

3. Duplicate or Random <FITID> Values

Every <STMTTRN> block requires a unique Financial Institution Transaction ID (<FITID>). If two same-day rows collide on <FITID>, QuickBooks silently drops one. Conversely, if a converter uses Math.random() or crypto.randomUUID(), re-importing overlapping statement dates creates painful duplicate ledger entries.

4. Wrong Account Envelope or Inverted Credit Card Signs

Checking/Savings statements belong inside <BANKMSGSRSV1><STMTTRNRS><STMTRS>, whereas Credit Card statements belong inside <CREDITCARDMSGSRSV1><CCSTMTTRNRS><CCSTMTRS>—with purchases signed negative (-TRNAMT) and payments signed positive (+TRNAMT). Many card portals (Amex, Capital One) print purchases as positive numbers, flipping every expense into a refund if not inverted.

Offline QFX and QBO file validator diagnosing and repairing QuickBooks OL-221 import error

Engineering the Client-Side Sanitizer & Deterministic FITID Engine

Instead of asking bookkeepers to upload sensitive client banking files to a cloud backend, we implemented the entire sanitizer and OFX 1.0.2 writer directly in browser-side TypeScript:

// 1. Strict USASCII SGML sanitizer for QuickBooks <NAME> (<=32) & <MEMO> (<=255) export function sanitizeOfxText(raw: string, maxLen: number): string { return raw .normalize('NFKD') .replace(/[\u0300-\u036f]/g, '') // Strip diacritics (é -> e, ü -> u) .replace(/ß/g, 'ss') .replace(/&/g, ' and ') // Prevent SGML entity crash (AT&T -> AT and T) .replace(/[<>"]/g, ' ') // Strip illegal SGML delimiters .replace(/[^\x20-\x7E]/g, ' ') // Enforce 7-bit USASCII .replace(/\s+/g, ' ') .trim() .slice(0, maxLen); } // 2. Deterministic FNV-1a FITID so overlapping monthly imports never duplicate export function buildDeterministicFitId( isoDate: string, amountCents: number, cleanPayee: string, dailySeqIndex: number ): string { const input = `${isoDate}|${amountCents}|${cleanPayee}|${dailySeqIndex}`; let hash = 0x811c9dc5; for (let i = 0; i < input.length; i++) { hash ^= input.charCodeAt(i); hash = Math.imul(hash, 0x01000193); } const hex = (hash >>> 0).toString(16).toUpperCase().padStart(8, '0'); const compactDate = isoDate.replace(/-/g, ''); const seq = String(dailySeqIndex).padStart(2, '0'); return `${compactDate}-${Math.abs(amountCents)}-${seq}-${hex}`; } 

Why this design works so reliably in production:

  • Deterministic across re-runs: Converting October 1–31 and later converting October 15–November 15 produces identical <FITID> strings for the overlapping two weeks, so QuickBooks automatically deduplicates them.
  • Legitimate same-day repeats survive: Two separate $4.75 coffee purchases on the same day get dailySeqIndex 01 and 02, so neither is accidentally dropped.
  • Zero network upload: Everything runs inside the user's browser memory. Open Chrome DevTools → Network → Fetch/XHR before dropping a file and you will see 0 / 0 requests · 0 B transferred.

QuickBooks Web Connect QBO file with valid INTU.BID and deterministic FITID

7 Permanently Free Offline Utilities You Can Use Today (No Signup, No Upload)

Rather than locking basic format conversions behind legacy desktop installers or recurring monthly paywalls, we shipped all text-based format converters as free, unlimited, browser-local utilities (each includes a 1-click sample file so you can audit the output without real banking data):

And when clients hand over locked monthly PDF bank statements (Chase, BofA, Wells Fargo, Amex, Mercury, Barclays, Sparkasse, etc.), our main PDF to QBO Converter parses native digital PDFs in the same 0-upload browser engine with automated $0.00 balance tie-out (Opening + Credits − Debits = Ending).

Open-Source CLI Companion (MIT)

If you prefer validating or auto-repairing .QBO / .QFX / .OFX files from a terminal or CI pipeline, we also open-sourced a zero-dependency Node.js CLI under the MIT license: vibeteamX/ofx-qbo-validator (node ./bin/ofx-qbo-validator.mjs broken.qfx --fix).

If you have encountered any obscure QuickBooks OL-221 / OL-222 edge case or weird bank .QFX export format in the wild, drop a comment below—happy to inspect the tag structure and add support!