Guides → Undo a bad CSV import of invoices: a guide for Xero users
Undo a bad CSV import of invoices: a guide for Xero users
Xero has no undo button for an import. If the imported invoices are still drafts, delete them in bulk and import the corrected file again. If anyone has approved them, each has to be voided, or taken back to draft first. This guide takes both cases, with Xero's own steps, and shows how to deal with a large approved batch.
Checked against Xero Central on 12 October 2026 (the delete-or-void invoice page again on 24 October).
First, stop and look at what you have
- Do not approve anything yet. Xero's import pages say invoices, bills and credit notes are imported as drafts, which you can approve or edit afterwards (Import customer invoices, Import bills and credit notes). A bad import that is still all drafts is the easy case.
- Find the import. Filter the Draft tab, or search by number, reference or date range (Search for sales and purchase transactions). Note the number range and the date you imported.
- Check the side effects. A contact name that does not match exactly creates a new contact, and an unknown inventory code a new inventory item. Deleting the invoices will not remove those.
Case 1: everything is still a draft
Delete them and import again. Xero supports deleting drafts in bulk: on the Draft tab, tick the invoices and click Delete (Delete or void an invoice; bills are on the bill page). The number of a deleted draft can be reused, and that matters because an import skips any invoice whose number already exists in Xero. To see what a deleted or voided number is still attached to, tick Include Deleted & Voided when you search. Fix the file, keeping the column headings as they are, and import it again. Xero recommends no more than 500 items in one file, and the import screen shows errors you can go back and fix before you click Complete Import.
Case 2: some or all of it has been approved
Now it is the same problem as any wrongly approved batch, and Xero has no unapprove. Your choices are to edit the documents, or to remove them:
- Edit in place if the problem is small: a wrong account code, tax rate or description (Edit an invoice), or find and recode for a group of lines (About find and recode).
- Void and re-enter if amounts, dates, contacts or currency are wrong. Approved invoices can only be voided, one at a time. Bills can be voided several at once from the Awaiting Payment tab. If a payment is applied, it must be removed first (Delete an invoice or bill payment).
Mind the numbers: Xero says that to reuse the number of an approved invoice you must change it before you void it. Void a batch without renaming and those numbers are gone, so a corrected import will skip every one of them (how to keep a number free). If the batch came from a sync, see duplicates after a Shopify or connector sync.
Where the native way runs out
- Void is one at a time for invoices, and the rename before it is another edit per invoice.
- Bills that share a reference merge. Xero's bill import says rows with the same reference are combined into one bill even if the contact names differ. A bad file can therefore produce fewer, wrong bills rather than too many.
- Duplicate bills from a rerun can be found with Xero's duplicate review, which compares contact, reference and amount (Review duplicate bills or credit notes). There is no equivalent for sales invoices.
- Voids are permanent, and lock dates stop edits (Set up or remove lock dates).
The faster way for the approved ones: Unapprove
Unapprove is a web app that works with Xero. It does not edit or delete documents, or undo the contacts and inventory items the import created. It takes a large selection of approved invoices and bills back to draft, or voids them.
Choosing the right run
- Unapprove to draft when you want to correct the documents or throw them away cleanly. Each selected document gets a draft copy with the same number, dates, contact, reference, currency and lines, with its attachments, and then the original is voided. A sales invoice's original is first renamed with a "-V" suffix, so the draft can hold the original number. You then fix the drafts, or delete them in bulk in Xero, which frees the numbers for a corrected import. The price is a set of voided "-V" originals left in the books.
- Void only when the numbers do not matter, for example a batch of bills. Approved invoices and bills are voided in batches of 50 with a history note on each, and no copy is made.
How a run goes
- Connect: you sign in at Xero and choose the organisation.
- Filter the approved documents by date range, contact, number or reference, which are the handles your import left behind, plus type and status. Tick the ones that came from the bad file.
- Preview. Nothing is written. Documents that will be skipped are listed with the reason.
- Download the CSV backup of the selection, then type the confirmation, for
example
UNAPPROVE 120. - Watch it run and download the results.
What it skips, and tells you why: documents with a payment applied or a credit note allocated (why), documents dated on or before your lock date (why), documents for an archived contact (why), and anything processed in the last 24 hours. A document with a file over 10 MB, or more than 10 files, can only be voided. Each run has a ceiling on the number of documents; if you select more, the preview asks you to select fewer and run again.
If the bad import was also paid, for instance by a bank rule or an integration, the separate "Remove payments and void" run handles those: see the guide to voiding multiple invoices with payments.
What access it asks for: your name and email to sign you in, read and write on invoices and bills, read and write on attachments, and read-only on organisation settings and contacts. A payments permission is requested only if you choose "Remove payments and void".
What it never does: see your Xero password, store your attachments, or change anything before you type the confirmation. Nobody can undo a void, so preview first.
Price: free for 14 days, with unlimited previews and three documents processed in total. After that, $29 per month per connected organisation, or a one-off $49 Clean-up Pass for 7 days and up to 500 documents. Prices are in US dollars and exclude VAT and sales tax (added at checkout); the pricing page has the details.
Connect and preview free See pricing
Questions
Can I undo a CSV import in Xero?
Will I get the same invoice numbers back for a corrected import?
Does Unapprove fix the data in the documents?
What about contacts the import created?
Who makes Unapprove?
Related guides
- Unapprove an invoice or bill, one or many: a guide for Xero users
No unapprove button: the void, copy and re-attach routine, where it stops being practical, and running it on a whole batch.
- Bulk void approved invoices and bills, or delete drafts: a guide for Xero users
Which documents can be deleted or voided in bulk, which only one at a time, and how to void a batch.
- Download all attachments and receipts: a guide for Xero users
The one-file-at-a-time routes, what they leave out, and how to get every attachment as dated ZIP folders.
- Bulk unapprove bills: a guide for Xero users
No unapprove for bills: when to edit instead, the manual route back to draft, and running it on a whole selection.
- Export all receipts and attachments before you cancel: a guide for Xero users
The notice period, what the exports leave out, a checklist, and how to get every file out with an index.
- Year-end clean-up checklist for duplicate and misposted invoices: a guide for Xero users
Find duplicates and misposted lines before the lock date, then void or redo a large batch.
- Void paid invoices in bulk: a guide for Xero users
Remove the payment, then void: the manual steps, what to check first, and doing it for a batch.
- Write off many invoices and bad debts at once: a guide for Xero users
The credit-note method, its tax and lock-date catches, and clearing a whole selection with an undo.
- Send invoices and bills from awaiting approval back to draft: a guide for Xero users
What Xero offers for documents stuck in awaiting approval, and sending a batch back to draft.
- Invoice number already exists? Reuse the number of a voided invoice: a guide for Xero users
Find which invoice holds the number, why a voided number stays used, the rename-first order, and keeping numbers across a batch.
- Should you void an invoice or issue a credit note? A guide for Xero users
Edit, void or credit: what Xero says for each case, and what can be done in bulk.
- Repeating invoices approved or sent by mistake: a guide for Xero users
Fix the template first, then clear what it created, and why a sent email cannot be recalled.
- Duplicate invoices after a Shopify, Amazon, A2X or Link My Books sync: a guide for Xero users
Why sales syncs post twice, removing the copies by hand, and voiding a whole batch of approved ones.
- Invoices posted twice after a migration or conversion: a guide for Xero users
Conversion balances, open invoices that came across twice, and clearing the extra copies.
- Duplicate bills from Dext, Hubdoc or the bills inbox: a guide for Xero users
Xero's duplicate bill review, where it stops with paid bills, and clearing a large batch.
- An app sent invoices or bills in as approved instead of draft: a guide for Xero users
Change the app setting first, then take what it approved back to draft with the same numbers.
- Delete all invoices, or start over: a guide for Xero users
No reset button: delete the drafts, void the approved ones, or start a new organisation.
- Move invoices entered in the wrong organisation: a guide for Xero users
Export from one organisation, import into the other, carry the files across, void the originals.
- Wrong tax rate on approved invoices and bills: a guide for Xero users
Edit, find and recode, credit note or return adjustment for a wrong VAT or GST rate, and redoing a batch as drafts.
- Wrong contact on an approved invoice or bill: a guide for Xero users
What can be edited after approval or payment, what to do when Edit is blocked, and redoing a batch as drafts.
- Void an invoice that has a credit note allocated: a guide for Xero users
Why the void is blocked, taking the allocation off by hand, what to do with the credit note, and doing it for a batch.
- POS daily sales posted twice: a guide for Xero users
What Square, Lightspeed, Zettle, Epos Now and SumUp say they post, how a day goes in twice, and how to void the copies.
- Redo a migration whose open invoices and bills landed as approved: a guide for Xero users
Why migrated documents arrive approved, what the conversion balances need, the manual redo, and redoing a batch with the same numbers.
- Export receipts and supporting documents for an audit: a guide for Xero users
What Xero exports for an auditor, what it leaves out, and pulling every attached file for a period with a manifest.
- Move bills back to draft, whatever their status: a guide for Xero users
Awaiting approval, approved or paid: which way back to draft applies, what Xero offers, and moving a batch.
- Pricing · Support