Error while sending email to supplier using Request for Quotation

App Versions

{
“erpnext”: “7.2.12”,
“frappe”: “7.2.10”,
“library_management”: “0.0.1”
}

Route

Form/Request for Quotation/RFQ-00004

Error Report

Traceback (most recent call last):
File “/home/vishnu/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py”, line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 897, in call
return fn(*args, **newargs)
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py”, line 149, in send_supplier_emails
rfq.send_to_supplier()
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py”, line 59, in send_to_supplier
self.supplier_rfq_mail(rfq_supplier, update_password_link, self.get_link())
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py”, line 130, in supplier_rfq_mail
self.send_email(data, sender, subject, message, attachments)
File “/home/vishnu/frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py”, line 135, in send_email
doctype=self.doctype, name=self.name)[“name”]
File “/home/vishnu/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 75, in make
add_attachments(comm.name, attachments)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 340, in add_attachments
[“file_name”, “file_url”, “is_private”], as_dict=1)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 411, in get_value
ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug, order_by, cache=cache)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 453, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 584, in _get_values_from_table
conditions, order_by), values, as_dict=as_dict, debug=debug, update=update)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 137, in sql
self._cursor.execute(query, values)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1064, “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 ‘: ‘\’%PDF-1.4\\n1 0 obj\\n<<\\n/Title (\xfe\xff\\0R\\0F\\0Q\\0-\\00\\00\\00\\00\’ at line 1”)

Request Data

{
“type”: “POST”,
“args”: {
“rfq_name”: “RFQ-00004”,
“cmd”: “erpnext.buying.doctype.request_for_quotation.request_for_quotation.send_supplier_emails”
},
“freeze”: true,
“url”: “/”
}

Response JSON

{}

Seems like a programming error in SQL, have you made any custom changes?