Add Custom doc to Form

Whenever i add a custom doc(also a form) in Form Customization → Supplier Form, in form of a table(i need multiple values, that’s why table)…i get following error -

Server Error: Please check your server logs or contact tech support.

Traceback (innermost last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
self.insert()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 187, in insert
self.set_new_name()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 283, in set_new_name
set_new_name(d)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/naming.py”, line 40, in set_new_name
frappe.throw(_(“{0} is required”).format(doc.meta.get_label(fieldname)))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/meta.py”, line 100, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’

Traceback (innermost last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/app.py”, line 70, in application
response = frappe.handler.handle()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 75, in handle
execute_cmd(cmd)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 109, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 777, in call
return fn(*args, **newargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
self.insert()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 187, in insert
self.set_new_name()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 283, in set_new_name
set_new_name(d)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/naming.py”, line 40, in set_new_name
frappe.throw(_(“{0} is required”).format(doc.meta.get_label(fieldname)))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/meta.py”, line 100, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’

whereas if i use predefind link as table(such as brand), it works successfully.
What am i missing in creating a new form for the addition of multiple values.

Have you checked “Is Table” in your custom doc?

“Is Child Table” option is checked, i cannot find ant other relevant option related to table, thnx in advance

Seems like you have not set valid fieldname in autoname of your custom doc.

thanks, that error is solved…:smile:
but a new problem is there, if i try to import a csv file it shows this error to all rows :

Import Failed

Error for row (#21) “Anil Traders” : ‘NoneType’ object has no attribute ‘append’

I added few data in the supplier, exported the file(downloaded it) and filled the required data as in the field, while importing(uploading), I am getting this error in import logs.
again thanks in adv.