On ERPNext Cloud
Environment :
ERPNext: v10.1.37 (master)
Frappe Framework: v10.1.36 (master)
When i try to save invoice it throws error
Below is the trace :
Traceback (most recent call last):
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 259, in save
return self._save(*args, **kwargs)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 282, in _save
self.insert()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 220, in insert
self._validate_links()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 720, in _validate_links
result = d.get_invalid_links(is_submittable=self.meta.is_submittable)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/base_document.py", line 460, in get_invalid_links
values_to_fetch, as_dict=True)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 443, in get_value
order_by, cache=cache)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 487, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 619, in _get_values_from_table
as_dict=as_dict, debug=debug, update=update)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 166, in sql
self._cursor.execute(query, values)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1103, in _read_query_result
result.read()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1059, in _read_packet
packet.check_error()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error
err.raise_mysql_exception(self._data)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column 'variant_of ' in 'field list'")
Traceback (most recent call last):
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/app.py", line 62, in application
response = frappe.handler.handle()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/handler.py", line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/__init__.py", line 939, in call
return fn(*args, **newargs)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 259, in save
return self._save(*args, **kwargs)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 282, in _save
self.insert()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 220, in insert
self._validate_links()
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/document.py", line 720, in _validate_links
result = d.get_invalid_links(is_submittable=self.meta.is_submittable)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/model/base_document.py", line 460, in get_invalid_links
values_to_fetch, as_dict=True)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 443, in get_value
order_by, cache=cache)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 487, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 619, in _get_values_from_table
as_dict=as_dict, debug=debug, update=update)
File "/home/frappe/benches/bench-2018-06-06/apps/frappe/frappe/database.py", line 166, in sql
self._cursor.execute(query, values)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 893, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1103, in _read_query_result
result.read()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1396, in read
first_packet = self.connection._read_packet()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 1059, in _read_packet
packet.check_error()
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/connections.py", line 384, in check_error
err.raise_mysql_exception(self._data)
File "/home/frappe/benches/bench-2018-06-06/env/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column 'variant_of ' in 'field list'")
Steps to regenerate error :
- Create Sales Invoice with any Item
- Save Sales Invoice