Relationships & Logic

TASKPRED (Activity Relationships)

Relationships: pred_type, lag; live 5670 TASKPRED FS/FF/SS

P6 Predecessors tab. FS relationships with lag 0 from EC1640 and EC1650.
A predecessor is a relationship row (type + lag) on the activity.

Columns (Oracle)

ColumnOracle label
task_pred_idUnique ID
task_idSuccessor
pred_task_idPredecessor
proj_idSuccessor Project
pred_proj_idPredecessor Project
pred_typeRelationship Type
lag_hr_cntLag (hours)
commentsComments

Successor is task_id. Predecessor is pred_task_id. Do not flip them.

pred_type values

Oracle's XER map does not list stored strings. MPXJ PrimaveraReader maps:

CodeMeaning
PR_FSFinish-to-Start
PR_SSStart-to-Start
PR_FFFinish-to-Finish
PR_SFStart-to-Finish

Konnect xD shows an example XER row with "PR_FS". P6 / Primavera Cloud support all four relationship types.

Do not claim SF exists in a given file unless that file was read.

Live file (proved)

XER 23-10-CE-LIVE: 2741 TASK rows, 5670 TASKPRED rows. Types observed: FS / FF / SS. SF is not claimed. See lessons/2026-08-16-xer-23-10-ce-live.md.

Lag

lag_hr_cnt is hours. Which calendar consumes lag is a schedule option (predecessor calendar, successor calendar, 24-hour, or project default). Oracle: lag entered in a unit other than hours is converted to hours using the predecessor activity's calendar.

Sources

Back to top