Server Error
Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 115, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1768, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: get_preview_from_template() missing 1 required positional argument: ‘data_import’
Which docType are you trying to import?
What does your import file look like (headers only)?
Doctype - User
Import file is excel and there is no problem on that because it’s working in local but not in live
in frappe log file i am getting this
Form Dict: {‘cmd’: ‘frappe.core.doctype.data_import.data_import.form_start_import’}
2024-06-21 11:17:51,432 ERROR frappe New Exception collected in error log
DocType User is not enabled for import in v14 and v15 by default. Customizing Core doctype is not permitted out of the box either. I’m curious how you were able to choose “User” as the docType on the import screen.