
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
QlikView and SQL's ListAgg() function
Hi QlikView and SQL Experts -
Does anybody have experienced an issue with creating a new field using ListAgg() function in SQL Select statement? I am getting this error when I try to run with ListAgg()
QVX_UNEXPECTED_END_OF_DATA:
Error: OLEDB read failed
What I am looking to do is very simply. Lets say I have the following data
Key Dim Sales
1 India 50
2 India 100
3 India 20
4 US 30
5 US 60
6 US 120
I want this from SQL (and not QlikView)
Key Dim Sales
1|2|3 India 170
4|5|6 US 210
SQL Query runs without any error in SQL Developer, but errors out in QlikView when I use ListAgg() function to create 1|2|3
Looking for some advice here gentleman
pcammaert, gwassenaar, swuehl, johnw, marcowedel, jagan, rubenmarin
- « Previous Replies
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, I won't be able to test this out anymore. So, this thread will be unfinished business I guess

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny, I didn't used that function yet but as an idea, in case there is a problem with the oledb retrieving the results directly from that function, you can try enclosing the query as:
SELECT * FROM (YourActualQuery); //hope it works as a workaround

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So enclose my actual query within a SELECT * from???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know why is returning that error, but maybe it has to something it returns when using the function, hoping that enclosing the result in a simple select, reformats the query in a qv-compatible way.
Just a wild idea.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me test that out. Thanks for the idea

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That did not work. Any other ideas? Do you think ODBC will be able to execute this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the data is coming from oracle or microsoft sql server?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oracle

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume your using the Oracle OLEDB driver from Oracle and not the one Microsoft ships. If not, try the driver from Oracle.
Another thing you can try is defining a view based on the sql statement and then do a select from the view.
And no, I really have no idea what's going on. Good luck
talk is cheap, supply exceeds demand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe we are using the Oracle OLEDB connection. This is the one we use:
We are talking about the view, but I just wanted to know if there is a way around that.

- « Previous Replies
- Next Replies »