Xero bank statement import failed? Fixes for CSV and OFX errors
QuickBooks, Xero & OFX · · 5 min read
When a bank statement import goes wrong in Xero, it usually shows up on the review screen: some lines are flagged with warnings, others with errors that stop them importing. Sometimes the import works but leaves you with duplicates. Here's what causes each problem and how to fix it.
First: use OFX if your bank offers it
Xero recommends OFX for manual imports, because an OFX file can go into Xero without any changes to what your bank exported. A CSV usually needs cleaning up first. If your bank's download page offers OFX, try that before anything else.
If the OFX import also fails, open the file in the free OFX and QFX viewer. It reads the file in your browser, flags common problems such as a cut-off download, missing transaction IDs or a bare "&" in a payee name, and can write a repaired copy.
Fixing a CSV that Xero rejects
Most CSV problems come from the file having more in it than Xero wants. Xero's help says to:
- Delete any columns with opening and closing balances. Xero calculates the balance itself from the transactions.
- Delete the bank account number if it appears in the file.
- Delete empty rows.
Then check the two fields Xero needs, Date and Amount:
- Dates must use one of the formats Xero accepts: DD/MM/YYYY, MM/DD/YYYY or YYYY/MM/DD. Use the same one throughout the file, and choose it when Xero asks.
- Amounts go in a single column, money in as positive and money out as negative,
written either
-30.00or(30.00). Don't use a comma for decimals. If your bank puts money in and money out in separate columns, they need combining into one.
Payee, Description and Reference are optional, but they make reconciling much easier, so keep them if your bank provides them. A CSV can't have more than 100,000 rows.
The free bank CSV converter does all of this in one step. Choose the Xero option and it writes a file in the layout of Xero's own template, with one signed amount column and no balance columns. It can also write OFX instead.
Some lines imported, some didn't
Xero's advice when only part of a file goes in is to continue the import, review what came through, and then import the missing transactions from a different file type, such as OFX instead of CSV, or a corrected CSV covering only the dates that failed.
Duplicates after the import
Duplicate statement lines appear when a manual import overlaps with transactions Xero already has, from a bank feed or an earlier import of the same dates. Before importing, check the date of the most recent transaction already in that bank account and trim the file so it starts after it.
To find duplicates that have already crept in, run Xero's Duplicate Statement Lines report. With OFX files, keeping each transaction's ID (FITID) the same between downloads also helps software recognise transactions it has already seen. The OFX viewer's repaired file keeps original IDs for that reason.
Wrong account, or the import finds nothing
Xero imports one bank account per file. If your bank's download combines several accounts, download each account separately. For an OFX file, the viewer shows how many statements, and which accounts, the file contains.
If you only have PDF statements
In the US and Canada, Xero can read PDF statements from the banks it supports. Elsewhere, or for other banks, the statement converter reads the PDF in your browser, checks every transaction against the statement's closing balance, and exports OFX or CSV ready for Xero. There's more on the Xero page, and see our general guide on how to convert a PDF bank statement to Excel if you need to review transactions before importing.
Related guides & tools
- Bank Statement to Xero Converter →
Fix rejected CSV and OFX statement imports in Xero.
- Free OFX & QFX File Viewer →
Validate OFX headers and transaction blocks.
More on bank files and imports
- What is an OFX file, and how do you open it? OFX is the format banks use for transaction downloads. What’s inside, how it differs from QFX and QBO, which software opens it, and how to read one.
- What is a QBO file? (and how to open one) A QBO file is a bank download for QuickBooks Web Connect. What’s inside, which QuickBooks versions open it, and how to view or convert one without it.
- How to convert an OFX or QFX file to CSV or Excel Excel can’t read an OFX or QFX file as a table. How to turn one into a clean CSV in your browser, and what to check before you use it.
- Bank file won’t import into QuickBooks? Fixes for QBO, QFX and OFX errors What QuickBooks’ import errors mean, how to find the problem inside a .QBO, .QFX or .OFX file, and how to fix it or get the transactions in another way.
- How to import a bank CSV into QuickBooks Online What QuickBooks Online expects from a bank CSV, why most bank exports don’t fit, how to fix one in Excel, and a free tool that does it for you.
- QuickBooks Online CSV import errors: what each one means and how to fix it Why QuickBooks Online rejects a bank CSV, from column mapping and currency formats to dates, special characters and money-out-only files, and each fix.
- Getting bank transactions into QuickBooks Desktop without a .QBO file QuickBooks Desktop’s Web Connect only reads .QBO files. What to do when your bank gives you a CSV, OFX or PDF instead, including Batch Enter Transactions.
- Duplicate transactions after a bank import: why it happens and how to clean up Why bank imports create duplicates in QuickBooks and Xero, how to remove them in each, and how to stop it happening on the next import.