Bug Fix: Create project from template creates duplicates

Display table of contents

PPP Scheduler Changes >

Bug Fix: Create project from template creates duplicates

When creating a project from a template, duplicate data (such as schedules and risks) could be created. This happened because the Create Project From Template flow was triggered twice. Refreshing the project caused the tpg_fillfromtemplate flag to change, which could retrigger the flow while project creation was still in progress, resulting in a race condition.

An additional internal control field tpg_createtemplatefromprojecttypeinprogress has been introduced to better manage the project creation state. This ensures that the Create Project From Template flow runs only once while a project is being created, preventing the creation of duplicate schedules and risks.