Error aftre bench update last version

aftre update to latest version all reports (script reports) gives me this error :

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 40, in execute_cmd
ret =, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 897, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 93, in run
res = frappe.get_attr(method_name)(frappe._dict(filters))
File “/home/frappe/frappe-bench/apps/sdxenergy_management/sdxenergy_management/sdxenergy_management/report/flow_rate_graph/”, line 31, in execute
group by date order by date desc’‘’, (filters.from_date, filters.to_date))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 137, in sql
self._cursor.execute(query, values)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 187, in execute
query = query % tuple([db.literal(item) for item in args])
TypeError: format requires a mapping

Installed Apps

ERPNext: v7.2.21

Frappe Framework: v7.2.17

Sdxenergy Management: v0.0.1

any idea community

Is sdxenergy_management opensource because it appears the bug is part of that plugin

Looks like some query issue. Can you try to troubleshoot the query on file.

its working before the update after i launch it raise this error
normaly i deplicate the same formula as mins to respond report in opportunity doctype