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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error message when passing context variable from property file into Driver Jar for Azure connection

Hi everyone,
I am finalizing a property file containing all parameters of my jobs.
I use a connection General JDBC to connect into my database SQL Server-Azure.
All parameters pass except the driver Jar.
I tried to put the driver jar path and the name of my driver jar.

I have a error message.

 

It works if I put the name of driver jar in hard code but I'm not interested...

Someone can help me please.
Thank you.0683p000009LvXN.pngProperty file

 

0683p000009LviA.pngError message driver jar name

 

 

0683p000009LveY.pngError message driver jar path

 

 

0683p000009LvgK.pngConnection

 

 

0683p000009LvP0.png 

 

 

 

 

 

 

Labels (5)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Assume jar files are required at compile time but as context variables content is defined at runtime, you cannot use them to define jar path and name.

View solution in original post

6 Replies
TRF
Champion II
Champion II

Assume jar files are required at compile time but as context variables content is defined at runtime, you cannot use them to define jar path and name.
Anonymous
Not applicable
Author

thank you @TRF for answering me.

I understand better now.

 

TRF
Champion II
Champion II

@maria94, you're welcome.

Don't forget to mark the case as solved if you consider it is. 

This should be usefull for someone searching a solution for the same problem.

Anonymous
Not applicable
Author

Hi,

I am facing similar problem so can you please help with your metadata connection and connection values used for each parameter.

 

 

 

Anonymous
Not applicable
Author

Hello @araja,

 Could you please give us more  information about your issue? Screenshots will be preferred.
 
 
 
 
 
 
Best regards
 Sabrina
Anonymous
Not applicable
Author

Hi,

 

I am using general JDBC connection with mssql-jdbc.jar and i have my context group defined for using it in connection.

 

When I pass all the context parameters from command prompt to execute job I am receiving below errors.

 

Exception in component tJDBCInput_1
java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at etl.test_params_0_1.test_params.tJDBCInput_1Process(test_params.java:1779)
at etl.test_params_0_1.test_params.tLogCatcher_1Process(test_params.java:1333)
at etl.test_params_0_1.test_params.tWarn_1Process(test_params.java:524)
at etl.test_params_0_1.test_params.runJobInTOS(test_params.java:2312)

 

Thanks,