<?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: Lakehouse SQL endpoint tables &amp;quot;Sync Error&amp;quot; after adding a column to table in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3304802#M60</link>
    <description>&lt;P&gt;After removing the relationships from the model, I also deleted the foreign key constraints via a SQL endpoint query.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-- identifiy the foreign key constraint for each fact table&lt;BR /&gt;sp_fkeys &lt;/SPAN&gt;&lt;SPAN&gt;'FactSales'&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;-- then drop it&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt; dbo.FactSales&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DROP&lt;/SPAN&gt; &lt;SPAN&gt;CONSTRAINT&lt;/SPAN&gt;&lt;SPAN&gt; FK_bd9f34c4_b835_4e87_956a_xxxxxxxxxxxx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Jun 2023 17:14:59 GMT</pubDate>
    <dc:creator>rcufley-lrdist</dc:creator>
    <dc:date>2023-06-27T17:14:59Z</dc:date>
    <item>
      <title>Lakehouse SQL endpoint tables "Sync Error" after adding a column to table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3298758#M57</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having an issue with the Lakehouse SQL Endpoint tables report a "Sync Error" state after adding a column to the deltatable.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Initially created a DimDate table via:&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;df.write.format('delta').mode("overwrite").option("overwriteSchema", True).save('Tables/DimDate')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table was accessable via SQL Endpoint&lt;BR /&gt;&lt;BR /&gt;After adding a column for "MonthEndDate" to the dataframe and running the notebook again, SQL Endpoint of DimDate does not show the new column and reports this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rcufleylrdist_0-1687475602783.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/932512i1094BF22E79EF3CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rcufleylrdist_0-1687475602783.png" alt="rcufleylrdist_0-1687475602783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MonthEnd is not available via the SQL Endpoint, however it is available within spark queries:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rcufleylrdist_1-1687476097725.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/932516iE8372AD66C377A90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rcufleylrdist_1-1687476097725.png" alt="rcufleylrdist_1-1687476097725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something incorrect in the saving of the dataframe?&amp;nbsp; Also got same result when merging schema instead of overwriting.&lt;BR /&gt;&lt;BR /&gt;Any insight appreciated, thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 23:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3298758#M57</guid>
      <dc:creator>rcufley-lrdist</dc:creator>
      <dc:date>2023-06-22T23:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse SQL endpoint tables "Sync Error" after adding a column to table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3299874#M58</link>
      <description>&lt;P&gt;Turns out the issue was foreign keys inhibit syncing of the schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/limitations" target="_blank"&gt;Limitations and known issues - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rcufleylrdist_0-1687526877715.png" style="width: 599px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/932847iE5B18EC9DD5BC94E/image-dimensions/599x66?v=v2" width="599" height="66" role="button" title="rcufleylrdist_0-1687526877715.png" alt="rcufleylrdist_0-1687526877715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropped the constraints and tables sync'd and issue resolved&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 13:30:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3299874#M58</guid>
      <dc:creator>rcufley-lrdist</dc:creator>
      <dc:date>2023-06-23T13:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse SQL endpoint tables "Sync Error" after adding a column to table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3304514#M59</link>
      <description>&lt;P&gt;Interesting. I had some relationships defined in my Lakehouse SQL Endpoint, added columns to 2 tables in Spark, then ran into your same issue.&lt;BR /&gt;&lt;BR /&gt;I removed all relationships from the model, and the SQL Endpoint is still having issues syncing. This is after waiting for 15 mins, trying to force a refresh from button in top left corner. Nothing seems to get it to sync again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly did you do after removing the relationships to get it to sync again?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:26:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3304514#M59</guid>
      <dc:creator>daxman</dc:creator>
      <dc:date>2023-06-27T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse SQL endpoint tables "Sync Error" after adding a column to table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3304802#M60</link>
      <description>&lt;P&gt;After removing the relationships from the model, I also deleted the foreign key constraints via a SQL endpoint query.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-- identifiy the foreign key constraint for each fact table&lt;BR /&gt;sp_fkeys &lt;/SPAN&gt;&lt;SPAN&gt;'FactSales'&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;-- then drop it&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt; dbo.FactSales&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DROP&lt;/SPAN&gt; &lt;SPAN&gt;CONSTRAINT&lt;/SPAN&gt;&lt;SPAN&gt; FK_bd9f34c4_b835_4e87_956a_xxxxxxxxxxxx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 17:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3304802#M60</guid>
      <dc:creator>rcufley-lrdist</dc:creator>
      <dc:date>2023-06-27T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse SQL endpoint tables "Sync Error" after adding a column to table</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3305203#M61</link>
      <description>&lt;P&gt;That resolved my issue, thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 22:14:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-SQL-endpoint-tables-quot-Sync-Error-quot-after-adding/m-p/3305203#M61</guid>
      <dc:creator>daxman</dc:creator>
      <dc:date>2023-06-27T22:14:51Z</dc:date>
    </item>
  </channel>
</rss>

