<?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: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2 in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3860156#M2779</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437984" data-lia-user-login="frithjof_v" class="lia-mention lia-mention-user"&gt;frithjof_v&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apologies for the issue you have been facing. Thanks for the feedback. I have forwarded the feedback to the internal team.&lt;BR /&gt;Hope this helps. Please let me know if you have any further queries. Glad to help.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 18:04:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-22T18:04:49Z</dc:date>
    <item>
      <title>SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856562#M2760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Lakehouse with 2 tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fact table: RandomNumbers&lt;/P&gt;&lt;P&gt;Dimensions table: Dim_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a relationship between the tables in the SQL Analytics Endpoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I query the&amp;nbsp;&lt;SPAN&gt;[INFORMATION_SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE_CONSTRAINTS] view, I can see that these relationships have been registered as constraints on the tables in the SQL Analytics Endpoint.&lt;/SPAN&gt;&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;When I connect to the RandomNumbers table of the SQL Analytics Endpoint from Power Query in Power BI Desktop, I can see that there is an expandable column so I can easily expand columns from Dim_Date into the RandomNumbers query.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Dataflow Gen2 which, when it runs, does a Replace &lt;EM&gt;with Dynamic schema&lt;/EM&gt; of the Dim_Date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the Dataflow Gen2, these are my observations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The relationship still appears in the model pane of the SQL Analytics Endpoint&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;The relationship still works in the Default Direct Lake semantic model&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;The constraints are not found anymore when I query the&amp;nbsp;&lt;SPAN&gt;[INFORMATION_SCHEMA]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[TABLE_CONSTRAINTS] view&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The expandable column is not found anymore in Power Query in Power BI Desktop. An import mode semantic model I built which uses this expandable column, get failed refreshes because the column can't be found anymore.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;- Is this the expected behavior?&lt;/P&gt;&lt;P&gt;- Shouldn't the table constraints and the model relationships in the SQL Analytics Endpoint be automatically synchronized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 13:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856562#M2760</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-04-21T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856802#M2761</link>
      <description>&lt;P&gt;Just a quick one before I dive a little deeper, this is a Warehouse (and not a Lakehouse)?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 13:02:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856802#M2761</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-04-21T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856809#M2762</link>
      <description>&lt;P&gt;It's a Lakehouse&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 13:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856809#M2762</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-04-21T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856816#M2763</link>
      <description>&lt;P&gt;I am suspecting that the reason is that the Dataflow Gen2 drops and recreates the Lakehouse table when using Replace mode &lt;EM&gt;with Dynamic schema&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So maybe that's why the constraints are removed&amp;nbsp;(or rather: not re-applied) from the tables in the SQL Analytics Endpoint?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I think it's not consistent with the model relationships still being present and working afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the destination settings in my Dataflow Gen2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Sun, 21 Apr 2024 13:24:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856816#M2763</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-04-21T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856820#M2764</link>
      <description>&lt;P&gt;Oh, I see... My bad. It's not regular Replace I am using. I am actually using Replace &lt;EM&gt;with Dynamic schema&lt;/EM&gt;. I had forgotten that. (I now changed the info to Replace &lt;EM&gt;with Dynamic schema &lt;/EM&gt;also in my previous comments)&lt;BR /&gt;&lt;BR /&gt;I guess the Dynamic schema setting is causing the table to get dropped and recreated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I still find it inconsistent that the constraints and model relationships are affected differently by this operation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for my use, the model relationships are more important than the table constraints. So I like that the model relationships are not being dropped at least.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to beware not to use the expand column option in Power Query for my import mode semantic models, when working with lakehouse tables which are subject to Dynamic schema.&lt;BR /&gt;As the expand column option seems to be depending on the table constraints in the SQL Analytics Endpoint, and the table constraints don't seem to get recreated when the table gets dropped and recreated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer that the table constraints also keep working after running a Dataflow Gen2 with Dynamic schema, similar like the model relationships.&amp;nbsp;&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;</description>
      <pubDate>Sun, 21 Apr 2024 14:20:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3856820#M2764</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-04-21T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Analytics Endpoint - Table constraints disappear after running Dataflow Gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3860156#M2779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437984" data-lia-user-login="frithjof_v" class="lia-mention lia-mention-user"&gt;frithjof_v&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apologies for the issue you have been facing. Thanks for the feedback. I have forwarded the feedback to the internal team.&lt;BR /&gt;Hope this helps. Please let me know if you have any further queries. Glad to help.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 18:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/SQL-Analytics-Endpoint-Table-constraints-disappear-after-running/m-p/3860156#M2779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-22T18:04:49Z</dc:date>
    </item>
  </channel>
</rss>

