You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relevant log output / Stack trace / Full Error Message.
Executing erpnext.patches.v14_0.update_closing_balances #20-12-2024 in postgres-testing.8848digitalerp.com (_77dc9ea0c285f060)'Syntax error in query:\nselect "name"\n\t\t\tfrom "tabPeriod Closing Voucher"\n\t\t\twhere "tabPeriod Closing Voucher"."docstatus" = \'1\' and "tabPeriod Closing Voucher"."company" = \'Jio Financial Services Limited\' and coalesce("tabPeriod Closing Voucher"."period_end_date", \'\'0001-01-01\'\') <\'2024-12-31\'\n\t\t\t\n\t\t\t order by period_end_date desc\n\t\t\tlimit 1 offset 0 'Queued rebuilding of search index for postgres-testing.8848digitalerp.comTraceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module> main() File "/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main click.Group(commands=commands)(prog_name="bench") File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/ubuntu/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func ret = f(frappe._dict(ctx.obj), *args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/site.py", line 686, in migrate SiteMigration( File "/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py", line 186, in run self.run_schema_updates() File "/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py", line 52, in wrapper raise e File "/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py", line 44, in wrapper ret = method(*args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py", line 121, in run_schema_updates frappe.modules.patch_handler.run_all( File "/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 76, in run_all run_patch(patch) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 62, in run_patch if not run_single(patchmodule=patch): File "/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 152, in run_single return execute_patch(patchmodule, method, methodargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 188, in execute_patch _patch() File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v14_0/update_closing_balances.py", line 24, in execute process_grouped_pcvs(list(pcvs), gl_entries) File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v14_0/update_closing_balances.py", line 74, in process_grouped_pcvs make_closing_entries(closing_entries, pcv_doc.name, pcv_doc.company, pcv_doc.period_end_date) File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account_closing_balance/account_closing_balance.py", line 43, in make_closing_entries previous_closing_entries = get_previous_closing_entries(company, closing_date, accounting_dimensions) File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account_closing_balance/account_closing_balance.py", line 114, in get_previous_closing_entries last_period_closing_voucher = frappe.db.get_all( File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database/database.py", line 760, in get_all return frappe.get_all(*args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 2015, in get_all return get_list(doctype, *args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 1990, in get_list return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/db_query.py", line 193, in execute result = self.build_and_run() File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/db_query.py", line 237, in build_and_run return frappe.db.sql( File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database/postgres/database.py", line 326, in sql return super().sql(modify_query(query), modify_values(values), *args, **kwargs) File "/home/ubuntu/frappe-bench/apps/frappe/frappe/database/database.py", line 230, in sql self._cursor.execute(query, values)psycopg2.errors.SyntaxError: syntax error at or near "0001"LINE 3: ...("tabPeriod Closing Voucher"."period_end_date", ''0001-01-01...
The text was updated successfully, but these errors were encountered:
Information about bug
facing Issue during Migration
Module
other
Version
ERPNext: v15.50.0 (pre-dev)
Installation method
None
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: