Naming Series with Dynamic Date (e.g. MOD-{YYMMDD}) not resolving in ERPNext v15.63+

We’re trying to set a custom naming series pattern for the Serial No DocType using the new dynamic date function as documented:
MOD-.{date:YYMMDD}.#####
Our goal is to generate serial numbers like:
MOD-250620-00001
However, the system either:

  • Saves the literal {date:YYMMDD} as part of the name, or

  • Throws an “Invalid naming series” error.

We’re running:

  • ERPNext v15.63.0

  • Frappe v15.69.2

Has anyone successfully used {date} substitution in naming series in ERPNext 15? Is there a different syntax or hidden requirement to make it work?

The example is given in “Naming Settings“ DocType.

There is no need to specify date. You need to wrap each side of the date component with a period.

Your desired output should be written as:

MOD-.YY..MM..DD.-#####

This will use today’s date.

If you want to use a specific date field, you’ll have to create a custom field that coverts the date field into YYMMDD format and use that field’s content in your naming scheme using expressions.