Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to input the entire query from file to tDBInput

Hi,

 

Can we dynamically input query to tDBInput.

I mean to say, I will store list of queries in a file having same output schema.

tFileInputExcel--->row1(main)--->tFlowTolerate--->iterate-->tDBInput

So, query part of tDBInput has  to take query from the iteration.

I tried putting " '" + globalMap.get("row1.SqlQuery") + "' "

Am I going wrong, anyway I got error doing this way.

 

Can I have some alternate solution?

 

 

Thanks in advance,

Meghana.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Issue solved.

 

The solution is 

(String)globalMap.get("row2.SqlQuery")

without double quotes.

 

 

Thanks,

Meghana.

View solution in original post

11 Replies
TRF
Champion II
Champion II

Try to replace globalMap.get("row1.SqlQuery") by (String)globalMap.get("row1.SqlQuery")

Anonymous
Not applicable
Author

Getting error as Invalid SQL type: sqlKind = UNINITIALIZED

 

Thanks,

Meghana.

TRF
Champion II
Champion II

How Can we guess what your SQL query looks like?

Anonymous
Not applicable
Author

I am trying with simple sql query on experiment.

 

Select 2 from dual------> This is what I have in my excel sheet.

 

 

Thanks,

Meghana.

TRF
Champion II
Champion II

And your schema is contains...

Share as many details as you can if you want someone to help you.

Anonymous
Not applicable
Author

manodwhb
Champion II
Champion II

@MeghanaKottala,can you try with below.

 

" (String)globalMap.get("row1.SqlQuery") "

Anonymous
Not applicable
Author

Getting compile time error saying 

Syntax error on token "SqlQuery", AssignmentOperator expected after this token

TRF
Champion II
Champion II

Try with the following query:

select 2 Val from dual