Master Data loading sequence in Customization Packages

Hello everyone,

I would like to raise awareness to a limitation currently affecting Master Data load sequencing through customization packages in v12.0.0.

Multiple Master Data files delivered through customization packages are not always loaded in the expected sequence during the custom package installation.
Files that depend on one another, either within the same package or across different packages, may therefore fail to load correctly, as projects typically sort the files alphabetically, so that a certain sequence is followed.
This can affect activities such as delivering packages Master Data or loading test Master Data. It can also affect installations that run multiple customization versions in a single go.

Technical Details

If you find a similar issue in v12.0.0 and are looking to confirm if that is the case, you create a Query to check for missing ParentIntegrationEntryId values on Integration Entries created by the installation, that previously ensured the proper sequencing.

This topic is currently under analysis so that the proper loading sequence is restored.

Available Workarounds

  • Merge Master Data files into a single one:

    If possible to merge Data package files into a single master data file, the system will be able to load using the proper sequencing

  • Manually retry failing Integration Entires
    If this is only affecting a development environment pipeline, manually retrying to load the test master data, by manually retrying failing Integration Entries may be an alternative, as eventually the file dependencies will be loaded. The tests can be executed afterwards.

  • Alter the cmfpackage.json definition
    Instead of using contentType: "MasterData", include the files as Generic content and declare the MasterData step explicitly in cmfpackage.json

...
  "contentToPack": [
    {
      "source": "Files/*",
      "target": "MasterData",
      "contentType": "Generic"
    }
  ],
  "steps": [
    {
      "type": "MasterData",
      "title": "Master Data",
      "filePath": "MasterData/**/*",
      "createInCollection": false,
      "targetPlatform": "Self"
    }
  ]
...

Note: In this alternative, you should still validate the order or creation of master data files, as a different alphabetical/folder sequencing may be used

Scope

This issue affects master data loaded during customization package installation.
Manually loaded files are not expected to be affected.

References

Best Regards,
Francisco Maciel

Hello,

To update on this topic, the most viable workaround is the 3rd option provided.

Although the order of master data file creation is follows a different sorting mechanism, particularly if the master data folder (represented in “Files” in the example) has subfolders, it is possible to ensure the proper sequencing.

This should be done by removing any subfolder structure, and sorting the files alphabetically in the root of the folder targetted in “source” of the “contentToPack” section.

If all the files are in sequence there, with no subfolders, and using the provided cmfpackage.json syntax, the proper sequencing is ensured.

This only works for a single package, if you are working with multiple Master Data packages that depend on each other a different approach may be needed.

Best Regards,
Francisco Maciel