when I added any number in Standard Rate and try to save give me this error!!
I can’t find it!
but if it empty Ok.
How can I solve it ?
but if it empty Ok.
How can I solve it ?
{
"erpnext": "15.25.0",
"frappe": "15.28.0",
"hrms": "15.21.2",
"lms": "1.0.0",
"prospera_app": "0.0.1"
}
Form/Property Matching/Item A
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)
File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 337, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 372, in _save
self._validate_links()
File "apps/frappe/frappe/model/document.py", line 924, in _validate_links
result = d.get_invalid_links(is_submittable=self.meta.is_submittable)
File "apps/frappe/frappe/model/base_document.py", line 807, in get_invalid_links
values = frappe.db.get_value(doctype, docname, values_to_fetch, as_dict=True)
File "apps/frappe/frappe/database/database.py", line 519, in get_value
result = self.get_values(
File "apps/frappe/frappe/database/database.py", line 623, in get_values
out = self._get_values_from_table(
File "apps/frappe/frappe/database/database.py", line 896, in _get_values_from_table
return query.run(as_dict=as_dict, debug=debug, update=update, run=run, pluck=pluck)
File "apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query
result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep
File "apps/frappe/frappe/database/database.py", line 234, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 558, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 822, in _read_query_result
result.read()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1200, in read
first_packet = self.connection._read_packet()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 772, in _read_packet
packet.raise_for_error()
File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'custom_item_price' in 'field list'")
{
"type": "POST",
"args": {
"doc": "{\"name\":\"Item A\",\"owner\":\"Administrator\",\"creation\":\"2024-10-16 16:06:42.149197\",\"modified\":\"2024-10-17 13:46:17.360627\",\"modified_by\":\"Administrator\",\"docstatus\":0,\"idx\":0,\"name1\":\"Item A\",\"property_type\":\"Apartment\",\"budget_from\":10000,\"budget_to\":1500000,\"bedrooms\":3,\"bathrooms\":2,\"preferred_location_1\":\"Nasr El Nuba\",\"preferred_location_2\":\"\",\"preferred_location_3\":\"\",\"doctype\":\"Property Matching\",\"table_sslb\":[{\"docstatus\":0,\"doctype\":\"Item Matching\",\"name\":\"new-item-matching-inxuhwzcqh\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"reserved\":0,\"parent\":\"Item A\",\"parentfield\":\"table_sslb\",\"parenttype\":\"Property Matching\",\"idx\":1,\"item_name\":\"012 st\",\"item_price\":10000,\"street_address\":\"012658\",\"status\":\"Available\"},{\"docstatus\":0,\"doctype\":\"Item Matching\",\"name\":\"new-item-matching-sezcxrbrip\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"Administrator\",\"reserved\":0,\"parent\":\"Item A\",\"parentfield\":\"table_sslb\",\"parenttype\":\"Property Matching\",\"idx\":2,\"item_name\":\"appartment\",\"item_price\":10000,\"street_address\":\"15 main street apartment \",\"status\":\"Available\"}],\"__last_sync_on\":\"2024-10-17T11:01:35.257Z\",\"__unsaved\":1}",
"action": "Save"
},
"btn": {
"jQuery370065016280837380781": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 1639,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs",
"request_id": null
}
{
"exception": "pymysql.err.OperationalError: (1054, \"Unknown column 'custom_item_price' in 'field list'\")",
"exc_type": "OperationalError"
}
Check the Field of Item Price Doctype in “Customize Form”
Add a field name as “Item Price”