Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating insights. #167

Closed
sammish opened this issue Sep 22, 2023 · 2 comments
Closed

updating insights. #167

sammish opened this issue Sep 22, 2023 · 2 comments

Comments

@sammish
Copy link

sammish commented Sep 22, 2023

Hello Team,

I am facing the following issue while updating insights.

File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 1911, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
doctype = 'Insights Query Variable'
args = ()
kwargs = {'fields': ['name', 'parent', 'variable_value'], 'ignore_permissions': True, 'limit_page_length': 0}
frappe = <module 'frappe' from '/home/frappe/frappe-bench/apps/frappe/frappe/init.py'>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 190, in execute
self.columns = self.get_table_columns()
self = <frappe.model.db_query.DatabaseQuery object at 0x7f900d43e080>
fields = ['name', 'parent', 'variable_value']
filters = None
or_filters = None
docstatus = None
group_by = None
order_by = 'KEEP_DEFAULT_ORDERING'
limit_start = False
limit_page_length = 0
as_list = False
with_childnames = False
debug = False
ignore_permissions = True
user = None
with_comment_count = False
join = 'left join'
distinct = False
start = None
page_length = None
limit = None
ignore_ifnull = False
save_user_settings = False
save_user_settings_fields = False
update = None
add_total_row = None
user_settings = None
reference_doctype = None
run = True
strict = True
ignore_ddl = False
parent_doctype = None
pluck = None
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 533, in get_table_columns
return get_table_columns(self.doctype)
self = <frappe.model.db_query.DatabaseQuery object at 0x7f900d43e080>
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/meta.py", line 75, in get_table_columns
return frappe.db.get_table_columns(doctype)
doctype = 'Insights Query Variable'
File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 1178, in get_table_columns
raise self.TableMissingError("DocType", doctype)
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x7f900e07ef50>
doctype = 'Insights Query Variable'
columns = []
pymysql.err.ProgrammingError: ('DocType', 'Insights Query Variable')

@nextchamp-saqib
Copy link
Member

I have pushed a fix. Update to latest develop and check

@sammish
Copy link
Author

sammish commented Sep 22, 2023

Noted Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants