<?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 Synapse SQL connector for warehouse failed to write data. in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920398#M14609</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to write a dataframe to Fabric Warehouse using SynapseSQL connector. Somehow it is throwing attribute error.&amp;nbsp;&lt;BR /&gt;Is anyone facing the same issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Code Snippet :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chetanhiwale_0-1768798702775.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1321638iE37BBD611C755735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chetanhiwale_0-1768798702775.png" alt="chetanhiwale_0-1768798702775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note : I am already imported the modules.&amp;nbsp;&lt;BR /&gt;The same code works for my colleague, but not for me. The same code created a new table in Warehouse without any warning or error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2026 06:31:27 GMT</pubDate>
    <dc:creator>chetanhiwale</dc:creator>
    <dc:date>2026-01-19T06:31:27Z</dc:date>
    <item>
      <title>Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920398#M14609</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to write a dataframe to Fabric Warehouse using SynapseSQL connector. Somehow it is throwing attribute error.&amp;nbsp;&lt;BR /&gt;Is anyone facing the same issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Code Snippet :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chetanhiwale_0-1768798702775.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1321638iE37BBD611C755735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chetanhiwale_0-1768798702775.png" alt="chetanhiwale_0-1768798702775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note : I am already imported the modules.&amp;nbsp;&lt;BR /&gt;The same code works for my colleague, but not for me. The same code created a new table in Warehouse without any warning or error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 06:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920398#M14609</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-19T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920442#M14611</link>
      <description>&lt;P&gt;pls check your schema in table and dataframe are equal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 05:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920442#M14611</guid>
      <dc:creator>BalajiL</dc:creator>
      <dc:date>2026-01-19T05:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920489#M14614</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721084"&gt;@BalajiL&lt;/a&gt;&amp;nbsp;The schema and dataframe schema are same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 06:29:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920489#M14614</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-19T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920496#M14615</link>
      <description>&lt;P&gt;I dont think your schema will be same in df and table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure your table 'ok' has integer type for column id. Then execute the below code it should able to execute in warehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; com.microsoft.spark.fabric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; com.microsoft.spark.fabric.Constants &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; Constants&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;types&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt;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PAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;schema&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jan 2026 06:48:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920496#M14615</guid>
      <dc:creator>BalajiL</dc:creator>
      <dc:date>2026-01-19T06:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920739#M14622</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please try the following steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Set the append mode to "overwrite" by using df.write.mode("overwrite").synapsesql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Is the warehouse you are writing to located within the same workspace as your notebook?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. You mentioned that the code works for your colleague. Are they using the same workspace? If not, would you be able to check if their Fabric runtime matches yours?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope this helps - please appreciate bu leaving a &lt;STRONG&gt;Kudos&lt;/STRONG&gt; or accepting as a &lt;STRONG&gt;Solution&lt;/STRONG&gt;!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jan 2026 11:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920739#M14622</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-01-19T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920970#M14638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you configure the warehouse anywhere in the notebook?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//For warehouse &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.conf.set("spark.datawarehouse.&amp;lt;warehouse name&amp;gt;.sqlendpoint", "&amp;lt;sql endpoint,port&amp;gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and are you working with Spark Runtime 1.3? This is only available in runtime 1.3 according to the docs:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector?tabs=pyspark#considerations-for-using-this-connector" target="_blank"&gt;Spark connector for Microsoft Fabric Data Warehouse - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 14:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4920970#M14638</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-01-19T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922359#M14673</link>
      <description>&lt;P&gt;I havent setup following the property as the same code worked for my colleage also I have runtime 1.3&lt;BR /&gt;&lt;SPAN&gt;spark.conf.set("spark.datawarehouse.&amp;lt;warehouse name&amp;gt;.sqlendpoint", "&amp;lt;sql endpoint,port&amp;gt;").&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 07:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922359#M14673</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-21T07:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922360#M14674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1445078"&gt;@deborshi_nag&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Both warehouse and notebook are in same workspace. Also I do have 1.3 runtime and tried with overwrite. But the issue still persists.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 07:38:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922360#M14674</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-21T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922361#M14675</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721084"&gt;@BalajiL&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Both schemas are same. As the spark is not able to find the synapsesql connector, more or less it seems issue with Spark connector / Spark runtime not with the schema.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 07:40:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922361#M14675</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-21T07:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922608#M14679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp; make sure you have the following 2 lines in the same cell in your notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; com.microsoft.spark.fabric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; com.microsoft.spark.fabric.Constants &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; Constants &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jan 2026 12:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4922608#M14679</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-01-21T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923047#M14692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1445078"&gt;@deborshi_nag&lt;/a&gt;&amp;nbsp;, I have imported the modules.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 05:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923047#M14692</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-22T05:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923050#M14693</link>
      <description>&lt;P&gt;Hi Folks,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The same code is working now. I havent changed anything but now it is running. Seems to be something internal issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 05:19:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923050#M14693</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-01-22T05:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Synapse SQL connector for warehouse failed to write data.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923584#M14710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp;if it is working can you mark it as resolved please?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 16:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Synapse-SQL-connector-for-warehouse-failed-to-write-data/m-p/4923584#M14710</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-01-22T16:16:28Z</dc:date>
    </item>
  </channel>
</rss>

