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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

passing date context (converted to string) to parent

Hi,
Not sure if this is a bug but I am trying to to pass a date context back to parent and I keep getting the exception:
Set value for key: <some date> failed, error message: Unparseable date: ""
Here's my setup:
Job A contains a tFixedFlowInput with 2 columns, key and value, both string. the key is the name of a date context and the value is:
TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",TalendDate.getCurrentDate())
I output this to tBufferOutput so the parent can use it.
Job B calls Job A and loads the buffered data (key/value par) using tContextLoad. When I run job B, i get the error above. Looking into the code I notice the following lines:
if (key_tContextLoad_1 != null
&& "job_run_created_at"
.equals(key_tContextLoad_1)) {
String context_job_run_created_at_value = context
.getProperty("job_run_created_at");
context.getProperty(...) returns empty string - since it gets the context from the current job (Job B). Shouldn't it be getting the value from Job A? In this case the variable is value_tContextLoad_1. Other datatypes seem to work fine and they get the value from value_tContextLoad_1.
Please advise.
Thanks
Sarah
Labels (2)
1 Reply
alevy
Specialist
Specialist

Does it work if you replace the tRunJob in Job B with the tFixedFlowInput from Job A?
Have you assigned a default value to the context variable in Job B?