Error at saving custom made doctype

Traceback (most recent call last):
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 230, in save
return self._save(*args, **kwargs)
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 266, in _save
self._validate()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 405, in _validate
self._sanitize_content()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/base_document.py”, line 642, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype==‘Text Editor’)
AttributeError: ‘NoneType’ object has no attribute ‘fieldtype’

Traceback (most recent call last):
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/init.py”, line 922, in call
return fn(*args, **newargs)
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 230, in save
return self._save(*args, **kwargs)
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 266, in _save
self._validate()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/document.py”, line 405, in _validate
self._sanitize_content()
File “/home/frappe/benches/bench-2017-07-26/apps/frappe/frappe/model/base_document.py”, line 642, in _sanitize_content
sanitized_value = sanitize_html(value, linkify=df.fieldtype==‘Text Editor’)
AttributeError: ‘NoneType’ object has no attribute ‘fieldtype’

Seems to be working fine in test account. Try reloading the instance.
Which version you are on?

Sorry fro the late reply.

we are in latest version of ERPNext. :slight_smile: