Use the xDB to CDP migration tool
This topic outlines the steps involved in installing, configuring, and running the xDB to CDP migration tool in Sitecore Connect.
Make sure you have:
-
A Sitecore Experience Platform (XP) license and an XP instance version 9.0 or later with customer data.
-
A Sitecore CDP license and a CDP instance.
-
An active Sitecore Connect instance.
This walkthrough describes how to:
Install the package in Sitecore Connect
To install the package, you must import it into your xConnect account.
To install the package in Sitecore Connect:
-
Go to the Sitecore Connect portal.
-
Navigate to Tools > Recipe lifecycle management.
-
Click the Import tab, and then click Import.
-
Select the package you downloaded in step 1. The following recipes are displayed:
-
[XCM] REC001 | Processing Recipe Trigger
-
[XCM] REC002 | Load and Transform Contacts From xDB
-
[XCM] REC003 | Upload Contacts to CDP
-
[XCM] REC004 | Migrate Contacts by ID
NoteYou will also see the
Sitecore XP ConnectionandSitecore CDP Connectionconnections. To connect to your instances, first you need to update their configurations. -
Now you have successfully imported the migration package into your Sitecore Connect account.
Establish connection to your XP instance through xConnect
After importing the package, you establish a connection to xDB in your XP instance through xConnect.
Before you establish a connection, you need to get the certificate and key from the .pfx file.
To get the certificate and key:
-
Start OpenSSL. If you have Git installed, you can find
opensslin the following folder:cd 'C:\Program Files\Git\mingw64\bin\' -
Run the following command in Powershell:
.\openssl.exe pkcs12 -info -in C:\Users\<YOUR_CERTIFICATE_LOCATION>\Downloads\myCert.pfx
To establish the connection:
-
In Sitecore Connect, go to Assets > Connections.
-
Open the
Sitecore XP Connectionthat you imported previously. -
Fill in the following information to connect to xConnect:
-
Connection Name - a name that you define for the connection to xConnect.
This parameter helps identify and manage multiple connections within your Workato account.
-
Certificate - use the value from the xConnect certificate.
ImportantYou must include the
-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines.This is the SSL certificate required for secure communication with the xConnect service. This certificate ensures the confidentiality and integrity of data exchanged between Workato and xConnect.
-
Key - use the value from the xConnect certificate.
ImportantYou must include the
----- ENCRYPTED PRIVATE KEY -----and----- END ENCRYPTED PRIVATE KEY -----lines.This is the private key associated with the SSL certificate. This key is used for encryption and decryption purposes during the SSL handshake process.
-
Passphrase - use the value from the xConnect certificate.
-
URL - enter the URL endpoint of the xConnect service.
This parameter specifies the location where the xConnect service is hosted and accessible.
-
If you have an on-prem instance of XP: go to the
<ROOT>\App_Configfolder, open theConnectionStrings.configfile, copy the value of xconnect.collection field and paste it into the URL field. -
If your instance of XP is running on Azure, and you have an XP0 instance, use the URL of the xc-single App service. The URL will have this format:
https://<YOUR_INSTANCE>-xc-single.azurewebsites.net -
If your instance of XP is running on Azure, and you have an XP1 instance, use the URL of the xc-search App service. The URL will have this format:
https://<YOUR_INSTANCE>-xc-search.azurewebsites.net
-
-
-
Click Connect. If connecting is successful, your screen will look similar to this:
Depending on your setup, firewalls might prevent Sitecore Connect from connecting to your XP instance. To resolve this issue, consider using IP whitelisting by adding IPs allowed by Workato to your whitelist.
You are now successfully connected to your XP instance.
Establish connection to CDP through xConnect
After connecting to your XP instance, you establish the connection to your CDP instance through xConnect.
-
In the Sitecore Connect, go to Assets > Connections.
-
Open the
Sitecore CDP Connectionthat you imported previously. -
In the Location field, select the project or folder where you want to store the connection, and then fill in the remaining fields following the instructions on the page.
-
You can skip Client ID and Client secret.
-
Click Connect. If connecting is successful, your screen will look similar to this:
You are now successfully connected to your CDP instance.
Configure the [XCM] REC002 | Load And Transform Contacts From xDB recipe
The [XCM] REC002 | Load And Transform Contacts From xDB recipe already has a built-in filter so that only known contacts are migrated. You can add one additional filter.
If you want to migrate custom facets, you need to manually create mappings for the custom facets before configuring the recipe.
To add a filter to the recipe:
-
In Sitecore Connect, open the
[XCM] REC002 | Load and Transform Contacts From xDBrecipe.
-
In step 5 of the recipe, click Get all contacts from xConnect that contain at least one known contact identifier.
-
In the upper-right corner, click Edit.
-
In the Enable Filters list, select Yes.
-
In the Filter Property list, select the facet, operator, and value.
-
In the upper-right corner, click Save to save your changes.
You have now configured the recipe.
Run the migration tool
To migrate contacts with the option of using filters, you need to run the first three recipes in the sequence stated below.
To migrate contacts based on your ID, you only run the fourth recipe.
If you have custom facets, you need to configure the mappings before running the recipes. Only built-in facets are mapped to guest data extensions in CDP.
If you have changed the default identity rule in your CDP tenant, or added new rules, you need to configure the guest identifiers before running the recipes.
To migrate contacts with filtering options:
-
In Sitecore Connect, open the
[XCM] REC002 | Load and Transform Contacts From xDBrecipe and click Start Recipe. -
Open the
[XCM] REC003 | Upload Contacts to CDPrecipe and click Start Recipe. -
Open the
[XCM] REC001 | Processing Recipe Triggerand click Test Recipe.
To migrate specific contacts based on their ID:
-
In Sitecore Connect, open the
[XCM] REC004 | Migrate Contacts by IDrecipe and click Test Recipe.
Workato provides real-time feedback on the status of each step and indicates whether it succeeded, failed, or encountered warnings. To monitor the execution of a job, click the Jobs tab, and then click the individual job.
You have successfully migrated contacts and contact information from your XP instance to your CDP instance.