iSyncSFDocumentation

#Salesforce Org-to-Org Data Migration

This guide covers how to use iSyncSF for one-time or phased data migration between Salesforce orgs — including org consolidation, platform changes, and legacy system retirement. While iSyncSF is also used for recurring sync, migration scenarios have distinct planning, configuration, and validation requirements covered here.


#When You Need Org-to-Org Migration


#Migration vs Sync — Key Differences

AspectMigrationRecurring Sync
FrequencyTypically one-time or a small number of runsOngoing (daily, weekly, or continuous)
ScopeAll records — completeness is the priorityDelta/incremental — only changed records
SchemaSource and target schemas often differSchemas are usually identical or very similar
VolumeOften millions of recordsTypically thousands per run
EngineSame iSyncSF template systemSame iSyncSF template system

Both migration and sync use the same iSyncSF engine, templates, and object settings. The difference is in how you configure and plan the operation.


#Planning Your Migration

Inventory Source Data

Before configuring iSyncSF, inventory all objects and record counts in the source org. Identify which objects contain business-critical data that must be migrated and which can be excluded (e.g., temporary staging objects, obsolete custom objects).

Map Source Schema to Target Schema

If the source and target orgs have different schemas (different field names, different picklist values, missing fields), you need to map them before migration:

Run Org Compare

Use Org Compare to automatically detect schema mismatches between the source and target orgs. Org Compare identifies fields that exist in one org but not the other, data type differences, and picklist value gaps. Resolve these differences before starting the migration.

Define the Object Dependency Graph

Determine which objects reference which others via lookup and master-detail relationships. Parent objects must be migrated before their children. iSyncSF computes this automatically during the scan phase, but you should assign Sequence numbers on your template lines that reflect the natural dependency order (independent objects first, dependent objects later).

Estimate Migration Time

Migration time depends on record volume, the number of objects, batch sizes, and callout limits. As a rough guide:


#Configuring iSyncSF for One-Time Migration

Template Settings

Template Lines

Object Settings


#Handling Relationships and ID Remapping

One of the most complex aspects of org-to-org migration is maintaining record relationships. Salesforce record IDs are org-specific — an Account ID in the source org does not exist in the target org. iSyncSF handles this automatically.

Automatic ID Remapping

When parent records are inserted into the target org, they receive new Salesforce IDs. iSyncSF maps each source parent ID to its new target ID. When child records are processed, lookup fields are automatically populated with the correct target org IDs. No manual ID mapping is required.

Processing Order

Parent objects are always processed before children. During the pre-scan phase, iSyncSF analyzes the relationship hierarchy and calculates the correct insertion order. You should align your template line Sequence numbers with this natural order to avoid unnecessary reprocessing.

Self-Referencing Objects

Self-referential objects (e.g., Account hierarchy via ParentId, Contact manager lookups) require special handling. iSyncSF uses a two-pass approach:

  1. First pass: Insert all records without the self-referencing lookup value.
  2. Second pass: Update records with the correct self-referencing lookup, now that all records exist in the target and their new IDs are known.

Lookup Fields to Non-Migrated Objects

If a lookup field references an object that you are not migrating (e.g., User, RecordType), use Exclude Parent Fields in Object Settings to skip ID remapping for that field. The assumption is that the referenced records already exist in the target org with the same IDs (which is true for User records in same-company orgs and for RecordTypes with matching DeveloperNames).


#Post-Migration Validation

Thorough validation is essential before decommissioning the source org or declaring the migration complete.

Record Count Comparison

Compare record counts between source and target using the Preview/Scan results. The scan output shows how many records were queried from the source. Compare this with a record count in the target org to verify completeness.

Relationship Spot-Checks

Select a sample of child records in the target org and verify that their lookup fields point to the correct parent records. For example, verify that Contacts are linked to the correct Accounts, and Opportunities are linked to the correct Accounts and Contacts.

Error Review

Review the Sync History tab for error summaries. Export the error details as CSV for detailed analysis. Common migration errors include:

Business Data Integrity

Run reports in the target org to validate business data integrity. Compare key metrics (total revenue, record counts by status, record counts by owner) between source and target to ensure no data was lost or corrupted during migration.

Audit Log Review

Check the DataSyncAuditLog records for any entries with error status. These identify records that failed to migrate and may need manual intervention or a targeted re-run.


#Rollback Strategy

For large migrations, having a rollback plan is essential. iSyncSF provides rollback capability, but it requires planning.

Keep Audit Logs Until Validation is Complete

Rollback depends on audit log records to identify which records were inserted. Do not run cleanup on audit logs until the migration has been fully validated and accepted. This may mean temporarily increasing your retention period or disabling scheduled cleanup for the duration of the validation window.

What Rollback Does

Phased Rollback for Large Migrations

For very large migrations that span multiple sync jobs, consider rolling back in phases — by sync job, not by object. This gives you finer control and avoids the overhead of rolling back millions of records in a single operation.

Post-Validation Cleanup

After the migration has been validated and the rollback window has passed, clean up audit logs to free storage. Use the scheduled cleanup jobs or manual cleanup as described in the Cleanup & Maintenance guide.