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
- Install Pega Platform 7.4.
- 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:
- Retain the constraint as defined by the Pega Platform.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.