Skip to main content

Check out Port for yourselfย 

Migrate Blueprint Data

When evolving your software catalog, you may need to migrate existing entities to reflect changes in your blueprint structure. Port provides a simple approach to migrate all entities of a blueprint efficiently and safely.

When to migrate dataโ€‹

Data migration becomes necessary when you need to:

  • Transform data format: Change property values and/or merge and seperate properties in existing blueprints.
  • Update relations: Modify existing relations between blueprints.
Blueprint schema evolution

After migrating data, if you want to revert the changes, you will need to create a new migration from scratch.

How to migrate dataโ€‹

Using the UIโ€‹

To migrate data using Port UI, go to the Builder page of your portal and select your desired blueprint.
Click on the ... button of the blueprint you want to migrate, and select Migrate data from the dropdown menu.

Below are some example screenshots to help you understand the migration process.

Selecting the source blueprintโ€‹

In this step, you choose the blueprint you want to migrate data from. This is done from the the Builder Page, where you can access the migration option from the actions menu.

Locking operations

We recommend locking updates to the blueprint during migration to ensure data integrity as updates might fail for entities registered during the migrations.

Mapping properties and relationsโ€‹

Here, you are presented with a mapping interface. You can match properties and relations from the source blueprint to those in the target blueprint. This ensures that your data is correctly transformed during the migration.

Reviewing the migration planโ€‹

Before executing the migration, you can review a summary of the planned changes. This includes a preview of how entities will look after migration, allowing you to verify that all mappings are correct and JQ checks out.

Migration progress and completionโ€‹

During the migration, you can monitor progress in real time. Once the migration is complete, you will see a confirmation message and can review the results directly in the UI.

Using the APIโ€‹

For detailed API documentation and examples on how to create migrations programmatically, see the Create a Migration API reference.

Troubleshoot migration issuesโ€‹

If all entities fail to migrate, the migration status will display "Migration failed" in red.
If only some entities fail, the status will show "Migrated with errors".
You can hover over the status to see a tooltip indicating how many entities failed.

Example: If 3 out of 10 entities failed, hovering over "Migrated with errors" will show "3 entities failed to migrate".