Why are numbers in the serie skipped

palmen
Tera Guru

When creating a new Story in the SDLC module, it get number STRY0000001.

Scenario 1

If I click on save and then "Create New" (under Stories in SDLC) the next story will get STRY0000002 as the number.

Scenario 2

If I click on submit instead and then "Create New" then next story will get STRY0000003 as the number (skipping STRY000002)

Scenario 3

If I click on submit and afterwards on the "New" button on top of the Stories list, the next story will have number STRY0000004 (skipping STRY0000002 and STRY0000003)

How come some numbers in the serie are skipped depending on if I use save/submit and Create New/New?

In scenario 1, I'll get the next number in the serie.

In scenario 2, it'll skip 1 number

In scenario 3, it'll skip 2 numbers

18 REPLIES 18

As I said this is not the issue and what you mention is nothing strange and is not a question.


The "issue" is that more than 1 number in the serie is consumed when I use the submit button, in that case 2 numbers in the serie is consumed instead of 1.


Midhun1
Giga Guru

Hi,



I got it one question -Is your instance got upgraded recently?


It's a brand new instance running Geneva patch 4 at the moment.


It's not a production instance.


Chuck Tomasi
Tera Patron

Hi Fredrik,



Normally I would say to check the property listed below. It defaults to "off" which can lead to skipped numbers when new records are opened, but not saved.



Managing Record Numbering - ServiceNow Wiki



This sounds like there may be a business rule.



Try simply using the "New" button at the top of your list repeatedly and see if it stays in sequence.


ctomasi


I tried your approach with pressing the new button. (tried in chrome and second browser incognito).



This is what I did in the browser:


Browser 1: Click on New button from Stories List, STRY0011574 is created (never saved it)


Browser 2: Click on New button from Stories List, STRY0011575 is created (never saved it)


Browser 2: Click on back button to get back to Stories List, Click New button to create a new Story, STRY0011577 is created (never saved it)


Browser 1: Click on back button to get back to Stories List, Click New button to create a new Story, STRY0011579 is created (never saved it)


What happened to STRY0011576 and STRY0011578 in this scenario? I'm the only one working in the instance so it can't be someone else doing something




Second test:


Browser 1: Click on New button from Stories List, STRY0011593 is created, filled in required fields and pressed Submit.


Browser 2: Click on New button from Stories List, STRY0011596 is created, filled in required fields and pressed Submit.


Browser 2: Click on New button from Stories List, STRY0011599 is created, filled in required fields and pressed Submit.


As you can see here 2 numbers are being skipped each time I create a story.




Third test:


Browser 2: Click on New button from Stories List, STRY0011602 is created (never save it).


Browser 2: Click on "Open Stories" module in the SDLC application 5 times


Browser 2: Click on New button from Stories List, STRY0011608 is created (never save it).




Conclusion of this is, every time I load a list of records (stories) the counter goes up with 1.


Clicking new button in browser result in 1 number being skipped


Clicking on submit, 1 number will be missing since the record list will be displayed


Clicking on save, no number is missing if you click on Create New moduel in the SDLC application right afterwards.