Payment Entry Error

While using Payment Entry for entering a payment after selecting Party Type as Customer, when I click on the Party field it throws up this error. I have user permission setting configured for Customer Group.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 56, 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 42, in execute_cmd
ret =, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 12, in search_link
search_widget(doctype, txt, query, searchfield=searchfield, page_len=page_len, filters=filters)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 38, in search_widget
searchfield, start, page_len, filters)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/”, line 34, in search_widget
searchfield, start, page_len, filters, as_dict=as_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/selling/doctype/customer/”, line 163, in get_customer_list
(“%%%s%%” % txt, “%%%s%%” % txt, “%%%s%%” % txt, “%%%s%%” % txt, start, page_len))
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 138, 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: float argument required, not str

@keshav, can not replicate can you share the permissions set on the Customer Group ?

Here is the screenshot for Customer Group permissions

Here is also the permission applied on Customer

I have a Customer Group named as “D 35% Group” which has a few customers tagged to it.
Wondering if the % character in the group name could be the cause of the error?