How to hide warning 'Null value will be used for context parameter KEY : For input string:"context.KEY"'

Five Stars

How to hide warning 'Null value will be used for context parameter KEY : For input string:"context.KEY"'


Hi Team,

I have created a job which use context variables that are assigned a value during run time from tjavarow component.
The context variables which I have used are TICKET_KEY (String)and TICKET_INCREMENT_KEY(int).
The expressions used in tjavarow for these context variables are:

context.TICKET_KEY=input_row.TICKET_KEY;
context.TICKET_INCREMENT_KEY=Integer.valueOf((context.TICKET_KEY).replaceAll("W",""))+1;


while running the job, I am getting a warning in the output console as
'Null value will be used for context parameter TICKET_INCREMENT_KEY: For input string:"context.TICKET_INCREMENT_KEY"'
even though I am getting the correct output from the job.
Now I want to hide this warning from the output console.
Can you please help to hide warnings? I tried using implicit context load and tcontextload component, but couldnt hide this context warning.


Accepted Solutions
Twelve Stars

Re: How to hide warning 'Null value will be used for context parameter KEY : For input string:"context.KEY"'

You my try to set a default value to you context variable.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

View solution in original post


All Replies
Twelve Stars

Re: How to hide warning 'Null value will be used for context parameter KEY : For input string:"context.KEY"'

You my try to set a default value to you context variable.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

View solution in original post

Five Stars

Re: How to hide warning 'Null value will be used for context parameter KEY : For input string:"context.KEY"'

Hi fdenis,

 

 


@fdenis wrote:
You my try to set a default value to you context variable.

Thank you. It worked for me.

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

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