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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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)