Xero Archived Account Error: Deleted Account Mapping
Quick Answer:
Xero archived account errors occur when transactions, integrations, or bank feeds reference accounts that have been archived or deleted in Xero. Fix by restoring the archived account, updating mappings to active accounts, or creating replacement accounts.
What is Xero Archived Account Error?
Xero archived account errors occur when you attempt to create transactions, import bank feeds, or sync integration data that references a Xero account code that has been archived or deleted. This prevents transactions from being posted and causes integration sync failures until the account mapping is corrected.
Error Archived Account: Account code has been archived or deleted - Cannot post transaction
Xero cannot process transactions or integrations referencing archived or deleted account codes in the chart of accounts.
Symptoms:
- •Error: Account code has been archived or has been deleted
- •Cannot create invoices or bills
- •Integration sync failures with archived account messages
- •Bank feed rules fail to apply
- •Recurring transactions error out
Resolution Steps:
- 1.Identify which account is archived
- 2.Restore archived account in Xero
- 3.Update integration account mappings
- 4.Fix bank feed rules
- 5.Update recurring transaction templates
Quick Fix for Archived Account Error (8 Minutes)
Fastest Solution
- Note the archived account code from error message (e.g., "310")
- Log into Xero → Accounting → Chart of Accounts
- Click "Show archived accounts" at bottom of page
- Find the archived account in the list
- Click "Restore" next to the account
- Confirm restoration
- Account is now active again
- Retry your transaction or integration sync
- If error persists, proceed to detailed steps
Detailed Solution Steps
Find which account code is causing the error:
- Look at the error message carefully
- Note the account code (e.g., "Account code '310' has been archived")
- Or note the account name mentioned in error
- If error doesn't specify account:
- Check transaction line items for missing accounts
- Review integration mapping settings
- Look at bank feed rule configurations
- Write down the account code/name for next steps
Determine the account status in Xero:
- Log into Xero
- Go to Accounting → Chart of Accounts
- Scroll to bottom of accounts list
- Click "Show archived accounts" link
- Search for your account code or name
- If found in archived list: Account can be restored (proceed to Step 3)
- If not found anywhere: Account was deleted (proceed to Step 4)
Archived vs Deleted:
Reactivate archived account to fix error:
- In Chart of Accounts with archived accounts showing
- Locate the archived account
- Click "Restore" button next to account name
- Xero will confirm: "Are you sure you want to restore this account?"
- Click "Restore" to confirm
- Account immediately becomes active
- Account appears in regular chart of accounts list
- All historical transactions remain intact
- Retry your transaction or integration sync
- Error should now be resolved
When to Restore
If account was deleted, create a new replacement account:
- Go to Accounting → Chart of Accounts
- Click "Add Account" button
- Select appropriate account type:
- Sales → Revenue/Income accounts
- Expense → Cost/Expense accounts
- Asset → Bank, receivables, inventory, fixed assets
- Liability → Payables, credit cards, loans
- Equity → Capital, retained earnings
- Enter account code (can use same code if desired)
- Enter account name
- Select tax rate
- Enable "Show on dashboard" if needed
- Click "Save"
- Update mappings to use new account (Step 5)
Remap integrations to active accounts:
- Log into your integration app (Shopify, Stripe, PayPal, etc.)
- Go to Settings → Account Mapping or Chart of Accounts
- Click "Refresh" or "Update Chart of Accounts" button
- This loads current active accounts from Xero
- Find mappings showing the archived account
- Update each mapping to use:
- Restored account (if you restored it), OR
- New replacement account (if original was deleted)
- Save all mapping changes
- Test sync with a sample transaction
- Verify transactions post to correct accounts
Sales/Revenue accountCost of Goods Sold (COGS)Shipping/FreightPayment processing feesRefunds/ReturnsDiscounts/PromotionsGift cards/Store creditTax liability accountsUpdate bank rules using archived accounts:
- In Xero, go to Accounting → Bank accounts
- Click "Manage bank rules"
- Review all active bank rules
- Look for rules with archived accounts in:
- Account field
- Tracking categories
- Click "Edit" on affected rules
- Change account to active account
- Update any archived tracking categories
- Click "Save"
- Test rule by applying it to a transaction
Fix recurring invoices and bills with archived accounts:
- Go to Business → Invoices → Repeating
- Check all recurring invoices
- Click on invoices showing errors
- Edit line items using archived accounts
- Change account codes to active accounts
- Save changes
- Repeat for Bills → Repeating
- Check Purchase Orders if you use them
- Verify next scheduled transaction will work
If you restored account only to fix mappings:
- After updating all mappings and rules
- Verify all integrations sync successfully
- Check no recurring transactions reference account
- If account no longer needed:
- Go to Chart of Accounts
- Find the account
- Click "Archive" to hide it again
- Only archive if you're certain it's not being used
Caution: Only re-archive accounts if you've created replacement accounts and updated all mappings. Re-archiving without proper cleanup will cause the error to return.
Why Does Archived Account Error Occur?
Root Causes
- Account Archived Without Updating Mappings: User archived account in Xero but forgot to update integration app mappings
- Chart of Accounts Cleanup: Accountant archived unused accounts during year-end cleanup without checking dependencies
- Bank Rules Using Old Accounts: Automated bank rules still reference accounts that were later archived
- Recurring Transactions: Recurring invoices or bills reference accounts that were archived after creation
- Integration App Cache: Integration app cached old account list before account was archived
- Bulk Account Changes: Multiple accounts archived at once without checking which are in use
How to Prevent Archived Account Errors
Best Practices:
- Before archiving accounts, check integration mappings, bank rules, and recurring transactions
- Create replacement account first, update all mappings, then archive old account
- Communicate with integration app managers before making chart of accounts changes
- Run account usage report before archiving to see recent transaction activity
- Document which accounts are used by which integrations to prevent accidental archiving
Frequently Asked Questions
What happens when I restore an archived account?
Restoring an archived account makes it active again with all historical transactions intact. It reappears in your chart of accounts, can be used for new transactions, and integrations can reference it again. No data is lost during archiving or restoration.
Can I use the same account code for a new account?
If an account was truly deleted (not archived), you can reuse the account code for a new account. However, if the account is archived, you must either restore it or use a different code for the new account. Xero won't allow duplicate codes for active accounts.
Will restoring affect my financial reports?
Restoring an archived account doesn't change historical reports because the underlying transactions and balances are unchanged. The account will appear in current reports if it has a balance or recent activity. Past period reports remain unaffected.
How do I know which integrations use which accounts?
Log into each integration app and review the account mapping settings. Make a spreadsheet documenting which accounts are used by which apps (Shopify, Stripe, PayPal, etc.). This helps prevent accidental archiving of actively-used accounts.
Related Resources
Need Professional Help?
If you're still experiencing archived account errors after following these steps, or need help with Xero chart of accounts setup and integration mapping, our Xero specialists are here to help.
Get Expert Support