Patterns search is unable to find a record from the MDM

Patterns search is unable to find a record from the MDM

book

Article ID: KB0075360

calendar_today

Updated On:

Products Versions
TIBCO MDM -

Description

The issue is because of migration. If a customer has migrated from any lower version to MDM 912 and tried to add the child records from BW then the child record will not get added, because of PRINCIPALKEY INDEX and fields "[CREATIONDATE] [datetime2](0) NOT NULL,[MODDATE] [datetime2](0) NOT NULL".

Resultant, the patterns search not able to find an associated child for a particular parent, but in actual, the record was nit added by BW because of the migration issue.

Here is the PRINCIPALKEY Table STRUCTURE:
======
CREATE TABLE [dbo].[PRINCIPALKEY](
[CATALOGID] [numeric](22, 0) NOT NULL,
[PRODUCTKEYID] [numeric](22, 0) NOT NULL,
[MODVERSION] [numeric](22, 0) NOT NULL,
[CATALOGVERSIONNUMBER] [numeric](22, 0) NOT NULL,
[ACTIVE] [nvarchar](1) NOT NULL,
[CREATIONDATE] [datetime2](0) NOT NULL,
[MODDATE] [datetime2](0) NOT NULL,
[MODMEMBERID] [numeric](22, 0) NOT NULL,
[LASTIMPORTTIME] [numeric](31, 8) NOT NULL,
[CHECKSUM] [numeric](31, 8) NOT NULL,
[STATE] [nvarchar](255) NOT NULL,
[PARENTVERSION] [numeric](22, 0) NOT NULL,
[OWNERID] [numeric](22, 0) NULL,
[OWNERTYPE] [numeric](22, 0) NULL,
[LASTCONFIRMEDVERSION] [numeric](22, 0) NULL,
[PROCESSLOGID] [numeric](22, 0) NULL,
[BATCHID] [numeric](22, 0) NULL,
[EFFECTIVEDATE] [datetime2](3) NULL,
[ENDEFFECTIVEDATE] [datetime2](3) NULL,
 CONSTRAINT [XPK_PRINCIPALKEY] PRIMARY KEY CLUSTERED
(
[CATALOGID] ASC,
[PRODUCTKEYID] ASC,
[MODVERSION] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
=====

This will not happen for every record, this will happen only in the case where there is a timestamps rounding happens.
 

Environment

Tibco Pattern Search: 5.5.0 MDM: 912 OS: ALL Database: MSSQL Server.

Resolution

The PRINCIPALKEY table structure was wrong, so it needs to fixed by applying SQL script on the MSSQL database for the respective user. This will reform the INDEX and alter these two fields "[CREATIONDATE] [datetime2](0) NOT NULL,[MODDATE] [datetime2](0) NOT NULL".

I have attached the SQL script (alterForDateTime.sql)f or your reference.

Note: It will not fix the existing issue, so, may need the re-seeding of the Patterns tables and specific to SQL server database not Oracle database.

Issue/Introduction

Patterns search is unable to find a record from the MDM

Attachments

Patterns search is unable to find a record from the MDM get_app