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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Velu_R
Contributor III
Contributor III

Context Variable from txt file

Hi Team,

I am trying to get Context (data connection) variable (Database input) from Txt file. This is the input of my txt file.

0693p00000AZATtAAP.png

0693p00000AZAUmAAP.png

This is the query I am using to get table information "SELECT * FROM COMPANY". I have tried with Database. Table name also. But I am getting below error. "Exception in component tDBInput_1 (DataConnection_FromFile)

java.sql.SQLRecoverableException: IO Error: Invalid number format for port number"

Could you please suggest do I need to follow any other steps.

Labels (3)
3 Replies
manodwhb
Champion II
Champion II

@Not defined Not defined​ , your file has double quotes for value field because of the you are facing issue.

check the below link

 

https://help.talend.com/reader/t77PffDe~1iumPvFKrl43Q/4drL9L5CVxrgHwvsAv3r9g

 

Thanks,

Manohar

Velu_R
Contributor III
Contributor III
Author

Hi Manohar,

 

Thanks for the response. Now I have corrected values. But still receiving below error.

"Exception in component tDBInput_1 (DataConnection_FromFile)

java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:854)"

manodwhb
Champion II
Champion II

@Not defined Not defined​ , you need to check that from your system, using SQL Developer are you able to connect to that DB? You can create connection in metedata in repository.

 

Thanks,

Manohar