Solution ID: prim22467 |
Event Code Error: ‘CVRJC-3802-1′ when importing an XER |
Status: Reviewed |
Version(s): 4.0, 4.1, 5.0 |
Problem: | “Event Code Error: ‘CVRJC-3802-1′ when importing an XER” |
Problem: |
Event Code Error: ‘CVRJC-3802-1: TCCustomVirtualRow.getJoinedColItems: UDFVALUE row has blank fk_id’ when importing an XER |
Cause: | This is caused by orphaned records in the database being extracted into the XER file during export, then the error is received when importing an XER file that contains these orphaned records. Orphaned records can happen for a variety of reasons. Note: ** Other scenarios that cause orphaned records may still exist. ** |
Fix: | This known problem in Project Management has been corrected in version 5.0 Service Pack 2. To download the latest Service Pack, see: Solution ID: prim29265 揥hat are the latest Service Packs for Primavera version 5.0??/A> |
Fix: | Workaround: Run database queries/scripts on the source database (the database where the XER was exported from). See steps below. PROJECT MANAGEMENT FIX: Run the appropriate script below on the database that the XER was exported from Note: RUN THIS SCRIPT ON A BACKUP OF THE DATABASE FIRST! For Project Management 4.1 databases: delete_orphaned_UDFVALUE_41.sql For Project Management 5.0 databases: delete_orphaned_UDFVALUE_50.sql If the script seems to hang at the section where the script attempts to delete UDF data which has no corresponding entry in the TASK table, please replace it for: delete from udfvalue a where exists ( select 1 from udftype b where b.udf_type_id = a.udf_type_id and b.table_name = ‘TASK’ ) and not exists ( select 1 from task c where c.task_id = a.fk_id ); |
Fix: |
Workaround 2: If the source database is not accessible, the XER file can be fixed. Please see:
|
Fix: | Workaround 3: If a 5.0 SP2 or higher implementation is available (both client application and database patched) the project may be imported and then re-exported to XER format to remove the Orphaned Records causing this problem. It may then be imported into a pre SP2 database. |