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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to replace a "NULL" to an empty string

Hi All,
I have an use case where we have data in sql server which stores the keyword NULL but my target which is Snowflakes doesn't accept NULL. Is there a component that I can use to convert the NULL to like an empty string. Any help is appreciated.
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi,
You can use tMap or treplace component to achieve your goal.
In tMap, the expression should be:row1.input==NULL?"":row1.input
Let us know if it is Ok with you.
Best regards
Sabrina
 
Anonymous
Not applicable
Author

Hi,
Yes that worked for me. Thanks
Anonymous
Not applicable
Author

Hi,
Can we consider this topic as resolved? Feel free to let us know if there is any further help we can give.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,

 

I am facing similar issue using Snowflake as the Database. row1.input==null? "": row1.input is throwing error as NULL cannot be inserted into Database.

 

Could you please suggest a solution for this.

 

Regards,

Saravanan.