<?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>article Qlik Stitch: MySQL integration extraction error “Fatal Error Occurred YEAR“ in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-integration-extraction-error-Fatal-Error/ta-p/2538389</link>
    <description>&lt;P&gt;MySQL extraction encounters the following error:&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;FATAL [main] tap-hp-mysql.main - Fatal Error Occurred - YEAR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Identify columns storing date/time values.&lt;/LI&gt;
&lt;LI&gt;Query for invalid years&lt;BR /&gt;For example:&lt;BR /&gt;
&lt;PRE class="ckeditor_codeblock"&gt;YEAR(date_column) &amp;lt; 1 OR YEAR(date_column) &amp;gt; 9999&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Correct invalid records or replace them with valid defaults.&lt;/LI&gt;
&lt;LI&gt;If you cannot modify source data, deselect the problematic column in table settings in the integration.&lt;/LI&gt;
&lt;LI&gt;Consider enforcing valid ranges via application-level validation or MySQL constraints.&lt;/LI&gt;
&lt;LI&gt;If using MySQL zero dates (&lt;CODE&gt;0000-00-00&lt;/CODE&gt;), adjust SQL mode or replace with valid dates.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This error occurs when the MySQL integration attempts to process a &lt;CODE&gt;DATE&lt;/CODE&gt;, &lt;CODE&gt;DATETIME&lt;/CODE&gt;, or &lt;CODE&gt;TIMESTAMP&lt;/CODE&gt; field containing an invalid year value. Common examples include &lt;CODE&gt;0&lt;/CODE&gt; or any year outside the supported range. The error message typically states &lt;STRONG&gt;"Fatal Error Occurred"&lt;/STRONG&gt; followed by details about the invalid year or month value.&lt;/P&gt;
&lt;P&gt;The underlying Python library used by the Stitch MySQL integration&amp;nbsp;enforces strict date parsing rules. It only supports years in the range &lt;STRONG&gt;0001–9999&lt;/STRONG&gt;. If the source data contains values less than &lt;CODE&gt;0001&lt;/CODE&gt; or greater than &lt;CODE&gt;9999&lt;/CODE&gt;, the extraction will error. This issue often arises from legacy data, zero dates (&lt;CODE&gt;0000-00-00&lt;/CODE&gt;), or improperly validated application inserts.&lt;/P&gt;
&lt;P&gt;Any column selected for replication that contains invalid date values will trigger this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Stitch" id="qlikStitch"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Dec 2025 09:28:03 GMT</pubDate>
    <dc:creator>David_Apodaca</dc:creator>
    <dc:date>2025-12-08T09:28:03Z</dc:date>
    <item>
      <title>Qlik Stitch: MySQL integration extraction error “Fatal Error Occurred YEAR“</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-integration-extraction-error-Fatal-Error/ta-p/2538389</link>
      <description>&lt;P&gt;MySQL extraction encounters the following error:&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;FATAL [main] tap-hp-mysql.main - Fatal Error Occurred - YEAR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Identify columns storing date/time values.&lt;/LI&gt;
&lt;LI&gt;Query for invalid years&lt;BR /&gt;For example:&lt;BR /&gt;
&lt;PRE class="ckeditor_codeblock"&gt;YEAR(date_column) &amp;lt; 1 OR YEAR(date_column) &amp;gt; 9999&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Correct invalid records or replace them with valid defaults.&lt;/LI&gt;
&lt;LI&gt;If you cannot modify source data, deselect the problematic column in table settings in the integration.&lt;/LI&gt;
&lt;LI&gt;Consider enforcing valid ranges via application-level validation or MySQL constraints.&lt;/LI&gt;
&lt;LI&gt;If using MySQL zero dates (&lt;CODE&gt;0000-00-00&lt;/CODE&gt;), adjust SQL mode or replace with valid dates.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;This error occurs when the MySQL integration attempts to process a &lt;CODE&gt;DATE&lt;/CODE&gt;, &lt;CODE&gt;DATETIME&lt;/CODE&gt;, or &lt;CODE&gt;TIMESTAMP&lt;/CODE&gt; field containing an invalid year value. Common examples include &lt;CODE&gt;0&lt;/CODE&gt; or any year outside the supported range. The error message typically states &lt;STRONG&gt;"Fatal Error Occurred"&lt;/STRONG&gt; followed by details about the invalid year or month value.&lt;/P&gt;
&lt;P&gt;The underlying Python library used by the Stitch MySQL integration&amp;nbsp;enforces strict date parsing rules. It only supports years in the range &lt;STRONG&gt;0001–9999&lt;/STRONG&gt;. If the source data contains values less than &lt;CODE&gt;0001&lt;/CODE&gt; or greater than &lt;CODE&gt;9999&lt;/CODE&gt;, the extraction will error. This issue often arises from legacy data, zero dates (&lt;CODE&gt;0000-00-00&lt;/CODE&gt;), or improperly validated application inserts.&lt;/P&gt;
&lt;P&gt;Any column selected for replication that contains invalid date values will trigger this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Stitch" id="qlikStitch"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 09:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Stitch-MySQL-integration-extraction-error-Fatal-Error/ta-p/2538389</guid>
      <dc:creator>David_Apodaca</dc:creator>
      <dc:date>2025-12-08T09:28:03Z</dc:date>
    </item>
  </channel>
</rss>

