Knowledge Base

Manual Sync Operations

Manual Sync Operations

The Manual Sync page allows you to synchronize entities on-demand and perform bulk operations.

Accessing Manual Sync

Navigate to Tools → Xero Sync → Manual Sync

Unsynced Counts

The page displays counts of entities not yet synced:

  • Contacts: Blesta clients without Xero mapping
  • Invoices: Invoices not yet in Xero
  • Payments: Payments not yet in Xero

Single Entity Sync

Sync a specific entity by ID:

  1. Select Entity Type (Contact, Invoice, or Payment)
  2. Enter the Blesta ID
  3. Click Sync Now

Finding Entity IDs

  • Client ID: Visible in the URL when viewing a client
  • Invoice ID: Shown on the invoice or in the URL
  • Transaction ID: Visible on the payment/transaction page

Batch Sync Operations

Sync All Contacts

Syncs all unsynced clients to Xero:

  1. Click Sync All Contacts
  2. Processing begins immediately
  3. Results show success/failure counts

Tip: Always sync contacts before invoices, as invoices require the contact to exist in Xero.

Sync All Invoices

Syncs all unsynced invoices:

  1. Click Sync All Invoices
  2. Contacts are created automatically if missing
  3. Results show success/failure counts

Sync All Payments

Syncs all unsynced payments:

  1. Click Sync All Payments
  2. Invoices must already be synced
  3. Results show success/failure counts

Full Sync

Syncs everything in the correct order:

  1. Click Sync Everything
  2. Contacts sync first
  3. Then invoices
  4. Finally payments
  5. Complete results displayed

Skip Historical Data

Exclude old records from sync to avoid syncing years of history.

How It Works

Records created before the specified date are marked as "skipped" and will not appear in unsynced counts or be included in batch operations.

Configuration

  1. Enter a Date (records before this are skipped)
  2. Select what to skip:
    • Contacts - Skip old clients
    • Invoices - Skip old invoices
    • Payments - Skip old payments
  3. Click Skip Historical

Example Use Case

You started using Blesta in 2020 but only want to sync 2024 onwards:

  1. Enter date: 2024-01-01
  2. Select all three entity types
  3. Click Skip Historical
  4. Now batch sync will only process 2024+ records

Note: Skipping is reversible. Use "Reset Sync State" on the Settings page to clear all mappings including skipped records.

API Rate Limiting

Xero has API rate limits. During large sync operations:

  • The plugin automatically handles rate limits
  • You may see delays during processing
  • Check logs if operations seem slow

Batch Processing

Contacts are synced in batches of 50 to minimize API calls. This dramatically reduces sync time for large client bases.

Best Practices

Initial Setup

  1. Skip historical data if you have years of records
  2. Sync contacts first
  3. Sync invoices second
  4. Sync payments last

Ongoing Use

  • Let automatic sync handle new entities
  • Use manual sync only for specific fixes
  • Check queue page for any failed items

Large Databases

For 1000+ clients/invoices:

  1. Use Skip Historical for old data
  2. Run batch syncs during off-peak hours
  3. Monitor the queue for any failures
  4. Consider syncing in stages
Please rate this article to help us improve our Knowledge Base.

0 0