<?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: DeltaFileNotFoundException: No file found in the directory (sudden task failure) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/109237#M43255</link>
    <description>&lt;P&gt;You would run DESCRIBE HISTORY `table_name`; to check which versions are available. If the delta log is truncated for some reason, you will not find a version 0. Use the oldest version you can find instead of 0. For example, if the oldest version you can find in the delta log is 10, use .option("startingVersion", 10).&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 15:41:22 GMT</pubDate>
    <dc:creator>Walecon</dc:creator>
    <dc:date>2025-02-06T15:41:22Z</dc:date>
    <item>
      <title>DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/53066#M29673</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am currently running a job that will upsert a table by reading from delta change data feed from my silver table. Here is the relevent snippet of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;rds_changes = spark.read.format("delta") \
  .option("readChangeFeed", "true") \
  .option("startingVersion", 0) \
  .table("main.default.gold_table") \
  .where(f"_commit_timestamp &amp;gt;= '{(datetime.now() - timedelta(hours=1)).strftime('%Y-%m-%d %H:%M:%S')}'")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error returned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;com.databricks.sql.transaction.tahoe.DeltaFileNotFoundException: No file found in the directory: s3://databricks-workspace-stack-70da1-metastore-bucket/60ed403c-0a54-4f42-8b8a-73b8cea1bdc3/tables/6d4a9b3d-f88b-436e-be1b-09852f605f4c/_delta_log.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have done the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Verify that the delta log folder is not deleted by accessing S3 directly&lt;/LI&gt;&lt;LI&gt;Able to query the table directly and perform `DESCRIBE HISTORY gold_table` on it without any issue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Anyone has any idea why this happen when I am running the job which was working fine previously without any changes&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 02:29:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/53066#M29673</guid>
      <dc:creator>Juju</dc:creator>
      <dc:date>2023-11-20T02:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/53104#M29686</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, found the issue is due to truncated delta log. Thanks for the help man&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 08:59:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/53104#M29686</guid>
      <dc:creator>Juju</dc:creator>
      <dc:date>2023-11-20T08:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/95610#M39127</link>
      <description>&lt;P&gt;What was the fix?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 20:39:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/95610#M39127</guid>
      <dc:creator>c-data</dc:creator>
      <dc:date>2024-10-22T20:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/98758#M39835</link>
      <description>&lt;P&gt;1) check the first delta feed enabled version in&lt;BR /&gt;DESCRIBE HISTORY `table_name`;&lt;/P&gt;&lt;P&gt;2) use this version instead of 0 in .option("startingVersion", x)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 09:42:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/98758#M39835</guid>
      <dc:creator>Walecon</dc:creator>
      <dc:date>2024-11-14T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/109210#M43240</link>
      <description>&lt;P&gt;Can you please describe some more on option 2)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 14:19:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/109210#M43240</guid>
      <dc:creator>sanpai</dc:creator>
      <dc:date>2025-02-06T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaFileNotFoundException: No file found in the directory (sudden task failure)</title>
      <link>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/109237#M43255</link>
      <description>&lt;P&gt;You would run DESCRIBE HISTORY `table_name`; to check which versions are available. If the delta log is truncated for some reason, you will not find a version 0. Use the oldest version you can find instead of 0. For example, if the oldest version you can find in the delta log is 10, use .option("startingVersion", 10).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 15:41:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltafilenotfoundexception-no-file-found-in-the-directory-sudden/m-p/109237#M43255</guid>
      <dc:creator>Walecon</dc:creator>
      <dc:date>2025-02-06T15:41:22Z</dc:date>
    </item>
  </channel>
</rss>

