Skip Navigation LinksHome Page > Forums > SpiraPlan Forums > SpiraPlan Issues & Questi... > Task ID numbering
Hi,
How does Task ID work?
For example, one user created a task and that got id of TK:898. A couple of hours later, another user created a new task in the same project and it got id of TK:1898, which is a very big jump. From the log I can't see that anyone created 1000 of tasks; in fact no tasks were created between these two events. There are no tasks TK:899 or TK:1897. Even TK:1000 doesn't exist.
How these numbers are allocated in 9.5.0.0?
Thanks
Hello,
Actually, this is not an issue how Tasks (or any other artifacts) created, but some MS SQL issue explained here:KB189 - SpiraTeam and KronoDesk have IDs that occasionally jump by 1,000
I appreciate if you can contact support directly in a dedicated ticket for more details.
Regards,Victoria -
This happens because of the MS SQL Server identity cache feature. When the database server restarts or fails over, SQL Server discards unused cached identity values and jumps by 1,000 for integer columns. Since SpiraPlan uses database identity columns to generate artifact IDs across the whole system rather than per project fnf corruption, any restart will cause that sudden gap. If you want to prevent this behavior in the future, your DBA can disable the identity cache at the database level using the ALTER DATABASE SCOPED CONFIGURATION SET IDENTITY_CACHE = OFF command.
And if you have any questions, please email or call us at +1 (202) 558-6885