<?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 Lakehouse Shortcut to Data Warehouse not working in notebooks after refresh of SQL Endpoint in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4652550#M8586</link>
    <description>&lt;P&gt;I am using data warehouse tables in notebooks. My initial setup was to attach the warehouse to the notebook and read the table. This is no longer possible and I am therefore creating lakehouse schema shortcut (using preview feature with lakehouse schemas) to data warehouse schema. This setup has been working until I started refreshing the sql endpoints of the lakehouse shortcuts (because they otherwise have outdated data or are not working when using sql endpoint) with&amp;nbsp;&lt;BR /&gt;uri = f"/v1.0/myorg/lhdatamarts/{sqlendpoint_id}"&lt;BR /&gt;payload = {"commands":[{"$type":"MetadataRefreshExternalCommand"}]}&lt;BR /&gt;response = client.post(uri, json=payload)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now I get this error:&amp;nbsp;&lt;SPAN&gt;[DELTA_FEATURES_PROTOCOL_METADATA_MISMATCH] Unable to operate on this table because the following table features are enabled in metadata but not listed in protocol: invariants.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sql endpoint of the lakehouse shortcut works fine. I can also preview the data in the lakehouse (not sql endpoint). I have tried reading with pyspark and t-sql in the notebook. They both throw the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Apr 2025 23:35:16 GMT</pubDate>
    <dc:creator>mrtnhd</dc:creator>
    <dc:date>2025-04-14T23:35:16Z</dc:date>
    <item>
      <title>Lakehouse Shortcut to Data Warehouse not working in notebooks after refresh of SQL Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4652550#M8586</link>
      <description>&lt;P&gt;I am using data warehouse tables in notebooks. My initial setup was to attach the warehouse to the notebook and read the table. This is no longer possible and I am therefore creating lakehouse schema shortcut (using preview feature with lakehouse schemas) to data warehouse schema. This setup has been working until I started refreshing the sql endpoints of the lakehouse shortcuts (because they otherwise have outdated data or are not working when using sql endpoint) with&amp;nbsp;&lt;BR /&gt;uri = f"/v1.0/myorg/lhdatamarts/{sqlendpoint_id}"&lt;BR /&gt;payload = {"commands":[{"$type":"MetadataRefreshExternalCommand"}]}&lt;BR /&gt;response = client.post(uri, json=payload)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now I get this error:&amp;nbsp;&lt;SPAN&gt;[DELTA_FEATURES_PROTOCOL_METADATA_MISMATCH] Unable to operate on this table because the following table features are enabled in metadata but not listed in protocol: invariants.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sql endpoint of the lakehouse shortcut works fine. I can also preview the data in the lakehouse (not sql endpoint). I have tried reading with pyspark and t-sql in the notebook. They both throw the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea how to fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 23:35:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4652550#M8586</guid>
      <dc:creator>mrtnhd</dc:creator>
      <dc:date>2025-04-14T23:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse Shortcut to Data Warehouse not working in notebooks after refresh of SQL Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4652953#M8590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/781146"&gt;@mrtnhd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your goal is to read/write data from/to the warehouse then check this spark connector for Datawarehouse!&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector?tabs=pyspark" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector?tabs=pyspark&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You don't have to create shortcuts on top of your warehouse tables!&lt;BR /&gt;Hope this is helpful, If so please accept this answer!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 06:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4652953#M8590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-15T06:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse Shortcut to Data Warehouse not working in notebooks after refresh of SQL Endpoint</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4653068#M8591</link>
      <description>&lt;P&gt;Thank you so much! That seems to solve my issue. It works fine in at least one notebook.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 07:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-Shortcut-to-Data-Warehouse-not-working-in-notebooks/m-p/4653068#M8591</guid>
      <dc:creator>mrtnhd</dc:creator>
      <dc:date>2025-04-15T07:03:02Z</dc:date>
    </item>
  </channel>
</rss>

