Hello I just switch from EPRNEXT 13 to 14 with not too much difficulty, i’ve installed the Insight Application, it’s all good but when i try to create a query i get this
App Versions
{
"erpnext": "14.46.3",
"frappe": "14.54.0",
"hrms": "16.0.0-dev",
"insights": "1.1.3",
"payments": "0.0.1"
}
Route
Form/Insights Query/new-insights-query-cqmvhlicbq
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 95, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 47, 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 1622, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 35, in savedocs
send_updated_docs(doc)
File "apps/frappe/frappe/desk/form/save.py", line 60, in send_updated_docs
d = doc.as_dict()
File "apps/frappe/frappe/model/base_document.py", line 432, in as_dict
doc = self.get_valid_dict(convert_dates_to_str=convert_dates_to_str, ignore_nulls=no_nulls)
File "apps/frappe/frappe/model/base_document.py", line 333, in get_valid_dict
value = getattr(self, fieldname)
File "apps/insights/insights/insights/doctype/insights_query/insights_query.py", line 72, in results_row_count
return len(CachedResults.get(self.name))
TypeError: object of type 'NoneType' has no len()
Request Data
{
"type": "POST",
"args": {
"doc": "{\"docstatus\":0,\"doctype\":\"Insights Query\",\"name\":\"new-insights-query-cqmvhlicbq\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"navettegiani@logia-inc.com\",\"status\":\"Pending Execution\",\"is_native_query\":1,\"is_assisted_query\":0,\"is_saved_as_table\":0,\"is_script_query\":0,\"is_stored\":1,\"filters\":\"{\\n\\t\\\"type\\\": \\\"LogicalExpression\\\",\\n\\t\\\"operator\\\": \\\"&&\\\",\\n\\t\\\"level\\\": 1,\\n\\t\\\"position\\\": 1,\\n\\t\\\"conditions\\\": []\\n}\",\"limit\":500,\"json\":\"{}\",\"title\":\"Giani\",\"data_source\":\"Logia Space\",\"transforms\":[{\"docstatus\":0,\"doctype\":\"Insights Query Transform\",\"name\":\"new-insights-query-transform-uvqgkduace\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"navettegiani@logia-inc.com\",\"type\":\"Pivot\",\"options\":\"{}\",\"parent\":\"new-insights-query-cqmvhlicbq\",\"parentfield\":\"transforms\",\"parenttype\":\"Insights Query\",\"idx\":1,\"__unedited\":true}],\"variables\":[{\"docstatus\":0,\"doctype\":\"Insights Query Variable\",\"name\":\"new-insights-query-variable-gaqdhhgubl\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"navettegiani@logia-inc.com\",\"parent\":\"new-insights-query-cqmvhlicbq\",\"parentfield\":\"variables\",\"parenttype\":\"Insights Query\",\"idx\":1,\"__unedited\":false,\"variable_name\":\"A\",\"variable_value\":\"2\"}]}",
"action": "Save"
},
"btn": {
"jQuery360045736467078109631": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 725,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs"
}
Response Data
{
"docinfo": {
"user_info": {},
"comments": [],
"shared": [],
"assignment_logs": [],
"attachment_logs": [],
"info_logs": [],
"like_logs": [],
"workflow_logs": [],
"doctype": "Insights Query",
"name": "QRY-0662",
"attachments": [],
"communications": [],
"automated_messages": [],
"total_comments": 0,
"versions": [],
"assignments": [],
"permissions": {
"if_owner": {},
"has_if_owner_enabled": false,
"select": 0,
"read": 1,
"write": 1,
"create": 1,
"delete": 1,
"submit": 0,
"cancel": 0,
"amend": 0,
"print": 1,
"email": 1,
"report": 1,
"import": 0,
"export": 1,
"set_user_permissions": 0,
"share": 1
},
"views": [],
"energy_point_logs": [],
"additional_timeline_content": [],
"milestones": [],
"is_document_followed": null,
"tags": "",
"document_email": null
},
"exception": "TypeError: object of type 'NoneType' has no len()"
}
Is there something to do, i am on ubuntu 20.04 so maybe it"s that, thank for your support !