Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
Last activity: 14 Jun 2018 10:07 EDT
error in your SQL syntax; check the manual that corresponds to your MySQL server version
I'm getting exception in report definition, My properties mapped into external mysql DB, When i was run the report definition, this exception occurred
I'm getting exception in report definition, My properties mapped into external mysql DB, When i was run the report definition, this exception occurred
"
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
Hi,
This error can have multiple causes. Please refer.
https://www.inmotionhosting.com/support/website/database-troubleshooting/error-1064
Also, see the query in tracer(enable DB query in settings) and run it directly from the database. Also, post the complete query here so that we can look into it.
Regards,
Rachit
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
this is the query SELECT "PC0".`customerid` AS "customerid" , "PC0".`customername` AS "customername" FROM TELECOMMUNICATION.bsstest "PC0"
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
Did you check- what happens when you run his query directly from the database. Can you please check if these columns/schema/tables ( customerid/customername/TELECOMMUNICATION/bsstest ) exists as query seems to be correct.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
I have run that query directly from the Mysql DB, same exception occurred in mysql DB , Exception is
"SELECT "PC0".`customerid` AS "customerid" , "PC0".`customername` AS "customername" FROM TELECOMMUNICATION.bsstest "PC0" Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`customerid` AS "customerid" , "PC0".`customername` AS "customername" FROM TELE' at line 1 0.047 sec"
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
can you please check if "customername" and other columns exist and mapping is proper. Also, check if all the columns are in lower case i.e check case sensitivity. I actually prepared some sample data and ran a similar query and it seems to be working. The problem seems to be at db end.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
i'm using Mysql latest version ,i think this issue due to latest version, it's not support some old syntax . Here Attached with Screen shoot
-
Lakindu Kariyawasam
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
In this query "pc0".customerid , without alias with double quotes around it working fine, pc0.customerid
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
Probably you can take help of DBA to address this issue. As said earlier, it does not seems to be an issue with PRPC.
-
Aditya Pandey
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689877000/122ddbf9-8ed7-431e-8c0c-0892f658c39d.png?itok=HwmzfVHs)
Pegasystems Inc.
US
What is the version of mysql with which you are facing this issue?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
Version of the mysql server is 8.0.11(Mysql community server - GPL)
-
Andreas Hubenthal
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge DPA
IN
Hi
If the query copied is the exact the same then probably the issue is with single quotes, it seems to be different,
' or `.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/279431c2-4b2c-45cf-9ef5-6613cd270b4f.jpg?itok=EZMdvnfl)
Virtusa
LK
query is not working with (double quotes) "pc0".customerid but query is working correctly without (double quotes) pc0.customerid