There seems to be an issue with data import in ERPNext v14.0.0. As this was working fine with v13.5, this happened somewhere in the current release. This is on a self-hosted solution, and seems to affect any document type:
-
Create a data import for any document type. Choose either Insert New Records or Update existing records.
-
Click on the Download Template button in the next window. Nothing happens, and there is an error in the Javascript console:
Unable to handle success response
Object { message: (1) […] }
request.js:282:12
console.trace() TypeError: (intermediate value)[e] is not a function
update_record_count_message Purchase Order Import on 2022-04-22 09:15:30.539064 line 350 > injectedScript:64
make_dialog Purchase Order Import on 2022-04-22 09:15:30.539064 line 350 > injectedScript:51
Purchase Order Import on 2022-04-22 09:15:30.539064 line 350 > injectedScript:51
with_doctype model.js:134
Purchase Order Import on 2022-04-22 09:15:30.539064 line 350 > injectedScript:51
download_template data_import__js:224
require assets.js:17
eval_assets assets.js:95
execute assets.js:78
callback assets.js:129
e request.js:83
200 request.js:127
call request.js:279
jQuery 6
call request.js:253
call request.js:103
fetch assets.js:119
execute assets.js:77
require assets.js:15
require assets.js:14
download_template data_import__js:223
f script_manager.js:30
s script_manager.js:108
trigger script_manager.js:126
promise callbackfrappe.run_serially/< dom.js:265
run_serially dom.js:263
trigger script_manager.js:140
onclick button.js:25
input button.js:15
jQuery 8
make_input button.js:14
t base_input.js:60
refresh_input base_input.js:87
refresh base_control.js:113
attach_doc_and_docfields layout.js:410
refresh layout.js:283
refresh_fields form.js:609
render_form form.js:549
promise callbackfrappe.run_serially/< dom.js:265
run_serially dom.js:263
render_form form.js:541
initialize_new_doc form.js:510
promise callback*initialize_new_doc form.js:507
trigger_onload form.js:485
refresh form.js:382
render formview.js:108
show_doc formview.js:74
make_and_show formview.js:32
make formview.js:15
with_doctype model.js:134
make formview.js:12
show factory.js:25
render_page router.js:224
render router.js:203
route router.js:113
push_state router.js:376
set_route router.js:272
set_route router.js:266
set_route router.js:448
setup quick_entry.js:41
with_doctype model.js:134
setup quick_entry.js:32
setup quick_entry.js:31
make_quick_entry quick_entry.js:18
new_doc create_new.js:419
with_doctype model.js:134
new_doc create_new.js:412
new_doc create_new.js:408
make_new_doc list_view.js:270
setup_new_doc_event list_view.js:1294
jQuery 2
request.js:283:12
call request.js:283
jQuery 6
call request.js:253
call request.js:103
fetch assets.js:119
execute assets.js:77
require assets.js:15
require assets.js:14
download_template data_import__js:223
f script_manager.js:30
s script_manager.js:108
trigger script_manager.js:126
(Async: promise callback)
run_serially dom.js:265
run_serially dom.js:263
trigger script_manager.js:140
onclick button.js:25
input button.js:15
jQuery 8
make_input button.js:14
t base_input.js:60
refresh_input base_input.js:87
refresh base_control.js:113
attach_doc_and_docfields layout.js:410
refresh layout.js:283
refresh_fields form.js:609
render_form form.js:549
(Async: promise callback)
run_serially dom.js:265
run_serially dom.js:263
render_form form.js:541
initialize_new_doc form.js:510
(Async: promise callback)
initialize_new_doc form.js:507
trigger_onload form.js:485
refresh form.js:382
render formview.js:108
show_doc formview.js:74
make_and_show formview.js:32
make formview.js:15
with_doctype model.js:134
make formview.js:12
show factory.js:25
render_page router.js:224
render router.js:203
route router.js:113
push_state router.js:376
set_route router.js:272
set_route router.js:266
set_route router.js:448
setup quick_entry.js:41
with_doctype model.js:134
setup quick_entry.js:32
setup quick_entry.js:31
make_quick_entry quick_entry.js:18
new_doc create_new.js:419
with_doctype model.js:134
new_doc create_new.js:412
new_doc create_new.js:408
make_new_doc list_view.js:270
setup_new_doc_event list_view.js:1294
jQuery 2 -
Uncollapsing the top line:
Unable to handle success response
Object { message: (1) […] }
gives the following. The relevant error seems to be: "“Sortable.js requires a window with a document”. Unfortunately, this is beyond my understanding to try and address.
Object { message: (1) […] }
message: Array [ “(()=>{var Ii=Object.create;var Pt=Object.defineProperty;var $i=Object.getOwnPropertyDescriptor;var Ei=Object.getOwnPropertyNames;var Di=Object.getPrototypeOf,Hi=Object.prototype.hasOwnProperty;var jt=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Mi=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ei(e))!Hi.call(o,n)&&n!==t&&Pt(o,n,{get:()=>e[n],enumerable:!(i=$i(e,n))||i.enumerable});return o};var ki=(o,e,t)=>(t=o!=null?Ii(Di(o)):{},Mi(e||!o||!o.__esModule?Pt(t,"default",{value:o,enumerable:!0}):t,o));var zt=jt((ls,ze)=>{(function(e){"use strict";typeof define=="function"&&define.amd?define(e):typeof ze!="undefined"&&typeof ze.exports!="undefined"?ze.exports=e():window.Sortable=e()})(function(){"use strict";if(typeof window=="undefined"||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,i,n,s,d,h,f,g,x,b,w,S,R,v=[],E=!1,M=!1,W=!1,F=[],q,P,D,V,j,ne,re,be,ve=!1,De=!1,he,He,vt,ce,yt=/\s+/g,U="S…” ]
Thanks.
Regards,
Gora