How to avoid the warning message Null value will be used for context parameter <context>: For input string: "<TALEND_NULL>"

Four Stars

How to avoid the warning message Null value will be used for context parameter <context>: For input string: "<TALEND_NULL>"

Hi,

 

I'm creating my own logs using tjava component

 

java.io.File outputFile = new java.io.File(context.Log_FilePath+"/qts_process_log_"+TalendDate.formatDate("yyyyMMdd_HHmm",TalendDate.getCurrentDate())+".txt");
java.io.PrintStream ps=new java.io.PrintStream(new java.io.FileOutputStream(outputFile, true), true);

 

For every subjob the following messages gets printed in the log file. The context variable names may change but the message is consistent across subjobs. Can you please help as this considerably increases my log file size and doesn't look good. I'm sure this is due to some setting that I'm overseeing in talend but not sure what exactly.

 

Null value will be used for context parameter runIdForDICT: For input string: "<TALEND_NULL>"
Null value will be used for context parameter runIdForPUNCHFile: For input string: "<TALEND_NULL>"
Null value will be used for context parameter LOOP: For input string: ""
Null value will be used for context parameter runIdForDICT: For input string: "<TALEND_NULL>"
Null value will be used for context parameter runIdForPUNCHFile: For input string: "<TALEND_NULL>"

Eight Stars

Re: How to avoid the warning message Null value will be used for context parameter <context>: For input string: "<TALEND_NULL>"

Hi @Mausam6792 ,

 

I believe you are using tContextLoad in your job, where null values are loaded as context values.

 

Please check the input source of your context and correct them beforehand.

 

In addition to this you can check the box "Disable Errors","Disable Warnings" in the tContextLoad.

 

Thanks and Regards,

Subhadip

Four Stars

Re: How to avoid the warning message Null value will be used for context parameter <context>: For input string: "<TALEND_NULL>"

Thanks @subhadip13 

Attached is a screenshot of how my tContextLoad is configured. The suggested settings are in place.

I see that the message only comes for the contexts that are assigned a value during run time instead of coming from the context file.

Any suggestions?

 

Four Stars

Re: How to avoid the warning message Null value will be used for context parameter <context>: For input string: "<TALEND_NULL>"

Hi,

I have the same issue. Any responses from Talend please ?

 

Regards

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog