<?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: Error AAAR - Error in extraction in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-aaar-error-in-extraction/m-p/40953#M17178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Flavia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is well known and it is due to the foreign key violation on dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Cannot add or update a child row: a foreign key constraint fails (`aaar_datamart`.`dm_dim_workflow_instances`, CONSTRAINT `fk_dm_dim_workflow_instances_dm_dim_dates_due` FOREIGN KEY (`due_date_id`) REFERENCES `dm_dim_dates` (`id`))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the times, the issue is related to a "wrong date" in the workflows instances.&lt;/P&gt;&lt;P&gt;Sometimes happens that the dm_dim_dates is not correctly filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve the issue, you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Check the dm_dim_dates is filled with some data (it should contain several dates).&lt;/P&gt;&lt;P&gt;2) Check the wrong values into the stg_workflow_instances.duedate field. For example you can create a SQL query searching for the duedate values that are not included into the dm_dim_dates.id values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once found the issue, the solution is quite easy:&lt;/P&gt;&lt;P&gt;1) There is a problem in the ETL to fill the dates and it should be solved understanding why the values are not correctly filled (usually date formats).&lt;/P&gt;&lt;P&gt;2) Adjust the duedate&amp;nbsp;on&amp;nbsp;Alfresco side because it is often a wrong value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2018 08:13:56 GMT</pubDate>
    <dc:creator>fcorti</dc:creator>
    <dc:date>2018-01-05T08:13:56Z</dc:date>
    <item>
      <title>Error AAAR - Error in extraction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-aaar-error-in-extraction/m-p/40952#M17177</link>
      <description>HiFrancesco Corti!&amp;nbsp;Congratulations on the AAAR! I think it's an incredible tool and I'm trying to use it.Some errors appear after extraction and I do not know how to solve them. Could you help me please?2018/01/04 11:21:07 - stg_workflow_instances.0 - Finished reading query, closing connection.2018/</description>
      <pubDate>Thu, 04 Jan 2018 12:29:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-aaar-error-in-extraction/m-p/40952#M17177</guid>
      <dc:creator>flavia</dc:creator>
      <dc:date>2018-01-04T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error AAAR - Error in extraction</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-aaar-error-in-extraction/m-p/40953#M17178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Flavia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is well known and it is due to the foreign key violation on dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Cannot add or update a child row: a foreign key constraint fails (`aaar_datamart`.`dm_dim_workflow_instances`, CONSTRAINT `fk_dm_dim_workflow_instances_dm_dim_dates_due` FOREIGN KEY (`due_date_id`) REFERENCES `dm_dim_dates` (`id`))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the times, the issue is related to a "wrong date" in the workflows instances.&lt;/P&gt;&lt;P&gt;Sometimes happens that the dm_dim_dates is not correctly filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve the issue, you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Check the dm_dim_dates is filled with some data (it should contain several dates).&lt;/P&gt;&lt;P&gt;2) Check the wrong values into the stg_workflow_instances.duedate field. For example you can create a SQL query searching for the duedate values that are not included into the dm_dim_dates.id values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once found the issue, the solution is quite easy:&lt;/P&gt;&lt;P&gt;1) There is a problem in the ETL to fill the dates and it should be solved understanding why the values are not correctly filled (usually date formats).&lt;/P&gt;&lt;P&gt;2) Adjust the duedate&amp;nbsp;on&amp;nbsp;Alfresco side because it is often a wrong value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 08:13:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-aaar-error-in-extraction/m-p/40953#M17178</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2018-01-05T08:13:56Z</dc:date>
    </item>
  </channel>
</rss>

