
P6 and Store Microsoft Project Task IDs
How do you protect and preserve your original Microsoft Project task IDs when migrating a schedule into Primavera P6? Here we take a look at this.
P6 activity ID numbering does not reset when you add an activity. This means you need an increment between each activity ID, so you have room to insert tasks. But this also means your P6 activity ID numbering quickly diverges from its counterpart in Microsoft Project (MSP). You will therefore want an audit trail of your Microsoft Project task IDs.
To maintain a reliable audit trail of your Microsoft Project task IDs, you can run a Global Change routine in P6 to copy your original MSP numbering into a P6 User Defined Field (UDF), preserving your initial baseline for seamless MSP-to-P6 cross-referencing.
This article explains how to create and run a P6 Global Change routine to store Microsoft Project task IDs in a UDF.
Demonstration
Figure 1 shows an MSP Pipe Repair and Improvement schedule.

We save this schedule in MSP to an XML file, then import it into P6. Figure 2 displays the resulting P6 schedule.

While the MSP numbering scheme is successfully maintained, Task 9 appears out of order due to standard text sorting. To arrange the Piping tasks in the correct sequence, we must add a leading zero to the Install Piping & Couplings task’s ID, as shown in Figure 3.

Now, each deliverable follows a correct, ascending Activity ID numbering sequence. However, this highlights a standard scheduling dilemma: if we need to insert a new task between Activity ID 14 (Lay Rebar) and Task 15 (Pour Concrete), there is no available numbering room. To prevent this, schedules require an increment greater than one between tasks. Before renumbering our P6 schedule, we must first preserve the original MSP numbering system to maintain a clean audit trail.
We achieve this by creating a User Defined Field (UDF) in P6 to store the legacy MSP numbers. To do this, navigate to Enterprise | User Defined Fields and add a new Text field titled MSP_ID Figure 4.

Next, go to Tools | Global Change and select + New to create a routine that copies the current Activity IDs into our new data column. In the Modify Global Change dialog box, select the Activities subject area, provide a descriptive name and input the parameters shown in Figure 5.

To capture all tasks, leave the IF section of the routine blank. In the THEN section, set MSP_ID equal to Activity ID, Figure 5. Click OK to save, then select the Apply Change button Figure 6.

P6 will generate a Global Change Report detailing the old and new values for the MSP_ID field Figure 7.

Once the changes are committed, the MSP_ID column is fully populated Figure 8. We are now ready to renumber the P6 Activity IDs in increments of 10, which provides ample activity ID numerical space for future task insertions.
First, navigate to Edit | Select All to highlight every task in the schedule Figure 8.

Then we choose Edit | Renumber Activity IDs, Figure 9.

Figure 10 shows our Auto-numbering scheme in P6 with a text prefix (the letter “A”), a suffix starting at 1,000 and an increment of 10.

We click OK, and Figure 11 displays our new P6 activity IDs next to the MSP_ID column.

With this layout established, referencing the original MSP task numbers is completely seamless, ensuring a foolproof audit trail.
Figure 12 shows our schedule after inserting three additional tasks to provide more detail for the concrete pour and cure tasks.

As shown in Figure 12, inserting additional tasks causes the MSP and P6 task IDs to diverge. This perfectly illustrates the value of maintaining our MSP_ID audit trail.
Summary
Because Primavera P6 does not automatically renumber activity IDs with each new task addition, we must adopt a different numbering scheme than the Microsoft Project task IDs. Using an increment greater than one, ideally ten, ensures you have adequate room for future task insertions.
However, before applying this new P6 numbering system, it is vital to preserve a copy of the original one-to-one imported IDs. Utilizing a Global Change routine provides a fast, efficient way to back up those initial IDs to a UDF, ensuring you can seamlessly audit your P6 schedule back to the original MSP project file at any time.