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

Cannot insert the value NULL into column

I am joining Excel data and DB table data using tMap with ID as key. With this, DB table has to pull couple of column's more with the help of Key to Output but i am getting below error. Please suggest.

 

Cannot insert the value NULL into column 'MRN', table 'XYZ'; column does not allow nulls. INSERT fails.

 

Actually there's no null value in DB table data, but its still showing cant insert null value in MRN

Labels (2)
13 Replies
manodwhb
Champion II
Champion II

@samisyed80,filed length is doesn't matter,when you have matched data in soruce and lookup table.

 

manodwhb
Champion II
Champion II

@samisyed80,since your were data my not correct due to format,what kind of data it has in Id column in excel file?

TRF
Champion II
Champion II

By default, tMap use left outer join so if there is no matching row for a main row, MRN field will be null.
Use an inner join instead.
Anonymous
Not applicable
Author

Sorry, i was pointing to wrong table. Issue has been resolved now. Thank you.