<?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 DELTA_TXN_LOG_FAILED_INTEGRITY in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119435#M45876</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to use merge statement for a query and the error comes as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to describe history on the table but not able to perform any operations like vaccum, restore, optimize and even merge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried dropping the external delta table and then creating the same - but this shows the same error again on creation of the table again. I understand that the delta log files seems to be corrupt but is there any way to resolve this issue?&lt;/P&gt;&lt;P&gt;Getting below error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The transaction log has failed integrity checks. Failed verification at version 4574 of: Table size (bytes) - Expected: 250827431 Computed: 556778858 Number of files - Expected: 1 Computed: 88 SQLSTATE: XXKDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 09:41:21 GMT</pubDate>
    <dc:creator>ar45</dc:creator>
    <dc:date>2025-05-16T09:41:21Z</dc:date>
    <item>
      <title>DELTA_TXN_LOG_FAILED_INTEGRITY</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119435#M45876</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to use merge statement for a query and the error comes as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to describe history on the table but not able to perform any operations like vaccum, restore, optimize and even merge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried dropping the external delta table and then creating the same - but this shows the same error again on creation of the table again. I understand that the delta log files seems to be corrupt but is there any way to resolve this issue?&lt;/P&gt;&lt;P&gt;Getting below error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The transaction log has failed integrity checks. Failed verification at version 4574 of: Table size (bytes) - Expected: 250827431 Computed: 556778858 Number of files - Expected: 1 Computed: 88 SQLSTATE: XXKDS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 09:41:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119435#M45876</guid>
      <dc:creator>ar45</dc:creator>
      <dc:date>2025-05-16T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: DELTA_TXN_LOG_FAILED_INTEGRITY</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119550#M45908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/109314"&gt;@ar45&lt;/a&gt;&amp;nbsp;, I am not sure what caused the corruption, but to resolve the issue, you can try removing the transaction log for the corrupt version 4574 (.json file for version 4574 under the _delta_log folder). If there are .crc files for version 4574, remove those as well.&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2025 12:49:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119550#M45908</guid>
      <dc:creator>mani_22</dc:creator>
      <dc:date>2025-05-18T12:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: DELTA_TXN_LOG_FAILED_INTEGRITY</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119701#M45949</link>
      <description>&lt;P&gt;Thank&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/89888"&gt;@mani_22&lt;/a&gt;&amp;nbsp;. Deleted entire adls folder and created the table again. This worked.&lt;/P&gt;&lt;P&gt;Although didn't try removing the said version. Should have tried that first.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 07:36:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-txn-log-failed-integrity/m-p/119701#M45949</guid>
      <dc:creator>ar45</dc:creator>
      <dc:date>2025-05-20T07:36:37Z</dc:date>
    </item>
  </channel>
</rss>

