ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Error while cancelling and deleting sales order


#1

{
“erpnext”: “11.1.14”,
“frappe”: “11.1.14”
}
Route
List/Sales Order/List
Error Report
Traceback (most recent call last):
File “/home/vijeta/erpnext/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.api.handle()
File “/home/vijeta/erpnext/apps/frappe/frappe/api.py”, line 56, in handle
return frappe.handler.handle()
File “/home/vijeta/erpnext/apps/frappe/frappe/handler.py”, line 20, in handle
data = execute_cmd(cmd)
File “/home/vijeta/erpnext/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/vijeta/erpnext/apps/frappe/frappe/init.py”, line 1027, in call
return fn(*args, **newargs)
File “/home/vijeta/erpnext/apps/frappe/frappe/desk/doctype/bulk_update/bulk_update.py”, line 37, in submit_cancel_or_update_docs
data = frappe.parse_json(data)
File “/home/vijeta/erpnext/apps/frappe/frappe/init.py”, line 1596, in parse_json
return parse_json(val)
File “/home/vijeta/erpnext/apps/frappe/frappe/utils/init.py”, line 567, in parse_json
val = json.loads(val)
File “/usr/lib/python2.7/json/init.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
Request Data
{
“type”: “POST”,
“args”: {
“doctype”: “Sales Order”,
“action”: “cancel”,
“docnames”: “[“SAL-ORD-2019-00001”]”
},
“headers”: {},
“url”: “/api/method/frappe.desk.doctype.bulk_update.bulk_update.submit_cancel_or_update_docs”
}
Response JSON
{}


Error while cancel and deleting sales order
#2

can you kindly

  1. remove the duplicate topic from a few hours earlier?
  2. give a bit more of a context (what do you want to achieve, what did you do exactly, etc)?