The WBS code is not an address: what happens when the plan changes

The WBS code is not an address: one row inserted changes 7 codes out of 7, Renumber hands a code to another task, the Unique ID does not change

This article is part of the guide The plan that holds: Microsoft Project best practices, symptom by symptom, nineteen things you can see in a plan and the move that reveals each one in thirty seconds.

End of the month. You compare October’s plan with September’s, task by task, to see what slipped. Or you export the actual hours to finance, which books them against the job’s cost codes. Either way you need a key: something that says “this October row is that September row”.

The obvious choice is the WBS code: 3.2 is Walls, it says so right there.

In short

  • In Microsoft Project the default WBS code is the outline number: one row inserted at the top changes the code of every task below it.
  • A custom WBS code survives insertions, but changes when you move a task under another summary, and Renumber recycles codes: one can end up on a different task.
  • To compare two versions of a plan, or to send actuals to another system, the key is the Unique ID, with a check on the name.

What actually happens: the test

We measured it in Microsoft Project on a small plan: Design (Survey, Drawings), Construction (Foundations, Walls), Handover. Then four ordinary changes, the kind that happen in any update. With the default WBS code the code is the outline number, and it is rewritten at every change:

Taskat the starta row at the topa task addeda task deletedHandover moved
Drawings1.22.22.22.12.1
Walls2.23.23.33.33.3
Handover34443.4
Default WBS code, measured in Microsoft Project: codes that just changed in bold.

One single row at the top, “Permits”, changed the code of every task. In September “3.2” was Walls; in October “3.2” is the task that was added. A comparison keyed on the code raises no error: it simply matches the wrong rows.

“Then I’ll use a custom code”

That is the right move, and it only half works. With your own mask (Project › WBS › Define Code, for example CANT- + letter + number) the codes no longer follow the numbering:

  • inserting and deleting leave existing codes alone. New tasks get the first free code, even out of order;
  • moving a task under another summary changes its code: Handover went from CANT-E to CANT-C.05;
  • Renumber puts everything back in order, and codes get recycled. After renumbering, CANT-C.02, which was Walls’, went to the task that had been inserted. Again: no error, just the wrong match.
Table before and after Renumber with a custom WBS code: six tasks out of eight change code, CANT-C.02 moves from Walls to Services, while every task keeps its Unique ID
Before and after “Renumber”: Walls’ code ends up on Services. The Unique ID, in the second column, does not move.

The key that holds: the Unique ID

Through all four changes, and after renumbering too, one column did not move: Unique ID. Project gives every task one when it is created, and it does not change for as long as the task exists.

With one caveat, measured as well: if you delete a task, save and reopen the file, the next task you create can get the Unique ID of the one you deleted. Without saving it does not happen; after saving it does.

For comparisons between versions and for links to other systems:

  1. Add the Unique ID column to the table you export.
  2. Use it as the key for comparisons and imports. Keep the WBS code as a readable label, not as a key.
  3. Check the name as well. If the same Unique ID shows up in both versions with a name that has nothing in common, it is an ID reassigned after a deletion: treat it as a new task, not the same one.
  4. If you renumber, tell whoever works by code (finance, the client, the report): for them a renumbering is a new plan.

The WBS code is a label to read out in a meeting. As a key between versions you need something that does not depend on where the row sits.

It is the point Alex Lyaschenko makes in his article on the WBS: an element you want to compare over time needs an identity that does not change with the structure.

Frequently asked questions

Are the WBS code and the Outline Number the same thing?

With the default code, yes: they match. With a custom mask, no: the outline number keeps following the position, the WBS code follows the mask.

Can I stop a custom code from changing?

You can avoid Renumber and avoid moving tasks under other summaries. But the code stays tied to the outline: you keep it still by discipline, not with a setting.

Does the Unique ID hold across different files?

It holds within the same file, from one saved version to the next. A task copied into another plan gets the Unique ID that the destination plan assigns: in the test, the task with ID 2 arrived in the other plan as ID 7.

Which version of Project was the test run on?

Microsoft Project version 16.0, the same base as Project 2016, 2019, 2021, 2024 and Microsoft 365. On an older version it is worth repeating: five minutes on a copy of a plan is enough.


If the problem is not the key but the points of view (by area, by contractor, by floor), the answer is outline codes: one WBS, more than one way to see it.

#MSProject #WBS #ProjectControl #ProjectData

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top