Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

accessing an array element is throwing an error: Failed to parse the SQL statement

The following query in the load script succeeds when loaded on the designer tool but fails on the server with the error: Failed to parse the SQL statement (and then the following query)

select e.id as "Emp ID",

          e.name as "Emp Name",

          e.manager[1] as "Manager One",

          e.manager[2] as "Manager Two"

from "employee" e

The employee table is as follows:

idnamemanager
1001sarah
1002john[1001]
1003bruce[1001,1002]
1004elton[1001,1002]

Basically its not able to handle the array element. Please let me know how else can we access the array element of a column.

Thanks for you help!!

1 Reply
Gysbert_Wassenaar

The sql statement is sent to the odbc or oledb driver you are using. It is that driver that can't handle the arrays. Qlikview has nothing to do with it. You need to find another driver or create a view or stored procedure in your sql database that returns a record set that the driver you're using is capable of handling.


talk is cheap, supply exceeds demand