Queue Problems
Troubleshooting issues with the sync queue.
Queue Not Processing
Symptoms: Items stay in pending state, never process
Check Cron Task
- Go to Settings → Automation in Blesta
- Find "Process Xero Sync Queue"
- Verify it is Enabled
- Check Last Run timestamp
If last run is old:
- Blesta cron may not be running
- Check server cron configuration
- Verify Blesta cron URL is accessible
Check License
Queue processing requires valid license:
- Go to Xero Sync Settings
- Check license status
- Renew if expired
Check Sync Enabled
- Verify Enable Sync is ON in Settings
- If disabled, queue won't process
Force Process
To test if processing works:
- Go to Queue page
- Click Process Queue Now
- Watch for results or errors
Items Stuck in Queue
Symptoms: Specific items never process while others do
Check Dependencies
Items process in order:
- Contacts first (priority 1)
- Invoices second (priority 5)
- Payments last (priority 5)
If an invoice is stuck:
- Check if related contact failed
- Fix contact issue first
- Invoice will process after
Check for Errors
- View the stuck item's details
- Look for error messages
- Fix underlying issue
- Click Retry
API Rate Limiting
During heavy sync:
- Items may be delayed by rate limits
- Check logs for "429" errors
- Items auto-retry with backoff
Too Many Failed Items
Symptoms: Large number of items in failed state
Identify the Pattern
- Go to Queue page
- Review failed items
- Look for common error messages
- Identify systemic issue
Common Causes
Authentication issue:
- All items fail with auth error
- Reconnect to Xero
Invalid configuration:
- All invoices fail with account code error
- Fix Settings → Default Account Code
Missing contacts:
- Invoices fail because contacts not synced
- Enable Sync Contacts and retry
Bulk Retry
After fixing the issue:
- Click Retry All Failed
- All items return to pending
- Will process on next cron run
Queue Growing Faster Than Processing
Symptoms: Pending count keeps increasing
Check Processing Speed
- Note pending count
- Wait for cron run (5 minutes)
- Check count again
- Should decrease each run
Causes
Too many events:
- High volume of invoices/payments
- Consider processing off-peak
- Use Skip Historical for old data
Slow API responses:
- Network latency
- Xero performance issues
- Check status.xero.com
Rate limiting:
- Hitting Xero API limits
- Processing is throttled
- Will catch up over time
Clearing the Queue
When to Clear
- Queue has stale/invalid entries
- After major configuration changes
- To stop pending operations
How to Clear
- Go to Queue page
- Click Clear Queue
- Confirm the action
- All pending items removed
Warning: Cleared items will not sync. Only clear when intentionally stopping operations.
Deleting Individual Items
To remove specific queue items:
- Find the item in the queue
- Click Delete button
- Item is permanently removed
Use this for:
- Orphaned entries (deleted entity)
- Test data
- Entries you don't want synced