Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

CRM Framework DDL's issue

SA-73852

Summary



On executing a generated Data Definition Language (DDL) and importing it generates another DDL to add a constraint. On executing this DDL and importing it, generates another DDL to drop the same constraint. This continues indefinitely.

ALTER TABLE DATA.p_ContactOrgRel DROP CONSTRAINT p_contactorgrel_v2_pk
go
ADD CONSTRAINT p_contactorgrel_v2_pk PRIMARY KEY ( "organizationid",
  "contactid",
  "roleid")
go



Error Messages



Not Applicable


Steps to Reproduce

  1. Install Pega Platform 7.4.
  2. Install Pega Customer Service (CS) 7.4.


Root Cause



A defect in Pegasystems’ code or rules.
The table was moved to the platform; however, a table rule still exists for it in Pega Customer Service (CS) 7.4. The table structure in both media is the same, but the constraint is different.



Resolution



Perform the following local-change: 
  1. Retain the constraint as defined by the Pega Platform.
  2. Skip the DDL from the Customer Service import that tries to drop and re-add it.

    ALTER TABLE DATA.p_contactorgrel
    ADD CONSTRAINT "p_contactorgrel_v2_PK" PRIMARY KEY NONCLUSTERED
    (
        "OrganizationId","ContactId","RoleId"
    )

Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us