Common Error Messages
Reference guide for error messages you may encounter in the sync logs.
Authentication Errors
"Authentication failed"
Cause: OAuth token is invalid or expired
Solution:
- Go to Settings
- Click Connect to Xero to reauthorize
- If persists, disconnect and reconnect
"Invalid token"
Cause: Access token rejected by Xero
Solution:
- Disconnect from Xero
- Reconnect and reauthorize
- Check Xero app is still active
Contact/Client Errors
"Contact not found"
Cause: Trying to sync invoice/payment before contact exists in Xero
Solution:
- Sync the contact first
- Or enable Sync Contacts setting
- Invoice sync will auto-create contacts if enabled
"Contact must be synced first"
Cause: Invoice queued but related contact not yet synced
Solution:
- The system handles this automatically
- Contact will sync first due to priority
- Invoice will sync after contact completes
Invoice Errors
"Invoice not found in Xero"
Cause: Payment references an invoice not yet in Xero
Solution:
- Check if invoice is in sync queue
- Process invoice sync first
- Retry payment sync
"Invoice already voided in Xero"
Cause: Attempting to modify a voided invoice
Solution:
- This is informational
- Voided invoices cannot be updated
- Check Xero for current status
"Cannot void PAID invoice"
Cause: Trying to void an invoice that has payments in Xero
Solution:
- PAID invoices cannot be voided in Xero
- Must remove payments first
- Handle manually in Xero if needed
API Errors
"Rate limit exceeded" (HTTP 429)
Cause: Too many API calls to Xero
Solution:
- Wait 60 seconds
- Automatic retry will handle this
- For bulk operations, sync in smaller batches
"Bad Request" (HTTP 400)
Cause: Invalid data sent to Xero
Solutions:
- Check account code exists in Xero
- Verify tax type is valid
- Check for special characters in names
- Review invoice line item details
"Internal Server Error" (HTTP 500)
Cause: Xero server error
Solution:
- Usually temporary
- Automatic retry will handle
- If persists, check Xero status page
"Service Unavailable" (HTTP 503)
Cause: Xero is down or under maintenance
Solution:
Configuration Errors
"Invalid account code"
Cause: Revenue account code doesn't exist in Xero
Solution:
- Go to Xero → Accounting → Chart of Accounts
- Find valid revenue account code
- Update in Xero Sync Settings
"Invalid tax type"
Cause: Tax type setting not valid for your Xero region
Solution:
- Check available tax types in Xero
- Update Settings → Default Tax Type
- Common types: OUTPUT, NONE, EXEMPTOUTPUT
Bank Sync Errors
"Payee not mapped"
Cause: Xero contact not linked to Blesta client
Solution:
- Go to Payee Mappings
- Find the pending mapping
- Link to correct Blesta client
"Invoice reference not found"
Cause: Could not extract invoice number from payment reference
Solution:
- Check Bank Sync Settings
- Adjust invoice reference pattern
- Or manually specify invoice when resolving exception
"Possible duplicate payment"
Cause: Similar payment detected within 24 hours
Solution:
- Review in Exceptions page
- If legitimate: click Process
- If duplicate: click Ignore