Sub topic 13
Executing the migration
This chapter assumes you have created a migration project, loaded and validated source data, and run a successful simulation. Execution is the step that writes data into the productive tables of the target system.
What execution does
Execution is the last step of the object's run sequence: prepare, validate, convert values, simulate, then migrate. The cockpit takes each validated instance, such as one business partner or one material, and passes it to the target application. It uses the same standard interfaces as the simulation, for example APIs or function modules. Unlike the simulation, nothing is rolled back. Every instance that passes the application checks is created for real.
Execution can still fail on instances that passed simulation. Typical causes are data that changed in the target between the simulation and the run, locks, and missing prerequisite objects.
Before you start
Check these points first:
- The object has status "Simulated" without open errors, or you have accepted the remaining errors.
- Every object it depends on has already been migrated. For example, load G/L accounts before open items that post to them.
- Nobody is changing the same data in the target system, such as manual postings or configuration changes.
- Any value mapping you changed since the simulation has been rechecked. If you changed it, simulate again.
Running the import
- Open the project in the Migrate Your Data app and select the migration object.
- Choose the execute step. This step is often labelled "Execute Import" or "Migrate", depending on the release.
- Confirm the start. The cockpit runs the import as background jobs, so you can close the app while it runs.
- Refresh the object list to follow progress. The counters show how many instances are processed, migrated, and failed.
What a rerun does
Instances that were created successfully are not created twice. When you run an object again, the cockpit processes only the instances that failed. This lets you correct a few records and rerun, instead of reloading everything.
If you need to change a record that has already been migrated, you cannot correct it by rerunning. Change it in the target application, or use a deletion option if your release offers one for that object. Check the object's documentation before relying on deletion, because support varies by object.
Common errors
| Symptom | Likely cause | Action |
|---|---|---|
| Instances fail with "does not exist" messages | A prerequisite object was not migrated yet | Migrate the predecessor, then rerun |
| Fewer instances created than expected | Errors were left open at simulation | Open the message list and review the failed instances |
| Run stays in "Running" for a long time | Background jobs are queued or have stopped | Check the job log in the system before restarting |
| Lock messages | Another user or job holds the target record | Wait for the lock to clear, then rerun |
Exercise
An object shows 980 migrated instances and 20 failed instances after execution. You fix the cause of the failures in the source data. What do you do next, and which instances are processed?
Show answer
Reload and revalidate the corrected data for the 20 failed instances, then run the object again. The rerun processes only the failed instances. The 980 migrated ones are not created a second time.