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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

tFileInputDelimited and null values

Hi,
I use tFileInputDelimited to upload datas in MySQL. The structure is defined through Metadata - File delimited.
Is there a way to define that empty fields between 2 delimiters are null values rather than empty strings ?
This is better for nullable foreign keys.

Ex :
Id;NumValue1;StringValue1;NumValue2;StringValue2;DateValue
1;8;Some text;0;;20080505
StringValue2 is null and not "".

Thanks for your help
Labels (2)
2 Replies
Anonymous
Not applicable

Hello
Before upload the datas in MYSQL, you can use a tMap component to convert some value, for example:
row1.StringValue2.equals("")?"null":row1.StringValue2

Feel free to post your questions!
Best regards
shong
0683p000009MC9H.png
_AnonymousUser
Specialist III
Specialist III
Author

Thanks, it works with this expression :
row1.StringValue2.equals("")?null:row1.StringValue2

(null without double quotes)