Data import issue in designation doc

Status is showing pending after clicking start import also. , while inspect in api response it’s showing message {false}

I took excel file from template only and even it’s working properly in my location but not in live

Perhaps this is a browser issue? Have you tried via computer rather than mobile?

i tried in both and different browser also

error i am getting like ===

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 argu

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: form_start_import() missing 1 required positional argument: ‘data_import’

Kindly upgrade your version 15 because everything is working fine. No problems were encountered in the latest version 15.

Please check it.

Installed Apps

ERPNext: v15.27.1 (version-15)

Frappe Framework: v15.29.1 (version-15)

Frappe HR: v15.22.1 (version-15)

Should i run bench update ??

because my app version is 15 only

first take backup then run the bench update

1 Like

Hi @NCP i am getting this ,i run bench update after that i am getting this

@NCP should i try this Data Import-The scheduler is inactive

Yes … !

@NCP i tried but still same issue i run maintainance mode on then after i run all command

Still showing schedular is inactive

Go to the common_site_config.json

frappe-bench: cd sites

nano common_site_config.json

if “pause_scheduler”: 1 then set it to 0.

"pause_scheduler": 0

@NCP i did that also

no error and api is also showing success message but still data import is not working it showing pending

Schedular inactive error gone but why data is not importing

my log file

in my :“local” server message is coming for this api
"api/method/frappe.core.doctype.data_import.data_import.form_start_import
" BUT not coming in live

in frappe log 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