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: 
Anonymous
Not applicable

Unable to load context from database

Hi,

 

I have a job as below0683p000009LrYp.png

 I am trying to load the context of tmssqlinput from database. So the context details sit in loadcontext table in mysql. The table has the rows as shown below

0683p000009LrYz.png

 

Now, my when I get to the extra tab of the job the implicit job details are as follows..

0683p000009LrQd.png

And now when I go the contexts tab of the tmssqlcomponent, the details are as follows

 

 

0683p000009LrIq.png

Now when I run the job I get the error,

 

 

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
***cannot be resolved to a variable
****cannot be resolved to a variable
***cannot be resolved to a variable
*** cannot be resolved to a variable 

 

The *** is the username, password, databasename, and port, that I have hidden due to privacy guidelines


Any help on why I'm unable to get the context from database would be of great help

Thanks
Rathi

Labels (3)
6 Replies
Anonymous
Not applicable
Author

Have you defined the context variables in contexts tab?
Anonymous
Not applicable
Author

Yes chirgal, I have defined them as context.host, context.port, context.database, context.username, context.password

Anonymous
Not applicable
Author

The *** is the username, password, databasename, and port, that I have hidden due to privacy guidelines.

Referring to your above statements, I want to ask is, have you used double quotes while entering above value?

I suspect, you r missing double qoutes
Anonymous
Not applicable
Author

Hi chirgal,

 

Yes, I had missed the double quotes. Thanks for that 🙂

 

But, I still get the same error when I run the job

 

Thanks
Rathi

Anonymous
Not applicable
Author

It means you still missing somewhere.
How many errors are you getting now?

Which variables are unresolved now?
Anonymous
Not applicable
Author

Hello,

Have you already checked this online document about:TalendHelpCenter0683p000009M9p6.pngcenario: Reading data from different MySQL databases using dynamically loaded connec...?

Best regards

Sabrina