Close popover
Ryan Feeney (feenr)
Principal Software Engineer
Pegasystems Inc.
feenr Member since 2010 54 posts
Posted: February 13, 2020
Last activity: February 23, 2020

Branch submission schema error on DM Upgrde >v4.4


Before the 4.4 release of Deployment Manager the database table which Merge Request instances are stored in did not have a primary key constraint. This meant that it was possible to have duplicate instances created. For the most part, this was not an issue because the Pega Platform would treat any duplicates as an update to the existing record. Under rare circumstances the Pega Platform will revert to an older behavior which will insert duplicate entries instead.

Changes in DM 4.4

Deployment Manager 4.4 adds a primary key constraint to the Merge Request table. This schema change will be applied automatically when importing the latest version of PegaDevOpsFoundation. If your system happens to have duplicate Merge Requests, applying the Schema change will fail.

Merge wizard schema error

Fix for duplicate Instances

Along with the schema changes, we have included in PDF 4.4 an activity called pzDeleteDuplicateMergeRequests which will automatically delete any merge Requests which have duplicates. To use that activity, and proceed with the PDF follow these steps.

  1. Import PDF 4.4, and choose to skip Schema updates
  2. Open the activity pzDeleteDuplicateMergeRequests
  3. Run the activity without checking the “PerformDelete” checkbox
    • You acknowledge that all of the Merge Request instances shown in the resulting XML will be deleted.
  4. Run the activity again checking the “PerformDelete” checkbox
  5. Re-import PDF 4.4 so that the schema changes can be applied.
Developer Knowledge Share