Hello, I am having issue when saving a doctype. I set its naming series earlier and it was working fine, however, after some changes it stopped working normally with the following issue.
09:19:31 web.1 | Traceback (most recent call last):
09:19:31 web.1 | File "apps/frappe/frappe/app.py", line 94, in application
09:19:31 web.1 | response = frappe.api.handle()
09:19:31 web.1 | File "apps/frappe/frappe/api.py", line 54, in handle
09:19:31 web.1 | return frappe.handler.handle()
09:19:31 web.1 | File "apps/frappe/frappe/handler.py", line 47, in handle
09:19:31 web.1 | data = execute_cmd(cmd)
09:19:31 web.1 | File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
09:19:31 web.1 | return frappe.call(method, **frappe.form_dict)
09:19:31 web.1 | File "apps/frappe/frappe/__init__.py", line 1619, in call
09:19:31 web.1 | return fn(*args, **newargs)
09:19:31 web.1 | File "apps/frappe/frappe/desk/form/save.py", line 28, in savedocs
09:19:31 web.1 | doc.save()
09:19:31 web.1 | File "apps/frappe/frappe/model/document.py", line 305, in save
09:19:31 web.1 | return self._save(*args, **kwargs)
09:19:31 web.1 | File "apps/frappe/frappe/model/document.py", line 327, in _save
09:19:31 web.1 | return self.insert()
09:19:31 web.1 | File "apps/frappe/frappe/model/document.py", line 254, in insert
09:19:31 web.1 | self.set_new_name(set_name=set_name, set_child_names=set_child_names)
09:19:31 web.1 | File "apps/frappe/frappe/model/document.py", line 455, in set_new_name
09:19:31 web.1 | set_new_name(d)
09:19:31 web.1 | File "apps/frappe/frappe/model/naming.py", line 168, in set_new_name
09:19:31 web.1 | set_name_from_naming_options(autoname, doc)
09:19:31 web.1 | File "apps/frappe/frappe/model/naming.py", line 226, in set_name_from_naming_options
09:19:31 web.1 | _prompt_autoname(autoname, doc)
09:19:31 web.1 | File "apps/frappe/frappe/model/naming.py", line 547, in _prompt_autoname
09:19:31 web.1 | frappe.throw(_("Please set the document name"))
09:19:31 web.1 | File "apps/frappe/frappe/__init__.py", line 533, in throw
09:19:31 web.1 | msgprint(
09:19:31 web.1 | File "apps/frappe/frappe/__init__.py", line 501, in msgprint
09:19:31 web.1 | _raise_exception()
09:19:31 web.1 | File "apps/frappe/frappe/__init__.py", line 450, in _raise_exception
09:19:31 web.1 | raise raise_exception(msg)
09:19:31 web.1 | frappe.exceptions.ValidationError: Please set the document name
09:19:31 web.1 |
09:19:31 web.1 | 172.19.10.1 - - [08/Aug/2023 09:19:31] "POST /api/method/frappe.desk.form.save.savedocs HTTP/1.1" 417 -
I am also confused with the Document Naming rule in settings and the one just below the Doctype Setup itself.
Kindly help.