Sync Not Working
Troubleshooting when invoices, payments, or contacts are not syncing to Xero.
Items Not Appearing in Xero
Symptoms: New invoices, payments, or contacts are not showing up in Xero
Step 1: Check Sync is Enabled
- Go to Tools → Xero Sync → Settings
- Verify Enable Sync is ON
- Check individual toggles:
- Sync Invoices
- Sync Payments
- Sync Contacts
Step 2: Check License Status
- Look at the license status on the Settings page
- Must show Valid
- If expired or invalid, sync will not process
Step 3: Verify Cron is Running
- Go to Settings → Automation in Blesta
- Find "Process Xero Sync Queue"
- Check it is Enabled
- Verify Last Run is recent (within 5 minutes)
If cron hasn't run:
- Check Blesta system cron is configured
- Verify server cron job is active
Step 4: Check the Queue
- Go to Tools → Xero Sync → Queue
- Look for items in Pending section
- Check Failed section for errors
If items are pending:
- They will process on next cron run
- Click Process Queue Now to force immediate processing
If items are failed:
- Read the error message
- Fix the issue
- Click Retry
Step 5: Verify Xero Connection
- Go to Settings page
- Connection status should show Connected (green)
- If disconnected, click Connect to Xero
Specific Entity Not Syncing
Contacts Not Syncing
- Check Sync Contacts is enabled
- Verify the client exists and is active
- Check if client was created before "Skip Historical" date
Invoices Not Syncing
- Check Sync Invoices is enabled
- Verify the contact synced first (required)
- Check invoice status in Blesta
- Voided invoices sync as voided, not created
Payments Not Syncing
- Check Sync Payments is enabled
- Verify the invoice synced first (required)
- Payment must be applied to an invoice
- Unapplied credits may not sync
Sync Stopped Working
If sync was working but stopped:
Check for Recent Changes
- Did Xero credentials change?
- Was the Xero app modified?
- Did the license expire?
- Was the plugin updated?
Reconnect to Xero
- Go to Settings
- Click Disconnect from Xero
- Click Connect to Xero
- Reauthorize the connection
- Test with a manual sync
Check Server Logs
Look for PHP errors:
- Memory limit issues
- Timeout errors
- SSL certificate problems
Testing Sync
To verify sync is working:
- Create a test client in Blesta
- Check Queue page - should show pending contact
- Wait for cron or click Process Queue Now
- Verify contact appears in Xero
- Create test invoice
- Verify invoice appears in Xero