<?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 when writing dataframe to delta table in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829243#M1131</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350131" data-lia-user-login="JayJay11" class="lia-mention lia-mention-user"&gt;JayJay11&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;As part of testing, can you try to create a new table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dfCustomerJoined.write.mode("overwrite").format("delta").option("overwriteSchema", "true").save("Tables/factCustomerBaseJoined")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Let me know the output of it.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 05:22:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-11T05:22:56Z</dc:date>
    <item>
      <title>Error when writing dataframe to delta table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3826104#M1130</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;second time trying to post this, as the first try was marked as spam (???).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to write a dataframe back to a delta table and get an error. This is the code I use to create the dataframe:&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;dfCustomer = spark.read.table("LakehouseOperations.factCustomerBase")
dfScope = spark.read.table("LakehouseOperations.tecDataScopeSnapshots")

dfCustomerJoined = dfCustomer.join(dfScope, dfCustomer.snapshot_date == dfScope.scopeDate, "inner").drop("scopeDate", "scopeDateBuckets")

dfCustomerJoined.write.mode("overwrite").format("delta").option("overwriteSchema", "true").save("Tables/factCustomerBase")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I get the error, see the screenshots here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve this? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:09:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3826104#M1130</guid>
      <dc:creator>JayJay11</dc:creator>
      <dc:date>2024-04-10T08:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error when writing dataframe to delta table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829243#M1131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350131" data-lia-user-login="JayJay11" class="lia-mention lia-mention-user"&gt;JayJay11&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;As part of testing, can you try to create a new table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dfCustomerJoined.write.mode("overwrite").format("delta").option("overwriteSchema", "true").save("Tables/factCustomerBaseJoined")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Let me know the output of it.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 05:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829243#M1131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-11T05:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when writing dataframe to delta table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829433#M1132</link>
      <description>&lt;P&gt;The solution was to change the spark session configuration via the workspace settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What it actually does / means... I don't know.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 05:54:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829433#M1132</guid>
      <dc:creator>JayJay11</dc:creator>
      <dc:date>2024-04-11T05:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when writing dataframe to delta table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829443#M1133</link>
      <description>&lt;P&gt;Glad to know that you were able to resolve your issue. Please continue using Fabric Community on your further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 05:57:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3829443#M1133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-11T05:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when writing dataframe to delta table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3962830#M2338</link>
      <description>&lt;P&gt;I got the same error even after using the mentioned spark properties.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 04:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-when-writing-dataframe-to-delta-table/m-p/3962830#M2338</guid>
      <dc:creator>Naveen-004</dc:creator>
      <dc:date>2024-05-31T04:26:39Z</dc:date>
    </item>
  </channel>
</rss>

