ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Error generating (Trial balance)


#1

Hi,

We are new to ERPnext, and we started to use financial accounts.

I added single Journal entry, and try to see the (Trial balance) afterwards, but I get this error and I hope you help me fix it :

Traceback (most recent call last):
File “/home/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe-bench/apps/frappe/frappe/handler.py”, line 20, in handle
data = execute_cmd(cmd)
File “/home/frappe-bench/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe-bench/apps/frappe/frappe/init.py”, line 1007, in call
return fn(*args, **newargs)
File “/home/frappe-bench/apps/frappe/frappe/init.py”, line 489, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File “/home/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 174, in run
result = generate_report_result(report, filters, user)
File “/home/frappe-bench/apps/frappe/frappe/desk/query_report.py”, line 65, in generate_report_result
res = frappe.get_attr(method_name)(frappe._dict(filters))
File “/home/frappe-bench/apps/erpnext/erpnext/accounts/report/trial_balance/trial_balance.py”, line 15, in execute
data = get_data(filters)
File “/home/frappe-bench/apps/erpnext/erpnext/accounts/report/trial_balance/trial_balance.py”, line 71, in get_data
filters.to_date, min_lft, max_rgt, filters, gl_entries_by_account, ignore_closing_entries=not flt(filters.with_period_closing_entry))
File “/home/frappe-bench/apps/erpnext/erpnext/accounts/report/financial_statements.py”, line 359, in set_gl_entries_by_account
as_dict=True)
File “/home/frappe-bench/apps/frappe/frappe/database/database.py”, line 154, in sql
self._cursor.execute(query, values)
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 170, in execute
result = self._query(query)
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py”, line 328, in _query
conn.query(q)
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 516, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 727, in _read_query_result
result.read()
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 1066, in read
first_packet = self.connection._read_packet()
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 683, in _read_packet
packet.check_error()
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/home/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
ProgrammingError: (1064, u"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘Application of Funds (Assets) - 4her’’, ‘‘Current Assets - 4her’’, '‘Accounts Re’ at line 3")