Documentation
Getting Started
Data Grid
Modeling
Business Rules
Approvals
Users, Roles & Security
Administration
Integration & API
Installation
Architecture

Migration Overview

Primentra has two built-in wizards that import your Microsoft Master Data Services (MDS) installation. The first wizard imports the structure. The second wizard imports the data rows.

Both wizards work the same way. You copy a SQL script out of the wizard, run it against your MDS database with sqlcmd, and upload the result file back into the wizard. Primentra never connects to your MDS database itself.

The two wizards

Always run them in this order:

  1. Models & Entities — imports models, entities and attributes. See Migrate Models & Entities.
  2. Master Data — imports the data rows into the entities the first wizard created. See Migrate Master Data.

The second wizard can only load rows into an entity that already exists. An entity in the data file that has no match in Primentra is reported as no match and skipped.

Where to find them

Both wizards are for administrators only.

  • Open the gear menu and select Migration Wizards. This opens the first wizard.
  • In Settings, the sidebar has a Migration Wizards group with Models & Entities and Master Data Import.
  • Direct URLs: /admin/migration/models and /admin/migration/data.
The Models / Entities wizard on the Instructions step, with the export script and the sqlcmd commands
The Models / Entities wizard on the Instructions step, with the export script and the sqlcmd commands(click to enlarge)

Prerequisites

RequirementWhy
Administrator role in PrimentraBoth wizards and the import endpoints refuse any other user
Read access to the MDS database (mdm schema)The export scripts read mdm.tblModel, mdm.tblEntity, mdm.tblAttribute and the entity tables
SQL Server 2016 or laterBoth export scripts use FOR JSON PATH
sqlcmdSSMS truncates large JSON results. sqlcmd writes the full result to a file
A working Primentra installationSee Install Primentra
If your MDS instance is older than SQL Server 2016, restore a copy of the MDS database onto a 2016 or later instance and run the export scripts there.

The export scripts use Windows Authentication (-E). The Windows account that runs PowerShell must have read access to the MDS database.

What migrates

SourceWhat Primentra imports
mdm.tblModelName, description, created and modified timestamps
mdm.tblEntityName, description, created and modified timestamps
mdm.tblAttributeDisplay name, name, data type, maximum length, decimal places, negative numbers allowed, required flag, code and name flags, sort order, description, timestamps, domain reference
Entity leaf tablesCode, Name and every non-system attribute value, including domain values

Original MDS timestamps are kept. The import date is not used.

Data type mapping

MDSPrimentra
TextText
Number with 0 decimalsInt
Number with 1 or more decimalsDecimal — the number of decimal places is kept
DateTimeDateTime
Domain-basedDomain — the reference is resolved to the imported entity
Link, and every other typeText

The MDS input mask sets the Allow negative flag: -#### allows negative numbers, #### does not.

What does not migrate

None of the following is read by the export scripts:

  • Business rules — see Business Rules Overview
  • Derived and explicit hierarchies, and collections
  • Subscription views — Primentra has its own, see Integration Views
  • Users, groups and functional area security
  • Versions, version flags and the transaction log
  • File attributes, annotations and staging batches
  • The Requires approval setting on an entity. Every imported entity is created with approval turned off

Only leaf members are exported. Consolidated members and collections are not.

Two things to know before you start

Approval workflows are bypassed. The data wizard writes straight to the database. If an entity requires approval, the wizard shows a warning in the preview step and imports anyway.
Business rules do not block the import. Legacy data is expected to break rules. Every row loads, and the rules report afterwards. Validate the entities once the migration is done — see After Migration.

Ready to get started?

Start managing your master data with Primentra today.

View Pricing
Migration Overview | Migrating from MDS | Docs | Primentra