Xero Archived Account Error: Deleted Account Mapping

8-minute fixVerified for Xero 2025Easy difficulty

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. 1.
    Identify which account is archived
  2. 2.
    Restore archived account in Xero
  3. 3.
    Update integration account mappings
  4. 4.
    Fix bank feed rules
  5. 5.
    Update recurring transaction templates

Quick Fix for Archived Account Error (8 Minutes)

Fastest Solution

  1. Note the archived account code from error message (e.g., "310")
  2. Log into Xero → Accounting → Chart of Accounts
  3. Click "Show archived accounts" at bottom of page
  4. Find the archived account in the list
  5. Click "Restore" next to the account
  6. Confirm restoration
  7. Account is now active again
  8. Retry your transaction or integration sync
  9. If error persists, proceed to detailed steps

Detailed Solution Steps

  • 1
    Identify the Archived Account

    Find which account code is causing the error:

    1. Look at the error message carefully
    2. Note the account code (e.g., "Account code '310' has been archived")
    3. Or note the account name mentioned in error
    4. If error doesn't specify account:
    5. Check transaction line items for missing accounts
    6. Review integration mapping settings
    7. Look at bank feed rule configurations
    8. Write down the account code/name for next steps
  • 2
    Check if Account is Archived or Deleted

    Determine the account status in Xero:

    1. Log into Xero
    2. Go to Accounting → Chart of Accounts
    3. Scroll to bottom of accounts list
    4. Click "Show archived accounts" link
    5. Search for your account code or name
    6. If found in archived list: Account can be restored (proceed to Step 3)
    7. If not found anywhere: Account was deleted (proceed to Step 4)

    Archived vs Deleted:

    Archived: Account hidden but can be restored with history intact
    Deleted: Account permanently removed, must create new account
  • 3
    Restore Archived Account

    Reactivate archived account to fix error:

    1. In Chart of Accounts with archived accounts showing
    2. Locate the archived account
    3. Click "Restore" button next to account name
    4. Xero will confirm: "Are you sure you want to restore this account?"
    5. Click "Restore" to confirm
    6. Account immediately becomes active
    7. Account appears in regular chart of accounts list
    8. All historical transactions remain intact
    9. Retry your transaction or integration sync
    10. Error should now be resolved

    When to Restore

    Restore archived accounts if you still need to post transactions to them or if integrations/bank feeds are mapped to these accounts. Restoring doesn't affect past transactions or reports.
  • 4
    Create Replacement Account (If Deleted)

    If account was deleted, create a new replacement account:

    1. Go to Accounting → Chart of Accounts
    2. Click "Add Account" button
    3. Select appropriate account type:
    4. Sales → Revenue/Income accounts
    5. Expense → Cost/Expense accounts
    6. Asset → Bank, receivables, inventory, fixed assets
    7. Liability → Payables, credit cards, loans
    8. Equity → Capital, retained earnings
    9. Enter account code (can use same code if desired)
    10. Enter account name
    11. Select tax rate
    12. Enable "Show on dashboard" if needed
    13. Click "Save"
    14. Update mappings to use new account (Step 5)
  • 5
    Update Integration Account Mappings

    Remap integrations to active accounts:

    1. Log into your integration app (Shopify, Stripe, PayPal, etc.)
    2. Go to Settings → Account Mapping or Chart of Accounts
    3. Click "Refresh" or "Update Chart of Accounts" button
    4. This loads current active accounts from Xero
    5. Find mappings showing the archived account
    6. Update each mapping to use:
    7. Restored account (if you restored it), OR
    8. New replacement account (if original was deleted)
    9. Save all mapping changes
    10. Test sync with a sample transaction
    11. Verify transactions post to correct accounts
    Common Integration Mappings to Check
    Sales/Revenue account
    Cost of Goods Sold (COGS)
    Shipping/Freight
    Payment processing fees
    Refunds/Returns
    Discounts/Promotions
    Gift cards/Store credit
    Tax liability accounts
  • 6
    Fix Bank Feed Rules

    Update bank rules using archived accounts:

    1. In Xero, go to Accounting → Bank accounts
    2. Click "Manage bank rules"
    3. Review all active bank rules
    4. Look for rules with archived accounts in:
    5. Account field
    6. Tracking categories
    7. Click "Edit" on affected rules
    8. Change account to active account
    9. Update any archived tracking categories
    10. Click "Save"
    11. Test rule by applying it to a transaction
  • 7
    Update Recurring Transactions

    Fix recurring invoices and bills with archived accounts:

    1. Go to Business → Invoices → Repeating
    2. Check all recurring invoices
    3. Click on invoices showing errors
    4. Edit line items using archived accounts
    5. Change account codes to active accounts
    6. Save changes
    7. Repeat for Bills → Repeating
    8. Check Purchase Orders if you use them
    9. Verify next scheduled transaction will work
  • 8
    Consider Re-archiving After Cleanup

    If you restored account only to fix mappings:

    1. After updating all mappings and rules
    2. Verify all integrations sync successfully
    3. Check no recurring transactions reference account
    4. If account no longer needed:
    5. Go to Chart of Accounts
    6. Find the account
    7. Click "Archive" to hide it again
    8. 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