<?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 Write data issue in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/write-data-issue/m-p/127402#M47952</link>
    <description>&lt;P&gt;My Databricks job is completing successful but my data is not written into the target table, source path is correct, each n every thing is correct, but I am not sure y data is not written into the delta table.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 02:55:11 GMT</pubDate>
    <dc:creator>Srajole</dc:creator>
    <dc:date>2025-08-05T02:55:11Z</dc:date>
    <item>
      <title>Write data issue</title>
      <link>https://community.databricks.com/t5/data-engineering/write-data-issue/m-p/127402#M47952</link>
      <description>&lt;P&gt;My Databricks job is completing successful but my data is not written into the target table, source path is correct, each n every thing is correct, but I am not sure y data is not written into the delta table.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 02:55:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/write-data-issue/m-p/127402#M47952</guid>
      <dc:creator>Srajole</dc:creator>
      <dc:date>2025-08-05T02:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Write data issue</title>
      <link>https://community.databricks.com/t5/data-engineering/write-data-issue/m-p/127442#M47970</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/177526"&gt;@Srajole&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There are a bunch of possibilities as to why the data is not being written into the table -&lt;/P&gt;&lt;P&gt;You’re writing to a path different from the table’s storage location, or using a write mode that doesn’t replace data as expected.&lt;BR /&gt;spark.sql("DESCRIBE DETAIL my_table").select("location").show(truncate=False)&lt;BR /&gt;Ensure the .write.format("delta").save(path) or .saveAsTable("my_table") matches that location.&lt;BR /&gt;If you use append, check that partitions and filters match what your downstream queries expect.&lt;/P&gt;&lt;P&gt;Your DataFrame has zero rows at the write stage (e.g., filters remove all rows, or join keys don’t match). Could you do a simple count on the dataframe before actually writing to a table.&lt;/P&gt;&lt;P&gt;If the target Delta table is partitioned and you’re writing with dynamic partition overwrite or partition filters, no partitions may match. Make sure the partitions match.&lt;BR /&gt;&lt;BR /&gt;Overwriting a partitioned table without specifying overwriteSchema may drop existing data but not write the new batch if the partition columns mismatch.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 10:53:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/write-data-issue/m-p/127442#M47970</guid>
      <dc:creator>Vidhi_Khaitan</dc:creator>
      <dc:date>2025-08-05T10:53:57Z</dc:date>
    </item>
  </channel>
</rss>

