<?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: Fk (Constraint error) - &amp;quot;Cannot add or update a child row&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367569#M130934</link>
    <description>&lt;P&gt;It works on my database. But all the project is on talend, cuz that's what my client wants.&amp;nbsp; Anyways, I managed to work around it a couple of days ago,but I wish I could get it fixed by the BI rules, you know. Trought the Surrogate key. But I'll leave like this for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 14:27:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-07T14:27:26Z</dc:date>
    <item>
      <title>Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367560#M130925</link>
      <description>&lt;P&gt;Hi, everyone! Did anyone ever come across this problem? I'm trying to insert data into my dw.&lt;/P&gt;
&lt;P&gt;I already disabled my FKs on my data warehouse. But it won't go anyways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Cannot add or update a child row: a foreign key constraint fails&lt;BR /&gt;(`dw_bi_web`.`fact_lancamento_contabil`, CONSTRAINT `fk_fact_lancamento_contabil_dim_conta_contabil1`&lt;BR /&gt; FOREIGN KEY (`dim_conta_contabil_sk_conta_contabil`) &lt;BR /&gt;REFERENCES `dim_conta_contabil` (`sk_c)
[statistics] disconnected
Job carga_fato_contas ended at 11:11 12/04/2018. [exit code=0]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367560#M130925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367561#M130926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please clarify in which Talend version/edition you are?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 05:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367561#M130926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367562#M130927</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/6718"&gt;@isadoralmeida06&lt;/A&gt;,this is DB related issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Foreign key relationships involve a parent table that holds the central data values, and a child table with identical values pointing back to its parent. The FOREIGN KEY clause is specified in the child table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will reject any INSERT or UPDATE operation that attempts to create a foreign key value in a child table if there is no a matching candidate key value in the parent table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the the vaule which you were instering or updating in&amp;nbsp;`dw_bi_web`.`fact_lancamento_contabil` are presnt in&amp;nbsp;`dim_conta_contabil`.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 05:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367562#M130927</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-04T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367563#M130928</link>
      <description>&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/6718"&gt;@isadoralmeida06&lt;/A&gt;, did you use drop contraint for this foreign key too?&lt;BR /&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/2468"&gt;@manodwhb&lt;/A&gt;, it's a good practice to give URL when copying part of text from elsewhere.</description>
      <pubDate>Fri, 04 May 2018 05:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367563#M130928</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-04T05:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367564#M130929</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMoYAAW" target="_blank"&gt;@isadoralmeida06&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;did this help you?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If so, thank's to mark your case as solved (Kudos also accepted).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367564#M130929</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-07T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367565#M130930</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Basically, yes it does have an fk&amp;nbsp; in my child table, but the problem is, it should be working.&lt;BR /&gt;So I have a field on my parent table (item) from my data warehouse called "item_description" which is a long string, e.g : "1-The&amp;nbsp;car was cleaned on time.".&lt;BR /&gt;And then on my database (origem), I have a table that have this same column with exact same rows &lt;SPAN&gt;&amp;nbsp;"1-The&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;car&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;was cleaned on time." and then when I do mapping, it gives me the FK error, and when i dropped my FK constraint, it says that my sk is null, so my fact table has all NULLs on the item_sk.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Does anyone know how to&amp;nbsp;make talend get it that&amp;nbsp;if a text is equal to the other, get the correspondent SK?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;All my other maps are working, but the matches are between, few words or number.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367565#M130930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367566#M130931</link>
      <description>Totally agree. But there are matches. All the values that I have, there's a specific match on my dimension table.</description>
      <pubDate>Mon, 07 May 2018 14:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367566#M130931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367567#M130932</link>
      <description>&lt;P&gt;Can you share your tables definition?&lt;/P&gt;&lt;P&gt;What if you try to do same from SQL, not from a Talend job?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367567#M130932</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-07T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367568#M130933</link>
      <description>Like an inner join? I'll try!</description>
      <pubDate>Mon, 07 May 2018 14:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367568#M130933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367569#M130934</link>
      <description>&lt;P&gt;It works on my database. But all the project is on talend, cuz that's what my client wants.&amp;nbsp; Anyways, I managed to work around it a couple of days ago,but I wish I could get it fixed by the BI rules, you know. Trought the Surrogate key. But I'll leave like this for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367569#M130934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367570#M130935</link>
      <description>&lt;P&gt;Probably the field corresponding to the foreign key is&amp;nbsp;empty or null when your job push the data flow to the DB.&lt;/P&gt;&lt;P&gt;Can you check this point?&lt;/P&gt;&lt;P&gt;Else can you share your job design with settings for the DB component and maybe any tMap before this component?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367570#M130935</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-05-07T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367571#M130936</link>
      <description>&lt;P&gt;No, there's no "Null" rows on my dimension, nor on my origem table. That's a "not null" column on my DBs.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367571#M130936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367572#M130937</link>
      <description>You need to set default value if the business keys are not between source and dimension when you populate data into fact table</description>
      <pubDate>Mon, 07 May 2018 16:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367572#M130937</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-07T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367573#M130938</link>
      <description>&lt;P&gt;But there are matches, and even tough it's putting as null.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 16:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367573#M130938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367574#M130939</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMoYAAW"&gt;@isadoralmeida06&lt;/A&gt;,your sure about the data then you might have configure wrongly that lookup.please check.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 14:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367574#M130939</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-10T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367575#M130940</link>
      <description>&lt;P&gt;Lookup is fine, all others are working in the same particular job, except this one.&lt;/P&gt;
&lt;P&gt;I honestly think it's a talend&amp;nbsp;issue, I don't think it can&amp;nbsp;verify if long texts columns from differents sources match.&lt;/P&gt;
&lt;P&gt;I fixed with a workaround...thanks anyways.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 15:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367575#M130940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-10T15:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367576#M130941</link>
      <description>How you fixed,do you used tjoin instead of tmap?</description>
      <pubDate>Thu, 10 May 2018 16:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367576#M130941</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-10T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fk (Constraint error) - "Cannot add or update a child row"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367577#M130942</link>
      <description>&lt;P&gt;It happens to me just like you. But I got the "[statistics] disconnected"&lt;/P&gt;&lt;P&gt;For what is this? and some solution&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 12:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fk-Constraint-error-quot-Cannot-add-or-update-a-child-row-quot/m-p/2367577#M130942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-05T12:46:43Z</dc:date>
    </item>
  </channel>
</rss>

