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: 
Anonymous
Not applicable

tMap - no output even if expression is correct

Hi, 

I have this expression which i have compiled and tested and the results is correct after testing. But when i see the output excel file, the column is empty. Any idea why?

0683p000009M88K.png
Trade_Events.Transaction_Type_Code == "BUY"? "1":
Trade_Events.Transaction_Type_Code == "SEL"? "2":
Trade_Events.Transaction_Type_Code == "SELL_CI" ?"17":null

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Never use == to compare strings. Change your expression like this:
"BUY".equals(Trade_Events.Transaction_Type_Code
and so on for other parts.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hello,

Are you able to use tLogRow component instead of tfileoutputexcel component to print your result on console at the first step to see if this expression in tMap works well?

Best regards

Sabrina

TRF
Champion II
Champion II

Never use == to compare strings. Change your expression like this:
"BUY".equals(Trade_Events.Transaction_Type_Code
and so on for other parts.
Anonymous
Not applicable
Author

Perfect!  it works