The most common Xero CSV import errors trace back to five predictable causes: dates in a different format from the one Xero reads them in, hidden characters or empty rows lingering at the end of the file, amount fields polluted with currency symbols or commas, wrong file encoding exported from Mac Excel, and blank rows sitting between your headers and actual data. Before you do anything else, confirm that every date in the file uses one numeric format with four-digit years and that Xero is reading the file in that format, delete any trailing empty rows below your last data entry, and strip every currency symbol and thousand-separator comma from your amount columns.
This guide covers both bank statement and invoice/bill CSV imports, ordered from the most common causes to the least common. Work through the sections in order and stop when your issue is resolved.
Quick Diagnostic Checklist: The 5 Most Common Causes
Before working through specific import types or error messages, run through these five checks. They account for the vast majority of Xero CSV import failures.
1. Incorrect date format
Xero has to know whether 03/04/2026 means 3 April or March 4. If your file uses one order and Xero reads it in the other, the import will fail on dates that cannot exist (03/15/2026 read as day 3 of month 15) or, worse, silently swap the day and month on every date where both are 12 or below.
Fix: For a bank statement, if Xero asks which date format your CSV uses, choose the one the file actually uses. If an earlier import saved the wrong format, change it in Xero's saved CSV import settings for that bank account. For invoice and bill files, use one numeric format throughout with four-digit years, and check the dates on the imported drafts before you approve them. Do not mix formats within the same file.
2. Hidden characters and empty rows at the end of the file
Trailing empty rows or invisible characters (carriage returns, null bytes, non-breaking spaces) lurking below your last data row are a frequent cause of the "file does not contain valid statement data" error. Spreadsheet applications often add these silently, and they are invisible in Excel or Google Sheets.
Fix: Open the CSV in a plain text editor (Notepad on Windows, TextEdit in plain text mode on Mac, or VS Code). Scroll to the bottom, delete everything below the last row of actual data, and save. Do not re-open in Excel before importing.
3. Currency symbols or commas in amount fields
Xero expects raw numeric values in amount columns. A value like "$1,500.00" contains two problems: the dollar sign and the thousands comma. European and Australian users who format decimals with commas ("1.500,00") face the same issue in reverse. Any non-numeric character in an amount field will cause the import to fail or produce incorrect values.
Fix: Strip all currency symbols and thousand separators from amount columns. Use a period as the decimal separator (e.g., 1500.00). If you are working with a locale that uses comma decimals, you will need to convert them to period decimals before import.
4. Wrong file encoding (especially from Mac Excel)
Mac Excel is a particularly common source of encoding problems. Its plain "CSV" option does not save in UTF-8, so accented letters, currency signs and other special characters in payee names or descriptions come through garbled. The result is often a vague error, or a file that appears correct when opened but fails on upload.
Fix: Save as "CSV UTF-8 (Comma delimited)" format rather than plain "CSV." Alternatively, open the file in Google Sheets and download it as CSV, which also produces UTF-8.
5. Blank rows between headers and data
Any empty row between your header row and the first data row will cause the import to fail. This commonly happens when users delete rows from the middle of a spreadsheet and leave gaps, or when a title row sits above the actual column headers.
Fix: Ensure the header row is in row 1 (or the row Xero expects) and that data begins immediately in the next row. Remove any blank rows, title rows, or summary rows above or between your data.
If none of these five fixes resolve your error, keep reading. The sections below cover specific error messages, import-type-specific issues, and platform-related problems.
Xero CSV Error Messages and What They Mean
Xero's CSV import error messages rarely point to the actual cause. The table below maps each message to what is likely wrong and how to fix it.
| Error Message | Likely Cause | Fix |
|---|---|---|
| "There was a problem importing the file" | This is Xero's most generic error. It typically means wrong file encoding (especially files exported from Mac Excel without UTF-8), a corrupted CSV, or the file is still open or locked by another application. | Close the file in all applications. Re-save as CSV UTF-8 from a clean source (Google Sheets or a fresh Excel session). On Mac, select "CSV UTF-8 (Comma delimited)" specifically. |
| "The file does not contain valid statement data" | Appears during bank statement imports. Usually caused by trailing empty rows at the bottom of the file, title or summary rows above the header row, or no column assigned to Date or Amount at Xero's mapping step. | At the mapping step, assign one column to Date and one to Amount, the only two required fields. Scroll to the bottom of the file and delete any blank rows below your last data entry. |
| "The date [value] is not valid" | The dates in your CSV are in a different format from the one Xero is reading them in, or a value is an impossible date like 31/02/2026. | For a bank statement, check the date format you chose at import, or the one saved in Xero's CSV import settings for that account. For invoices and bills, put every date in one numeric format with four-digit years (e.g., DD/MM/YYYY). Correct any impossible dates. |
| "Duplicate invoice number" | An invoice with this number already exists in Xero. | Search your Xero invoice list for the existing entry, and include voided and deleted records in the search, since an old record carrying the same number is easy to miss. Either use a unique invoice number in your CSV or resolve the duplicate in Xero first. On the bills side, the same number collisions are a sign to tighten your process for catching duplicate supplier bills before they reach Xero. |
| "The account code [value] is not valid" | The account code referenced in your CSV does not match any entry in your chart of accounts. This includes typos, leading zeros that were stripped, and archived accounts. | Open your chart of accounts in Xero and verify the exact code. Copy it directly from Xero into your CSV to avoid mismatches. |
| "The tax rate [value] does not exist" | The tax rate name in your CSV does not match the name of a tax rate set up in your Xero organization, often through a typo, a variation in wording, or an invisible trailing space. | Open the tax rates list in Xero and copy the name into your CSV exactly as Xero shows it. Watch for invisible trailing spaces or slight naming variations. |
| No error message (silent failure) | The import fails silently, returns you to the import screen, or shows a generic "import failed" notification. This often points to encoding issues, a locked file, or structural problems the parser cannot categorize. | Work through the diagnostic checklist above. Start with file encoding (re-save as CSV UTF-8), then check for trailing empty rows and, for bank statements, whether Date and Amount are assigned at the mapping step. |
Invoice and Bill CSV Import Troubleshooting
Xero's invoice and bill CSV import has its own set of formatting requirements that differ significantly from bank statement imports. Most failures here are field-specific, and a single misformatted column can reject an entire file. For reference on the baseline import process, our step-by-step guide to importing invoices into Xero covers the correct workflow.
Multi-Line Invoices Require Repeated Invoice Numbers
Every line item row in your CSV must include the same invoice number for items that belong to the same invoice. Xero uses this field to group rows together. If you leave the invoice number blank on subsequent line items (assuming Xero will inherit it from the row above), each row will be created as a separate invoice. Double-check that every row for a given invoice carries an identical, consistently formatted invoice number.
Account Codes Must Be Formatted as Text
The Account Code column must be formatted as text, not number. Excel and Google Sheets will silently strip leading zeros from numeric cells. An account code of "0200" becomes "200," which will not match anything in your Xero chart of accounts. The fix: select the entire Account Code column, set the cell format to "Text," and re-enter any values that have already lost their leading zeros.
Re-importing an Exported File
Xero exports invoices and bills with each line item on its own row, in line with the format its import uses, so an export is a workable starting point for a re-import. Two things still catch people. The invoice numbers in an export already exist in Xero, so a file re-imported unchanged can collide with the originals (see the duplicate invoice number error above): give edited records new numbers, or change the existing invoices in Xero instead. And anything an import cannot set does not come across: payment status is one, so re-imported invoices and bills arrive unpaid, whatever the exported file says. If you are building a file from scratch rather than from an export, start from Xero's import template.
Tax Code and Calculation Mismatches
Tax codes in your CSV must match the tax rate names configured in your Xero organization. Copy each name exactly as Xero shows it rather than typing it from memory, and do not count on Xero treating "GST on income" and "GST on Income" as the same rate.
For Australian organizations, correct GST codes are critical because they flow directly into BAS reporting and lodgement in Xero. Beyond naming, tax calculation errors are common with certain line configurations. Tax-inclusive invoices that contain 100% discount lines can cause Xero to reverse or miscalculate tax values during import. If the combination of your tax-inclusive flag, line amounts, and tax amounts is internally inconsistent, Xero will either reject the row or import incorrect figures. Verify your tax arithmetic manually on any discounted or zero-value lines before importing.
Import Behavior Limitations
Several constraints apply to what CSV import can and cannot do:
- Draft status only: Bills imported via CSV arrive as "Drafts" and need approving in Xero after import. Drafts can be approved together, by ticking them in the Draft list and clicking Approve, so the bottleneck is checking them, not clicking through them. If several people need to review bills before they post, set up a bill approval workflow in Xero to route each draft to the right reviewer.
- No payment marking: There is no way to mark invoices as "paid" during CSV import. Payment status must be applied manually after the invoices are imported.
- Foreign currencies must exist in Xero first: the template's Currency column takes the three-letter code of each invoice or bill, but only for a currency already added to your Xero organization, which needs a plan that includes multicurrency. Add the currency under Settings > Currencies before importing.
Splitting Large Files
If a long invoice or bill file fails or times out, split it into smaller batches and import them one at a time. A smaller file also makes a failure easier to trace, because Xero's error messages rarely name the row at fault. When splitting, keep every line item of a multi-line invoice in the same file: Xero groups rows by invoice number, so an invoice split across two files will not import as one invoice.
Bank Statement CSV Import Troubleshooting
Xero's bank statement CSV import does not require fixed column names: it asks you to assign each column of the file to a statement field and, where it needs to, asks which date format the file uses. The failures come from the content instead: dates read in the wrong order, amounts with the wrong sign, blank rows, and encoding. If you have already reviewed how to import bank statements into Xero and are still hitting errors, the issues below are the most likely causes. If your source file came from TD Canada Trust, the TD statement conversion workflow for EasyWeb and eStatements helps you confirm whether the problem starts with the export method or the CSV formatting itself. For Hang Seng accounts, this Hang Seng statement-to-Excel guide for Xero prep is useful when the problem starts with converting the bank's source statement into a clean spreadsheet before you ever reach Xero's import step. If the source data comes from Standard Chartered Hong Kong, this walkthrough on converting Standard Chartered HK statements for Xero-ready Excel or CSV helps separate bank export issues from PDF cleanup issues before import. For Capital One Spark Business card statements, use a Capital One Spark statement conversion workflow for Excel, CSV, QuickBooks, or Xero before mapping columns into Xero's bank statement format.
Date Format Mismatches
Xero reads every date in a bank statement file in one format. If it asks which date format your CSV uses, choose the one the file actually uses: a file exported from a US-based banking portal will typically use MM/DD/YYYY, while UK, Australian and New Zealand banks typically use DD/MM/YYYY. Choose wrong, and transactions land on the wrong dates or fail outright.
Xero saves the date format with the column mapping and reuses both for files with the same column headers, so a wrong choice keeps going wrong on every later import. Correct it in Xero's CSV import settings for that bank account.
Watch for these specific traps:
- Day and month both 12 or below. 03/04/2026 is a valid date read either way round, so a wrong format raises no error on these dates. Check a few of them against the bank statement after importing, before you reconcile.
- Two-digit years (25/01/26) can be misinterpreted or rejected. Always use four-digit years.
- Mixed formats. A file pieced together from two exports can carry two date formats, and Xero reads the whole file in one.
Amount Sign Conventions
This is one of the most common and least obvious bank statement import failures. Spends (payments out) must be entered as negative numbers. Xero's instructions put money in and money out in a single Amount column, with money out as a negative amount, and the result of getting it wrong is not an error message. Instead, every outgoing payment imports as an incoming deposit, corrupting your reconciliation.
Before importing, open your CSV and verify:
- Debits, withdrawals, and payments carry a negative sign (e.g., -150.00). Xero's help also accepts brackets, as in (150.00), but a leading minus sign is the safer choice.
- Credits and deposits are positive (e.g., 250.00)
If your bank exports all amounts as positive values with a separate "Debit/Credit" column, you need to manually apply negative signs to the debit amounts before import.
Column Structure Requirements
Xero does not need particular column names. The first time you import a CSV into a bank account, Xero asks you to assign each column in the file to a statement field. Only two are required: Date and Amount. Payee, description, reference and the other fields are optional. Xero saves the mapping and reuses it the next time you import a file with the same column headers. If your bank changes its export layout, the saved mapping no longer fits: redo it, or change it in Xero's CSV import settings.
What the file does need is a structure the mapping step can read: a single header row at the top, with no title or summary rows above it, and a distinct name for each column. A clean bank statement CSV looks like this:
Date,Amount,Description 25/02/2026,-150.00,Office supplies payment 25/02/2026,3200.00,Client payment received
Note the negative amount for the outgoing payment and the four-digit year. The dates are DD/MM/YYYY, so that is the format to choose if Xero asks.
Empty Rows and Amount Formatting
The same empty-row and amount-formatting rules from the diagnostic checklist above apply to bank statements. The bank-statement-specific detail: in Excel, use Delete Row (not Clear Contents) to remove trailing rows. Clear Contents leaves invisible cell metadata that Xero still attempts to parse. For EU and AU locales where 1.500,00 means one thousand five hundred, convert to period-based decimals (1500.00) before import.
Splitting Long Statements
If your bank export covers a long date range, split it into monthly or quarterly files and import them in date order. A shorter file is quicker to check against the bank statement, and if one import fails, the problem is confined to a single period.
Platform-Specific CSV Issues: Mac, Windows, and Google Sheets
Different spreadsheet applications encode CSV files differently, and this single fact causes a disproportionate number of Xero import failures. A file that imports perfectly when saved from Windows Excel may throw errors when saved from Mac Excel using identical data. If your CSV content looks correct but Xero still rejects it, the problem is likely how your application saved the file, not what is in it.
Mac Excel
Mac Excel's issues are invisible when you open the file but show up during Xero import.
Its plain "CSV (Comma delimited)" option saves in a legacy character set rather than UTF-8. Standard English letters and digits survive, but accented characters, currency signs and other special symbols in payee names and descriptions are corrupted or trigger parsing errors.
Its "CSV UTF-8 (Comma delimited)" option fixes the character problem, and also writes a BOM (Byte Order Mark), a hidden three-byte sequence at the very start of the file. Many programs read past it unnoticed, but if the first column's header shows stray characters at Xero's mapping step, the BOM is the likely cause.
Fix: When saving from Mac Excel, select "CSV UTF-8 (Comma delimited)" as the file format rather than the default CSV option. If the first header then looks wrong in Xero, open the file in Google Sheets and download it as CSV, which writes UTF-8 without a BOM, or re-save it from a text editor such as VS Code as UTF-8 without BOM.
Windows Excel
Windows Excel's plain CSV option saves in the system's legacy code page, Windows-1252 on most English and Western European systems, rather than UTF-8. This encoding handles standard English characters without issue, but accented characters or special symbols in vendor names, descriptions, or account references will be corrupted or trigger parsing errors in Xero.
A second common issue: blank rows past the visible data range. Windows Excel sometimes retains formatting or phantom data in rows below your actual content, and Xero attempts to parse these empty rows as records, producing validation errors for missing required fields.
Fix: Save as "CSV UTF-8 (Comma delimited)" instead of the regular "CSV (Comma delimited)" option. Before saving, select all rows below your data and delete them entirely (right-click, Delete Row) to eliminate trailing blank rows.
Google Sheets
Google Sheets downloads CSV as UTF-8 without a BOM by default, making it the most reliable option for Xero imports.
The one risk with Google Sheets is locale-based auto-formatting. Depending on your Google account's locale settings, Google Sheets may reformat dates (switching from DD/MM/YYYY to MM/DD/YYYY) or change decimal separators (period vs. comma). These silent changes will cause Xero to reject date fields or misparse amounts.
Fix: Format all date and number columns as plain text before exporting. This prevents Google Sheets from applying locale-based transformations to your data.
LibreOffice Calc
LibreOffice Calc provides explicit encoding options in its save dialog, including character set and field separator selection. You can directly choose UTF-8 encoding and confirm the comma separator before saving. This transparency makes it generally reliable for Xero CSV preparation.
The Fastest Fix for Persistent Encoding Problems
If a CSV created on one platform repeatedly fails in Xero and you cannot identify the specific encoding issue, use this workflow: open the file in Google Sheets, then download it as CSV. Google Sheets writes the download as UTF-8 without a BOM, whatever encoding the original used. This effectively cleans the file's encoding regardless of which application originally created it.
When CSV Is Not the Answer
The troubleshooting steps earlier in this guide will fix most one-off CSV errors. But if you find yourself repeatedly reformatting the same files, correcting the same date fields, and re-importing after every failed attempt, the problem may not be your CSV file. The problem may be the CSV workflow itself.
Consider what happens when your source data lives in PDFs, scanned documents, or photographed invoices. The workflow looks like this: manually read the document, type the data into a spreadsheet, reformat every field to match Xero's CSV template, attempt the import, troubleshoot the errors, fix the formatting, and try again. Each step in that chain introduces a new opportunity for mistakes. And the data shows just how common those mistakes are. According to a Gartner survey of nearly 500 accounting professionals reported by CFO Brew, 59% of accountants make several errors every month, with mistakes commonly arising from manual work, misinterpretation of data, and time-pressured reviews of records. Adding a multi-step CSV formatting process on top of manual transcription only multiplies the risk.
Scenarios Where CSV Falls Short
Some Xero import problems are not formatting mistakes you can fix. They are structural limitations of the CSV workflow:
- High-volume recurring imports. Formatting 50 or 200 invoices into Xero's exact CSV template every week is not sustainable. Manual formatting at that scale guarantees errors and consumes hours that compound month after month.
- Data from scanned or photographed documents. When your source is a scanned PDF or a phone photo of a receipt, you are not just formatting data into CSV. You are transcribing it first, then formatting it. That means transcription errors layered on top of formatting errors.
- Bills that need per-property or per-unit tracking categories. Property management firms running Arthur Online face this exact problem when ad-hoc supplier invoices (CP12 gas safety, repairs, contractor work) need to land in Xero against the right unit and property dimensions for per-property P&L reporting. This property-management workflow for posting Arthur Online supplier invoices into Xero against unit and property tracking categories shows how to keep the tracking dimensions intact rather than losing them in a CSV column-mapping exercise.
If any of these describe your situation, no amount of troubleshooting will eliminate the friction. The workflow itself is working against you.
Bypassing the Formatting Chain Entirely
The alternative is to remove the manual formatting steps from the process altogether. Instead of transcribing data from documents into a spreadsheet and then wrestling with Xero's formatting requirements, data extraction tools read your source documents directly and output structured data already formatted to specification.
For users dealing with PDF invoices, scanned receipts, or image-based documents, automated invoice data extraction for Xero eliminates the transcription-to-CSV chain. Purpose-built extraction platforms accept PDFs (both native and scanned), JPGs, and PNGs as inputs, take up to 6,000 files in one task, and output the results as Excel (.xlsx) or CSV (.csv) files. Critically, the output formatting is prompt-controlled: you name the columns in the order Xero's import template uses and set the date format (the one your Xero import reads, such as DD/MM/YYYY) and decimal precision, so the file comes back in the layout Xero's import expects instead of needing reformatting by hand.
This approach works because the structured output is generated to specification rather than manually assembled. There is no transcription step where you misread a vendor name. No reformatting step where a date field silently converts to a serial number. No re-import cycle where you discover that row 47 had an extra comma. The data goes from source document to Xero-ready file in one step.
For a detailed walkthrough of this approach, see our guide on converting PDF invoices directly into Xero.
CSV Formatting Prevention Checklist
Before you click "Import" in Xero, run through this pre-import verification. Checking each item takes less than two minutes and prevents the majority of CSV errors covered in this guide.
- Dates in one numeric format, and Xero reading them in that format. Use four-digit years throughout. For bank statements, choose the file's format if Xero asks, or correct the one saved in Xero's CSV import settings. A DD/MM/YYYY file read as MM/DD/YYYY will silently swap days and months for any date where the day is 12 or below.
- No currency symbols, commas (as thousand separators), or text in amount fields. Amount columns should contain only digits, a single decimal point, and an optional negative sign. Remove dollar signs, pound signs, and thousand-separator commas.
- Decimal separator is a period, not a comma. Xero expects 1234.56 regardless of your locale. If your spreadsheet application uses comma decimals by default, convert before saving.
- No empty rows between the header row and data rows. A single blank row after the header will cause Xero to misinterpret the file structure or skip records entirely.
- No trailing empty rows below the last data row. Delete any blank rows after your final record. Spreadsheet applications often add these invisibly.
- File saved as "CSV UTF-8 (Comma delimited)" format. In Excel, select this option explicitly from the "Save as type" dropdown. Plain CSV saves in a legacy encoding that garbles accented letters and special symbols.
- For invoice CSVs: invoice number repeated on every line-item row. Each row in a multi-line invoice must carry the same invoice number. Xero uses this field to group line items into a single invoice.
- For invoice CSVs: account codes formatted as text with leading zeros preserved. If your account codes start with zero (e.g., 0200), format the column as Text before entering data. Otherwise your spreadsheet will strip the leading zero and the code will not match Xero's chart of accounts.
- For invoice CSVs: tax codes match Xero's configured tax rates exactly. Copy tax rate names from Xero's tax rates list rather than typing them, and watch for trailing spaces. A name that does not match triggers an import error.
- For bank statement CSVs: payments out entered as negative numbers. Deposits are positive, withdrawals are negative. If your bank exports separate Debit and Credit columns, consolidate them into a single Amount column with the correct sign before importing.
- Large files split into batches. Import long bank statements by month or quarter, and split large invoice files into smaller batches, keeping every line of a multi-line invoice in the same file.
If errors persist after this checklist, match Xero's specific error message to the reference table above, then check the platform-specific section for encoding issues. For users who find the CSV formatting cycle unsustainable, see Xero data capture alternatives beyond Hubdoc for tools that skip manual file preparation entirely.