on 02-12-2015 8:21 AM
Hi,
I try to select all data from an MDO using a select MDO Query with MII15 SP2 Patch 8 but get the error java.sql.SQLException: Error while processing the template .../MYPROJECT/TESTQUERY- 1:22 - SQL syntax error: the token [ was not expected here
The query only points to my MDO and has no seletion parameters cause I want to get all entries from that very MDO.
I rebuild query and MDO - same result. Error occurs even if I try to apply above query after using a delete for all values - so MDO should be emtpy.
At the moment, I do not have the faintest idea what's going on...
Is there a way one can use to display MDO content without select query?
Anybody got an idea?
please share me , how to write MDO query for Update and Delete and share screen shorts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, after is was working with * I was wondering what is the issue. So i again I rebuild MDO and Query the same way and now it is working. To be honest, I have no idea what was wrong.
However, Swaroop, Manisha, thank you very much for your efforsts! I really appreciate your effrots to help people within that community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
Work around for "SQL syntax error: the token [ was not expected here" in MDO select query.
please fellow below steps:
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
Good...!
Now you can mark the query as "Answered".
regards,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marco,
i guess you are trying to use "[*]" in the space for Selected attributes.
Remove it and drag the names of desired columns from the Available attributes list. With this execution of the respective MDOquery should display the desired results.
This should work.
Also, you can directly see the MDO data by test execution of the relevant MDO Object, if it is open in workbench (right click on MDO-Object name and Test).
regards,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My MDO has no defined source, that is no transaction/query is given as data source.
I defined the MDO columns myself. I wanted to populate MDO using an INSERT MDO Query. Populating seems to work fine, at least debugger says Inserts are successful. (Same holds for delete statements)
I also tried to define a transaction as data source and used a life cycle task to popualte MDO - that one works fine - no trouble at all.
But when I want to start from scratch and define an empty MDO, SELECT does not work at all.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.