While saving it give error

when i save data it give below error:

Traceback (most recent call last):
File “/home/kinzang/erp/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/kinzang/erp/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/kinzang/erp/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/kinzang/erp/apps/frappe/frappe/init.py”, line 879, in call
return fn(*args, **newargs)
File “/home/kinzang/erp/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/kinzang/erp/apps/frappe/frappe/model/document.py”, line 242, in save
return self._save(*args, **kwargs)
File “/home/kinzang/erp/apps/frappe/frappe/model/document.py”, line 262, in save
self.insert()
File “/home/kinzang/erp/apps/frappe/frappe/model/document.py”, line 207, in insert
self.set_new_name()
File “/home/kinzang/erp/apps/frappe/frappe/model/document.py”, line 333, in set_new_name
set_new_name(self)
File “/home/kinzang/erp/apps/frappe/frappe/model/naming.py”, line 45, in set_new_name
frappe.throw(
("{0} is required").format(doc.meta.get_label(fieldname)))
File “/home/kinzang/erp/apps/frappe/frappe/model/meta.py”, line 120, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’

please help me

Can you please provide some more details as to what are you saving? Does the doctype that you try to save have a “label” field? Did you do customisations?

@lasalesi,

i have doctype called “Employee Appraisal”. so i tried to save Employee Appraisal data form , it give error .

i don’t have label field.

You can try a

bench reload-doctype “Employee Appraisal”

and/or (adjust the site1.local part if this doesn’t match your set up)

bench --site site1.local migrate

thanks, the problem is in Auto Name