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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ishchopra
Contributor III
Contributor III

Type mismatch: cannot convert from Object&Serializable&Comparable<?> to Date

Hello Experts,

 

I am trying to write an expression in tmap but that is throwing an error : Type mismatch: cannot convert from Object&Serializable&Comparable<?> to Date

 

Expression: 

 

FileConsents.Status == "Opt-out" ? FileConsents.TRANSACTION_DATE : "" 

 

the field in output is a date field.

 

please help

 

A

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Not sure this is enough, but did you try:
"Opt-out".equalsIgnoreCase(FileConsents.Status) ? FileConsents.TRANSACTION_DATE : null
(because you cannot move a empty string to a date field)

View solution in original post

1 Reply
TRF
Champion II
Champion II

Not sure this is enough, but did you try:
"Opt-out".equalsIgnoreCase(FileConsents.Status) ? FileConsents.TRANSACTION_DATE : null
(because you cannot move a empty string to a date field)