Knowledge Base

Queue Problems

Queue Problems

Troubleshooting issues with the sync queue.

Queue Not Processing

Symptoms: Items stay in pending state, never process

Check Cron Task

  1. Go to Settings → Automation in Blesta
  2. Find "Process Xero Sync Queue"
  3. Verify it is Enabled
  4. 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:

  1. Go to Xero Sync Settings
  2. Check license status
  3. Renew if expired

Check Sync Enabled

  1. Verify Enable Sync is ON in Settings
  2. If disabled, queue won't process

Force Process

To test if processing works:

  1. Go to Queue page
  2. Click Process Queue Now
  3. Watch for results or errors

Items Stuck in Queue

Symptoms: Specific items never process while others do

Check Dependencies

Items process in order:

  1. Contacts first (priority 1)
  2. Invoices second (priority 5)
  3. 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

  1. View the stuck item's details
  2. Look for error messages
  3. Fix underlying issue
  4. 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

  1. Go to Queue page
  2. Review failed items
  3. Look for common error messages
  4. 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:

  1. Click Retry All Failed
  2. All items return to pending
  3. Will process on next cron run

Queue Growing Faster Than Processing

Symptoms: Pending count keeps increasing

Check Processing Speed

  1. Note pending count
  2. Wait for cron run (5 minutes)
  3. Check count again
  4. 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

  1. Go to Queue page
  2. Click Clear Queue
  3. Confirm the action
  4. All pending items removed

Warning: Cleared items will not sync. Only clear when intentionally stopping operations.

Deleting Individual Items

To remove specific queue items:

  1. Find the item in the queue
  2. Click Delete button
  3. Item is permanently removed

Use this for:

  • Orphaned entries (deleted entity)
  • Test data
  • Entries you don't want synced
Please rate this article to help us improve our Knowledge Base.

0 0