Xero Hubdoc Integration Sync and Publishing Errors
Quick Answer:
Xero Hubdoc sync and publishing errors occur when documents fail to upload to Hubdoc, won't publish to Xero, or show "stuck" status. Common causes include disconnected integration, missing chart of accounts mapping, duplicate document detection, archived accounts, or expired OAuth tokens. Fix by reconnecting Hubdoc to Xero, refreshing chart of accounts sync, and clearing failed publish queue.
What are Xero Hubdoc Sync Errors?
Xero Hubdoc integration errors prevent documents from syncing between Hubdoc (Xero's document management system) and Xero accounting software. These errors typically occur during document upload to Hubdoc, publishing processed documents to Xero, or syncing chart of accounts, contacts, and tax codes. Since Xero acquired Hubdoc in 2018 and integrated it deeply into Xero workflows, sync errors can disrupt automated invoice processing and expense management.
Error Hubdoc Sync/Publish: Document Upload, Sync, or Publishing Failure
Hubdoc cannot upload documents, sync chart of accounts from Xero, or publish processed transactions back to Xero accounting.
Symptoms:
- •Documents stuck in "Processing" or "Publishing" status
- •Error: "Unable to publish to Xero" or "Publish failed"
- •Message: "Chart of accounts not synced" or "Account not found"
- •Documents upload but won't publish to Xero
- •Duplicate document warnings blocking publish
- •Error: "Archived account" when publishing expenses
- •Integration shows "Disconnected" or requires reconnection
- •Contacts or tax codes not syncing from Xero
Resolution Steps:
- 1.Disconnect and reconnect Hubdoc integration in Xero
- 2.Sync chart of accounts in Hubdoc settings
- 3.Clear failed publish queue and retry
- 4.Unarchive required accounts in Xero
- 5.Review and approve duplicate detection warnings
- 6.Update document coding with valid accounts
Quick Fix for Hubdoc Sync Errors (10 Minutes)
Fastest Solution
- Log into Xero → Settings → Connected Apps
- Find "Hubdoc" in list → Click "Manage"
- Click "Disconnect" → Confirm disconnection
- Wait 30 seconds for full disconnection
- Click "Connect to Hubdoc" or "Add Hubdoc"
- Log into Hubdoc when prompted (authorize connection)
- In Hubdoc: Settings → Integrations → Xero
- Click "Sync Now" to pull latest chart of accounts, contacts, tax codes
- Wait 2-3 minutes for sync to complete
- Go to Documents tab → Find stuck documents
- Click "Publish" → Select correct accounts → Publish to Xero
- Verify documents appear in Xero as bills or expenses
Detailed Solution Steps
Check if Hubdoc is properly connected to Xero:
- Log into Xero
- Click Settings (gear icon) → Connected Apps
- Scroll through connected apps list
- Find "Hubdoc" entry
- Check status - should show "Connected" with green indicator
- If shows "Disconnected", "Expired", or red indicator - needs reconnection
- Note the connection date - if older than 90 days, may need refresh
- Also check in Hubdoc:
- Log into Hubdoc → Settings → Integrations
- Verify Xero shows as "Connected"
- Check organization name matches your Xero org
OAuth Token Expiration:
Refresh integration connection to clear authentication issues:
- In Xero: Settings → Connected Apps
- Find "Hubdoc" → Click "Manage" or click on Hubdoc row
- Click "Disconnect" or "Revoke Access" button
- Confirm disconnection when prompted
- Wait 30-60 seconds for complete disconnection
- Refresh the Connected Apps page
- Look for "Add Hubdoc" or "Connect to Hubdoc" option
- Click the connect button
- You'll be redirected to Hubdoc authorization page
- Log into Hubdoc with your credentials
- Review permissions requested (read/write access to transactions, contacts, accounts)
- Click "Authorize" or "Connect"
- Redirected back to Xero - should see Hubdoc as "Connected"
Don't Delete Hubdoc Documents
Pull latest accounts, contacts, and tax codes from Xero:
- Log into Hubdoc
- Click Settings (gear icon) in top right
- Select "Integrations" from left menu
- Click on "Xero" integration
- Look for "Sync Now" or "Refresh Data" button
- Click "Sync Now"
- Hubdoc pulls:
- Chart of accounts (expense accounts, asset accounts, liability accounts)
- Contacts (suppliers/vendors)
- Tax codes/rates
- Tracking categories (if enabled)
- Progress bar shows sync status
- Wait 2-5 minutes for completion (depends on data volume)
- Should see "Last synced: [current date/time]"
- Verify accounts appear when publishing documents
Auto-Sync Schedule: Hubdoc automatically syncs with Xero every 24 hours. Manual sync forces immediate update if you've recently added accounts or contacts in Xero.
Resolve stuck documents in publishing queue:
- In Hubdoc, go to "Documents" tab
- Filter by status: "Failed to publish" or "Error"
- Select documents showing publish errors
- Click on document to open details
- Review error message (e.g., "Account not found", "Duplicate detected")
- If error is "Account not found":
- Click "Edit" on document
- Update account coding with valid account from dropdown
- Save changes
- If error is "Archived account":
- Go to Xero → Settings → Chart of Accounts
- Find archived account → Unarchive it
- Return to Hubdoc → Sync again
- After fixing issues, click "Publish" button
- Select "Publish to Xero"
- Document should publish successfully
Resolve duplicate detection blocking publish:
- Hubdoc shows warning: "Possible duplicate document detected"
- Click on document to review details
- Hubdoc shows potential matches (same vendor, similar date, similar amount)
- Review each suggested duplicate:
- If truly duplicate (same invoice uploaded twice) → Click "Mark as duplicate" → Don't publish
- If NOT duplicate (different invoice, coincidentally similar) → Click "Not a duplicate" → Proceed
- After confirming "Not a duplicate", publish option becomes available
- Click "Publish to Xero"
- Document publishes normally
- Hubdoc learns from your duplicate decisions over time
Duplicate Detection in 2025
Unarchive accounts needed for document publishing:
- Error message in Hubdoc: "Cannot publish - account is archived in Xero"
- Note which account name is mentioned in error
- Log into Xero
- Go to Accounting → Chart of Accounts
- In "Show" dropdown, select "Archived Accounts"
- Find the archived account mentioned in error
- Click "Options" dropdown next to account
- Select "Unarchive"
- Xero asks "Are you sure?" → Click "Yes, unarchive"
- Account moves back to active accounts
- Return to Hubdoc → Settings → Integrations → Xero
- Click "Sync Now" to pull updated account status
- Try publishing document again - should work now
Alternative: Instead of unarchiving, you can edit the document in Hubdoc to use a different, active account. This is better if the archived account is no longer relevant.
Ensure documents finish processing before publishing:
- In Hubdoc Documents tab, check document status column
- Status progression: Uploaded → Processing → Processed → Ready to Publish
- If stuck on "Processing" for more than 10 minutes:
- Click on document
- Verify file is a valid PDF, JPG, or PNG (not corrupted)
- Check file size - very large files (50MB+) take longer
- Poor quality scans may fail OCR - consider re-uploading higher quality
- If OCR extraction is incorrect:
- Click "Edit" on document
- Manually correct vendor, date, amount, account
- Hubdoc learns from corrections to improve future OCR
- After processing completes, "Publish" button becomes active
- Click "Publish to Xero"
- Document publishes as bill or expense in Xero
Verify you have required permissions and active subscription:
- Publishing to Xero requires "Standard" or "Advisor" user role
- In Xero: Settings → Users
- Find your user account
- Verify role shows "Standard" or "Advisor" (NOT "Read Only" or "Invoicing Only")
- If incorrect role, ask organization admin to upgrade your permissions
- Check Hubdoc subscription status:
- Hubdoc Settings → Billing
- Verify subscription is "Active" (not "Expired" or "Trial Ended")
- Some Xero plans include Hubdoc; others require separate subscription
- Check document limits:
- Free Hubdoc with Xero: 50 documents/month
- Paid Hubdoc: Unlimited documents
- If over limit, documents won't publish until next billing cycle or upgrade
Why Do Hubdoc Sync Errors Occur?
Root Causes
- Expired OAuth Token: Xero's security requires periodic reauthentication; OAuth token expired after 60-90 days, breaking integration connection
- Chart of Accounts Out of Sync: Accounts created in Xero haven't synced to Hubdoc yet, causing "account not found" errors when publishing
- Archived Accounts: Document coded to account that was archived in Xero, preventing publish until account is unarchived or recoded
- Duplicate Detection: Enhanced AI duplicate detection in 2024-2025 flagging legitimate documents as potential duplicates, requiring manual review
- OCR Processing Failure: Poor quality scans, handwritten documents, or corrupted files causing optical character recognition to fail
- Insufficient Permissions: Xero user role set to "Read Only" or "Invoicing Only", lacking permission to create bills/expenses
- Subscription Limitations: Free Hubdoc tier exceeded 50 documents/month limit, or subscription expired, blocking additional publishes
- Network/API Timeout: Temporary Xero API outage or slow internet causing publish requests to timeout before completion
How to Prevent Hubdoc Sync Errors
Best Practices:
- Sync chart of accounts manually after creating new accounts or contacts in Xero
- Monitor connected apps status monthly - reconnect before OAuth tokens expire
- Before archiving accounts in Xero, check Hubdoc for documents using those accounts
- Upload high-quality scans (300+ DPI) to improve OCR accuracy and reduce processing failures
- Review duplicate warnings promptly - don't let documents pile up in pending status
- Ensure Hubdoc users have "Standard" role in Xero, not "Read Only" access
Frequently Asked Questions
What's the difference between Hubdoc sync errors and publish errors?
Sync errors prevent Hubdoc from pulling chart of accounts, contacts, or tax codes FROM Xero (inbound data). Publish errors prevent Hubdoc from sending processed documents TO Xero as bills/expenses (outbound data). Both are usually caused by disconnected integration or expired OAuth tokens. Reconnecting the integration fixes both types of errors simultaneously.
Will disconnecting Hubdoc delete my uploaded documents?
No, disconnecting the Xero integration does NOT delete any documents stored in Hubdoc. Your documents, processing history, and settings remain intact. Disconnecting only severs the sync connection between Hubdoc and Xero. Reconnecting restores the link without data loss. However, documents published to Xero before disconnection remain in Xero permanently.
How often does Hubdoc automatically sync with Xero?
Hubdoc automatically syncs chart of accounts, contacts, and tax codes every 24 hours (once per day). This background sync ensures your account lists stay current. However, if you add new accounts in Xero and need them immediately in Hubdoc, use the "Sync Now" button in Hubdoc Settings → Integrations → Xero to force immediate synchronization without waiting for the automatic daily sync.
Is Hubdoc free with my Xero subscription?
Xero includes basic Hubdoc access with most paid plans, allowing 50 documents per month. For unlimited documents, advanced features, and multiple users, you need a paid Hubdoc subscription ($20-40/month depending on plan and region). Check your Hubdoc Settings → Billing to see your current plan limits. If you're hitting the 50-document limit and can't publish more documents, you'll need to upgrade or wait until next billing cycle.
Related Resources
Need Professional Help?
If you're still experiencing Hubdoc sync or publishing errors after following these steps, or need help with Xero integration configuration, document management automation, or chart of accounts optimization, our Xero specialists are here to help.
Get Expert Support