Hello All,
Work around for "SQL syntax error: the token [ was not expected here" in MDO select query.
please fellow below steps:
- In select query try to select attributes one by one and execute the MDO SELECT query. While testing like this, you will get the error "SQL syntax error: the token [ was not expected here" for some attributes.
- Then, In MDO definition try to change the Attribute name which is causing error.Save the MDO definition with (Ctrl+s). Note: In this attribute name change process data will not flushed off.
- Now test the MDO select query with the attribute, which caused error. Sometimes you need to change attributes twice, if first changed attribute name is not worked out. Then you will be able to perform MDO SELECT query successfully.
In my case, I have created MDO definition with Attribute like this "Operation_Quantity". But It was throwing error.
Trail 1: Then I changed it to "Operation_Qty" , Bad luck. didnt work.
Trail 2: Changed to "Oper_Quantity". . it worked.
Thanks
Srisailam