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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] What default value should be assgined to date context variable?

Hello ,
My setting for Implicit context load are enabled. So all context variable values are loaded from config file.
In config file, a context variable with date datatype is defined in my configuration file as follows :- 
i.e. last_exe_date== (== is field separator). You can see value is not defined or assigned to variable. 
When I execute the job it throws me error/ message(in bold) as shown below.
Error message on console is :- 
Setting a value for the key "last_exe_date" has failed. Error message: Unparseable date: ""
Info: Parameter "last_exe_date" has not been set by Implicit_Context_Context

Please let me what defualt value I need to assign to this context variable.
Thanks in advance for your help. 
Regards :- 
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 
If you define the data type as Date, you need to set a default value, eg:
mydate;2017-03-11 00:00:00
Regards
Shong

View solution in original post

2 Replies
TRF
Champion II
Champion II

Hi,
If a default value is required, define the variable as a String and convert it in the job, else let it empty (null) and set the value in the job
Anonymous
Not applicable
Author

Hi 
If you define the data type as Date, you need to set a default value, eg:
mydate;2017-03-11 00:00:00
Regards
Shong