Naming Series not generating in sequence (skipping numbers) in Therapy Plan and custom Doctype

Hi,
I am facing an issue with naming series in ERPNext / Frappe.

The naming series is not generating in proper sequence.
For example:

  • Last created document → ITH-001

  • Next document should be → ITH-002

  • But it creates → ITH--004

Numbers are skipping and sometimes double dash is also coming.

This issue happens in:

  • Therapy Plan Doctype

  • My Custom Doctype (naming series enabled)

What I checked:

  • Naming series is set correctly in Doctype

  • autoname = naming_series

  • No manual name given

Expected behavior:

Sequential numbering like:
ITH-001
ITH-002
ITH-003

Actual behavior:

ITH-001
ITH–004
ITH-007

Question:

Why naming series skipping numbers?
Is there any cache / concurrency / rollback issue in Frappe naming series?

Referencing a similar question - Naming series skipping values

can you update to latest version and try to create new records?

1 Like