My Oracle Support Banner

Errors: "String or binary data would be truncated in table" and "The INSERT statement conflicted with the FOREIGN KEY constraint "fk_taskpred_task"" Are Received When Attempting to Import an XER File via P6 Professional (Doc ID 2774819.1)

Last updated on MARCH 21, 2024

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 18.8 and later
Primavera P6 Professional Project Management - Version 18.8 and later
Information in this document applies to any platform.

Symptoms

When attempting to import an XER file in P6 Professional, the following error occurs:

Event Code: PRMDB-1399-A
Message:   PRM DBAccess Error: SQL State: 1, SQL Error Code: 3621, Level: 0, Procedure: , Line: 11
  The statement has been terminated.
  SQL State: 1, SQL Error Code: 2628, Level: 16, Procedure: , Line: 11
  String or binary data would be truncated in table '<DatabaseName>.dbo.TASK', column 'task_code'. Truncated value: '<Customer Specific Value>'.

In addition, when attempting to access the Activities view in P6 Professional, the following error occurs:

Event Code: PRMDB-3872-E
Message:   PRM DBAccess Error: SQL State: 1, SQL Error Code: 3621, Level: 0, Procedure: , Line: 1
  The statement has been terminated.
  SQL State: 1, SQL Error Code: 547, Level: 16, Procedure: , Line: 1
  The INSERT statement conflicted with the FOREIGN KEY constraint "fk_taskpred_task". The conflict occurred in database "<DatabaseName>", table "dbo.TASK", column 'task_id'.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.