<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot insert the value NULL into column 'headerId', table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321581#M91600</link>
    <description>Hi Andres&lt;BR /&gt;According to your requirment, why don't use only one tMap?&lt;BR /&gt;tFileInputDelimited--&amp;gt;tMap--&amp;gt;tMSSQLOutput&lt;BR /&gt;                                |    |&lt;BR /&gt;tFileInputDelimited----      -----&amp;gt;tMSSQLOutput &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Tue, 14 Feb 2012 02:21:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-14T02:21:34Z</dc:date>
    <item>
      <title>Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321580#M91599</link>
      <description>Hi There,&lt;BR /&gt;I would like to ask help you talend people. here it goes...&lt;BR /&gt;I have 2 tables:&lt;BR /&gt;TABLE1 --&amp;gt; headerId (primary key)&lt;BR /&gt;TABLE2 --&amp;gt; headerId (foreign key)&lt;BR /&gt;I insert data(csv) to TABLE1 using tFileInputDelimited --&amp;gt;tMAP --&amp;gt; MSSQLOutput &lt;BR /&gt;Result: TABLE1 populated&lt;BR /&gt;Then, I inserted data(csv) to TABLE2 using tFileInputDelimited --&amp;gt;tMAP --&amp;gt; MSSQLOutput &lt;BR /&gt;Result: Cannot insert the value NULL into column 'headerId', table &lt;BR /&gt;Question:&lt;BR /&gt;how can TABLE2 know that headerId already has a value inserted by TABLE1?&lt;BR /&gt;Best Regards,&lt;BR /&gt;Andres</description>
      <pubDate>Sat, 16 Nov 2024 12:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321580#M91599</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321581#M91600</link>
      <description>Hi Andres&lt;BR /&gt;According to your requirment, why don't use only one tMap?&lt;BR /&gt;tFileInputDelimited--&amp;gt;tMap--&amp;gt;tMSSQLOutput&lt;BR /&gt;                                |    |&lt;BR /&gt;tFileInputDelimited----      -----&amp;gt;tMSSQLOutput &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 14 Feb 2012 02:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321581#M91600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-14T02:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321582#M91601</link>
      <description>He Pedro. Good day!&lt;BR /&gt;Do you have the screenshot for this? &lt;BR /&gt;My problem here is:&lt;BR /&gt;I only have 1 CSV file. that CSV file has header and transactions&lt;BR /&gt;I have 2 tables(TABLE1 for header and TABLE2 for transactions). they are connected using headerId key.&lt;BR /&gt;Thanks,&lt;BR /&gt;Andres</description>
      <pubDate>Tue, 14 Feb 2012 08:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321582#M91601</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-14T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321583#M91602</link>
      <description>Hi Andres&lt;BR /&gt;Could you offer the data of Table 1, Table 2?&lt;BR /&gt;And show me the result which you want.&lt;BR /&gt;Or I may misunderstand what you mean.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 14 Feb 2012 09:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321583#M91602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-14T09:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321584#M91603</link>
      <description>Probably referential integrity in your db returning the error.</description>
      <pubDate>Tue, 14 Feb 2012 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321584#M91603</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-02-14T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321585#M91604</link>
      <description>Yes. my problem is Referential Integrity.&lt;BR /&gt;since, TABLE1 and TABLE2 are connected using headerId, and that headerId is actually auto generated in TABLE1. &lt;BR /&gt;So, using TALEND inserting CSV file to TABLE1 is no problem. TABLE1 is populated by the data coming from the CSV. also, primary key headerId will be auto populated in DB.&lt;BR /&gt;but, once i created another job for TABLE2 and insert the same CSV, it says "CANNOT insert null values to TABLE2, headerId".&lt;BR /&gt;my problem is, how would TABLE2 would know that headerId already has value in TABLE1? &lt;BR /&gt;This is how I do it:&lt;BR /&gt;tFileInputDelimited(CSV) ----&amp;gt;tMAP -----&amp;gt; MSSQLOutput(TABLE1). this is ok primary key headerId is populated in DB &lt;BR /&gt;                                             |&lt;BR /&gt;                                             |  &lt;BR /&gt;tFileInputDelimited(CSV) ----&amp;gt;tMAP -----&amp;gt; MSSQLOutput(TABLE2). this will produce an error saying that headerId cannot be null.&lt;BR /&gt;I have only 1 CSV file. it has header for name, addess, etc. in row1 this is for TABLE1. and it has a transaction data in row 2 this is for TABLE2.</description>
      <pubDate>Tue, 14 Feb 2012 09:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321585#M91604</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-14T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321586#M91605</link>
      <description>Hi, I will make my case more clearer.
&lt;BR /&gt;This are my things:
&lt;BR /&gt;2 tables (TABLE1 and TABLE2) and 1 CSV file.
&lt;BR /&gt;This is what i want to do:
&lt;BR /&gt;Insert the CSV file values to TABLE1 and TABLE2.
&lt;BR /&gt;note: TABLE1 and TABLE2 are connected via headerId column where (TABLE1 headerId pk) and (TABLE2 headerId fk). Also, headerId is auto populated in DB. so, once you insert data into TABLE1, headerId will auto increment.</description>
      <pubDate>Tue, 14 Feb 2012 10:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321586#M91605</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-02-14T10:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot insert the value NULL into column 'headerId', table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321587#M91606</link>
      <description>As I said before it's your database that knows about the referential integrity and returns the error.
&lt;BR /&gt;You need to use tdbtypeLastInsertID to get the autogenerated id from table 1. There are a number of entries on the forum about how to do this.</description>
      <pubDate>Tue, 14 Feb 2012 10:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Cannot-insert-the-value-NULL-into-column-headerId-table/m-p/2321587#M91606</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-02-14T10:06:37Z</dc:date>
    </item>
  </channel>
</rss>

