The Restore tab is used to launch a restore operation and view progress. This tab allows several operations:
Estimate the size of a restore.
Run a restore for the first time.
Resume a restore from the point at which it last stopped.
Restart a restore, ignoring any saved history from previous restores.
View errors and exceptions that occurred during a restore.
The first time a restore is set up for a Salesforce instance the restore tab will look like the following:
The “Estimate Size” button will scan the CopyStorm database and estimate the number of records that will be restored to Salesforce. The estimate is the maximum number of records to be restored.
The “Start Restore” button will restore data to the Salesforce instance. If an “Estimate Size” operation has not been performed, the first thing a “Start Restore” will do is to estimate the size.
If the restore rules specify a RANDOM number of records and no seed is supplied, each time Estimate Size or Start Restore buttons are clicked a new set of randomly selected candidates will be chosen. This process is additive and will result in restoring more than the random limit supplied on the Restore Set Editor tab. Entering a seed value will eliminate this potential problem and allow size estimation before starting a restore. This is most commonly used when restoring a development sandbox to exactly the same state every time.
While a restore is running, the table displayed on this tab will change dynamically with information about the restore progress. The “Cancel” button can be used to stop a restore at any point.
After the restore has finished the Restore tab will expose several new buttons below the progress grid:
The “Re-scan Candidates” button will reevaluate the table record selection rule and look for new restoration candidates. New candidates may be found if the record selection rule for any table has changed, or if subsequent CopyStorm jobs have added new data to the backup.
The “Estimate MBytes” button will estimate the number of megabytes to be written to Salesforce, using Salesforce’s estimation algorithm.
The “Continue Restore” button will continue a restore from the place where it last stopped, optionally ignoring previous restore history and restarting the restore from scratch.
To resume a restore, click on the “Continue Restore” button. The provides the ability to resume a partially completed restore or to delete restore history and restart a restore from the beginning.
If the restore operation encounters any error(s) an “Exceptions” button will appear on the Restore tab:
Click on the “Exceptions” button to see the details. The exception displayed in the screenshot below was caused by an email address in the CopyStorm backup which did not pass Salesforce validations rules in the target Salesforce. You may see similar problems in your data if schema changes or validation rule changes have made historical data invalid.
CopyStorm/Restore includes a series of columns for each table that is restored. These columns include:
# Inserts
The number of records restored by inserting a new record into Salesforce.
# Updates
The number of records restored by overwriting the content of existing records in Salesforce.
# Ref Updates
The number of records that required a second pass to restore reference fields that could not be set on the first insert or update operations. A common example of this is when a child Account is restored before its parent Account. A second pass is required to set the child’s parentId field.
# Restored
The total number of records that were restored.
# Skipped
The total number of records that were skipped.
# Errors
The number of errors reported while attempting to restore records of this type.
Start Time
The time that the restore for this table started.
Elapsed Time
The total amount of time spent restoring this table.
Stage
The current restore stage for a table can be one of:
Waiting — no processing has taken place.
CandidateScan — scanning the restore rules looking for candidate records.
CandidateLoopScan — looking for recursion in the data that adds additional candidate records.
CandidatesReady — all restore candidates have been found.
Restore — inserting / updating records in Salesforce.
RestoreReferences — restoring reference fields that could not be restored in the previous step.
Finished — done restoring to this table.
Table Name
The name of the table being restored.
# Candidates




The total number of potential records to be restored.
Clicking on the Restore Tab’s “Continue Restore” button will display a dialog to configure parameters for the restore operation:
Clicking on the “Start Operation” button will cause CopyStorm/Restore to upload all Pending records from the Tracker Database into Salesforce – either resuming a previously cancelled restore job or augmenting a previous restore with all new candidates in the Tracker Database.
If any record(s) are being retried via the Tracker Database’s “Set to Pending” feature, their historical skip reason and exception information will be removed from the tracker prior to the restoration reattempt (if they fail to restore a second time, the most recent skip reason and exception will be recorded).
To delete the history of previously restore records and restart the restore from the beginning, update the “Reset Restore” dropdown:
Do Not Reset – keep all Restore history.
Reset Exception History – delete Exception logs before restoring records.
Reset Restore History – delete all restore history and record maps before re-scanning for candidates and restarting the Restore.
To try to insert / update records that previously failed to Restore, check the “Retry Failures” checkbox. If this checkbox is checked:
Mark all “Skipped” records in the Tracker as “Pending”.
Try to Insert or Update all records that were changed from “Skipped” to “Pending”.
To limit the tables that CopyStorm/Restore will push to Salesforce, check the “Select Specific Table Rules to Include” checkbox. If this checkbox is:
Unchecked, all pending candidates will be restored.
Checked, only pending candidates from the selected tables will be restored.
Checking the “Select Specific Table Rules to Include” checkbox will display a table selector, allowing specific tables to be selected as candidates for restoration:
Repair Reference Fields
This option will cause CopyStorm/Restore to update previously restored records with the latest Id mappings from the Tracker Database and Migration tabs.
This option should be used when performing incremental restores using the “Select Specific Table Rules to Include” option.
Ignore Advanced Tab Rules
This option will cause CopyStorm/Restore to not use the rules specified on the Advanced Tab.
When checked, CopyStorm/Restore will not automatically disable triggers, validation rules, workflows, etc… when restoring data.



Clicking on the Restore Tab’s “Re-scan Candidates” button will display a dialog to configure parameters for the re-scan operation:
Pressing the “Start Operation” button will cause CopyStorm/Restore to identify any new records in the CopyStorm database that match the current configuration in the Restore Set Editor. All records that are identified will be added to the Tracker Database – allowing them to be restored by CopyStorm/Restore.
The default settings in this popup will cause all tables, records, and relationships to be rescanned. This will ensure that any changes in the CopyStorm database or Restore Set Editor are reflected in the Tracker Database.
There are three checkboxes that can be used to limit the amount of data scanned:
Rescan All Record Relationship Dependencies (if false, only new records are scanned)
If this checkbox is checked, all records’ related list and reference field rules will be scanned.
If this checkbox is unchecked, only newly identified records’ related list and reference field rules will be scanned.
Mark Updates as Pending (if false, only new records will be marked as pending)
If this checkbox is checked, both new records and records that have been updated in the CopyStorm database will be set to Pending in the CopyStorm/Restore Tracker (and subsequently inserted or updated in Salesforce).
If this checkbox is unchecked, only new records will be set to Pending in the CopyStorm/Restore Tracker.
Select Specific Table Rules to Include (by default all are included)
If this checkbox is checked, CopyStorm/Restore will only scan for new records in the indicated tables.
If this checkbox is unchecked, CopyStorm/Restore will scan for new records in all tables configured in the Restore Set Editor tab.
If the Select Specific Table Rules to Include checkbox is checked, a table selector will appear to allow specific table selection:

