BOM Submit Hangs on submitting

Hi,

On submitting BOM the system hangs on submitting untill the page is refreshed, the submission is made

please review the issue

Getting same issue when cancelling BOM, it hangs & the page needs to be refreshed

@zeeshan_shafqat,

Can you please share the console’s error log ?

Thanks,
Makarand

I do not know how to do that?

Right click on BOM page and select the option Inspect then switch to console tab. Then Copy paste the error traceback

{“message”:{“open_count_doctype”:{“Lead”:0,“Request for Quotation”:0,“Material Request”:0,“Sales Invoice”:0,“BOM”:1,“Supplier”:0,“Payment Entry”:0,“ToDo”:0,“Error Log”:0,“Issue”:0,“Timesheet”:0,“Purchase Receipt”:0,“Supplier Quotation”:0,“Job Applicant”:0,“Purchase Invoice”:0,“Stock Entry”:0,“Quotation”:0,“Customer”:1,“Production Order”:0,“Task”:0,“Purchase Order”:0,“Project”:1,“Item”:0,“Warranty Claim”:0,“Contact”:0,“Expense Claim”:0,“Leave Application”:0,“Opportunity”:0,“Delivery Note”:0,“Error Snapshot”:0,“Communication”:0,“Sales Order”:0,“Journal Entry”:0,“Event”:0},“open_count_module”:{},“open_count_other”:{“Likes”:0,“Chat”:0},“new_messages”:[]}}

Hope this is what you require

localStorage cleared
list.min.js:1729 Uncaught TypeError: Cannot read property ‘refresh’ of undefined
at Object.frappe.views.set_list_as_dirty (list.min.js:1729)
at Socket. (desk.min.js:5984)
at Socket.Emitter.emit (libs.min.js:2284)
at Socket.onevent (libs.min.js:1828)
at Socket.onpacket (libs.min.js:1786)
at Manager. (libs.min.js:2146)
at Manager.Emitter.emit (libs.min.js:2284)
at Manager.ondecoded (libs.min.js:1344)
at Decoder. (libs.min.js:2146)
at Decoder.Emitter.emit (libs.min.js:2284)
list.min.js:1729 Uncaught TypeError: Cannot read property ‘refresh’ of undefined
at Object.frappe.views.set_list_as_dirty (list.min.js:1729)
at Socket. (desk.min.js:6006)
at Socket.Emitter.emit (libs.min.js:2284)
at Socket.onevent (libs.min.js:1828)
at Socket.onpacket (libs.min.js:1786)
at Manager. (libs.min.js:2146)
at Manager.Emitter.emit (libs.min.js:2284)
at Manager.ondecoded (libs.min.js:1344)
at Decoder. (libs.min.js:2146)
at Decoder.Emitter.emit (libs.min.js:2284)
2desk.min.js:9246 price_list_rate: could not find docfield in method precision()
desk.min.js:9246 base_price_list_rate: could not find docfield in method precision()
desk.min.js:9246 net_rate: could not find docfield in method precision()
desk.min.js:9246 base_net_rate: could not find docfield in method precision()
desk.min.js:9246 net_amount: could not find docfield in method precision()
desk.min.js:9246 base_net_amount: could not find docfield in method precision()
desk.min.js:9246 total: could not find docfield in method precision()
desk.min.js:9246 base_total: could not find docfield in method precision()
desk.min.js:9246 net_total: could not find docfield in method precision()
desk.min.js:9246 base_net_total: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_deducted: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_deducted: could not find docfield in method precision()
2desk.min.js:9246 total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 base_total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 grand_total: could not find docfield in method precision()
desk.min.js:9246 base_grand_total: could not find docfield in method precision()
2desk.min.js:9246 price_list_rate: could not find docfield in method precision()
desk.min.js:9246 base_price_list_rate: could not find docfield in method precision()
desk.min.js:9246 net_rate: could not find docfield in method precision()
desk.min.js:9246 base_net_rate: could not find docfield in method precision()
desk.min.js:9246 net_amount: could not find docfield in method precision()
desk.min.js:9246 base_net_amount: could not find docfield in method precision()
desk.min.js:9246 total: could not find docfield in method precision()
desk.min.js:9246 base_total: could not find docfield in method precision()
desk.min.js:9246 net_total: could not find docfield in method precision()
desk.min.js:9246 base_net_total: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_deducted: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_deducted: could not find docfield in method precision()
2desk.min.js:9246 total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 base_total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 grand_total: could not find docfield in method precision()
desk.min.js:9246 base_grand_total: could not find docfield in method precision()
desk.min.js:9246 price_list_rate: could not find docfield in method precision()
desk.min.js:9246 base_price_list_rate: could not find docfield in method precision()
desk.min.js:9246 net_rate: could not find docfield in method precision()
desk.min.js:9246 base_net_rate: could not find docfield in method precision()
desk.min.js:9246 net_amount: could not find docfield in method precision()
desk.min.js:9246 base_net_amount: could not find docfield in method precision()
desk.min.js:9246 total: could not find docfield in method precision()
desk.min.js:9246 base_total: could not find docfield in method precision()
desk.min.js:9246 net_total: could not find docfield in method precision()
desk.min.js:9246 base_net_total: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_added: could not find docfield in method precision()
desk.min.js:9246 taxes_and_charges_deducted: could not find docfield in method precision()
desk.min.js:9246 base_taxes_and_charges_deducted: could not find docfield in method precision()
2desk.min.js:9246 total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 base_total_taxes_and_charges: could not find docfield in method precision()
desk.min.js:9246 grand_total: could not find docfield in method precision()
desk.min.js:9246 base_grand_total: could not find docfield in method precision()
list.min.js:1729 Uncaught TypeError: Cannot read property ‘refresh’ of undefined
at Object.frappe.views.set_list_as_dirty (list.min.js:1729)
at Socket. (desk.min.js:5984)
at Socket.Emitter.emit (libs.min.js:2284)
at Socket.onevent (libs.min.js:1828)
at Socket.onpacket (libs.min.js:1786)
at Manager. (libs.min.js:2146)
at Manager.Emitter.emit (libs.min.js:2284)
at Manager.ondecoded (libs.min.js:1344)
at Decoder. (libs.min.js:2146)
at Decoder.Emitter.emit (libs.min.js:2284)
list.min.js:1729 Uncaught TypeError: Cannot read property ‘refresh’ of undefined
at Object.frappe.views.set_list_as_dirty (list.min.js:1729)
at HTMLDocument. (list.min.js:1724)
at HTMLDocument.dispatch (jquery.min.js:3)
at HTMLDocument.$event.dispatch (report.min.js:2921)
at HTMLDocument.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:4)
at HTMLDocument. (jquery.min.js:4)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at n.fn.init.trigger (jquery.min.js:4)
list.min.js:1729 Uncaught TypeError: Cannot read property ‘refresh’ of undefined
at Object.frappe.views.set_list_as_dirty (list.min.js:1729)
at Socket. (desk.min.js:6006)
at Socket.Emitter.emit (libs.min.js:2284)
at Socket.onevent (libs.min.js:1828)
at Socket.onpacket (libs.min.js:1786)
at Manager. (libs.min.js:2146)
at Manager.Emitter.emit (libs.min.js:2284)
at Manager.ondecoded (libs.min.js:1344)
at Decoder. (libs.min.js:2146)
at Decoder.Emitter.emit (libs.min.js:2284)
firebug-lite.js:11883 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
fetchResource @ firebug-lite.js:11883
pixel_transparent.gif Failed to load resource: the server responded with a status of 404 (Not Found)
firebug-lite.js:30396 ‘window.webkitStorageInfo’ is deprecated. Please use ‘navigator.webkitTemporaryStorage’ or ‘navigator.webkitPersistentStorage’ instead.
getMembers @ firebug-lite.js:30396
firebug-lite.js:30396 ‘webkitIndexedDB’ is deprecated and will be removed in M57, around March 2017. Please use ‘indexedDB’ instead. See Chrome Platform Status for more details.
getMembers @ firebug-lite.js:30396
firebug-lite.js:15683 ‘Performance.onwebkitresourcetimingbufferfull’ is deprecated. Please use ‘Performance.onresourcetimingbufferfull’ instead.
propIterator @ firebug-lite.js:15683

I found same issue. Created issue per below

https://github.com/frappe/erpnext/issues/8519