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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SAdlam
Contributor
Contributor

Context date parsing

Hi,

I'm fairly new to TOS, and have hit an issue with using a date context variable in a trestclient parameter.

I've got the context set to date

0693p00000BCpaoAAD.png

and have chosen a date from the date picker.

then within the trestclient parameter i've got the following to get the unix timestamp time.

0693p00000BCpbSAAT.png

I'm getting this error though when I run the job.

0693p00000BCpv3AAD.png

its almost as if the context variables are not being passed to the trestclient properly.

any pointers please? i've spent quite alot of time trying to get this working.

it works fine when i put in the figure directly!

Thanks 🙂

Steve

Labels (2)
12 Replies
SAdlam
Contributor
Contributor
Author

Hi So I've also encounted ther error on onther variables too like the dbname its passing a null value into the component, but in a msgbox i get the right value... any pointers from anyone?

SAdlam
Contributor
Contributor
Author

Hi, so i think i've found more out.

 

when i use the code System.out.println(context.StagingBiMetaDatabase); in a java component it prints the words null so i'm just not sure how to overwrite this! as in the ui theres a value in the context.

SAdlam
Contributor
Contributor
Author

Just for future reference. I managed to resolve the issue, by changing the data type to char and then back to a string.

not sure what's going on there, but I managed to fix it!