Error: "The INSERT Statement Conflicted with the FOREIGN KEY Constraint "fk_taskpred_task". The Conflict Occurred in Database "PMDB", Table "dbo.TASK", Column 'task_id'." When Attempting an XER Import

(Doc ID 2364968.1)

Last updated on MARCH 05, 2018

Applies to:

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

Symptoms

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

MS SQL Server:
ERROR
-----------------------
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 "PMDB", table "dbo.TASK", column 'task_id'.

Oracle Database:
ERROR
-----------------------
Event Code: PRMDB-0248-2
Message: PRM DBAccess Error: ORA-12899: value too large for column "ADMUSER1"."TASK"."TASK_NAME" (actual: 135,maximum: 120)

STEPS TO DUPLICATE
-----------------------
The issue can be reproduced at will with the following steps:

  1. Login to P6 professional
  2. Import XER
  3. Observe error

Cause

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 hundreds of Community platforms