<?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 Reading shortcut table from notebook erroring DELTA_FEATURES_PROTOCOL_METADATA_MISMATCH in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Reading-shortcut-table-from-notebook-erroring-DELTA-FEATURES/m-p/4665654#M8804</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have a data warehouse table and have a shortcut in Lakehouse to read from it. This setup works perfectly in my development workspace. However, after deploying it to production, I noticed that the shortcut points to my dev warehouse table. So I dropped the Lakehouse shortcut in prod and recreated it to connect to the production data warehouse table. While I can open and view the data from the production lakehouse shortcut table, I encounter an error when trying to read from the notebook using the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config_query = f"SELECT * FROM AF_DE_LH_Bronze.dbo.SCConfig"&lt;/P&gt;&lt;P&gt;config_df = spark.sql(config_query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error out with the following.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o341.sql. : org.apache.spark.sql.delta.DeltaTableFeatureException: [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;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone experienced a similar issue? If so, how did you resolve it? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 22:08:21 GMT</pubDate>
    <dc:creator>mdoss</dc:creator>
    <dc:date>2025-04-23T22:08:21Z</dc:date>
    <item>
      <title>Reading shortcut table from notebook erroring DELTA_FEATURES_PROTOCOL_METADATA_MISMATCH</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Reading-shortcut-table-from-notebook-erroring-DELTA-FEATURES/m-p/4665654#M8804</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a data warehouse table and have a shortcut in Lakehouse to read from it. This setup works perfectly in my development workspace. However, after deploying it to production, I noticed that the shortcut points to my dev warehouse table. So I dropped the Lakehouse shortcut in prod and recreated it to connect to the production data warehouse table. While I can open and view the data from the production lakehouse shortcut table, I encounter an error when trying to read from the notebook using the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config_query = f"SELECT * FROM AF_DE_LH_Bronze.dbo.SCConfig"&lt;/P&gt;&lt;P&gt;config_df = spark.sql(config_query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error out with the following.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o341.sql. : org.apache.spark.sql.delta.DeltaTableFeatureException: [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;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone experienced a similar issue? If so, how did you resolve it? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 22:08:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Reading-shortcut-table-from-notebook-erroring-DELTA-FEATURES/m-p/4665654#M8804</guid>
      <dc:creator>mdoss</dc:creator>
      <dc:date>2025-04-23T22:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading shortcut table from notebook erroring DELTA_FEATURES_PROTOCOL_METADATA_MISMATCH</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Reading-shortcut-table-from-notebook-erroring-DELTA-FEATURES/m-p/4665665#M8805</link>
      <description>&lt;P&gt;I fixed this issue by updating a row in data warehouse table. This doesn't make sense and not sure why this is necessary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;update&lt;/SPAN&gt;&lt;SPAN&gt; dbo.ConfigETL&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt; ConfigId = &lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;where&lt;/SPAN&gt;&lt;SPAN&gt; ConfigId = &lt;/SPAN&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Apr 2025 22:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Reading-shortcut-table-from-notebook-erroring-DELTA-FEATURES/m-p/4665665#M8805</guid>
      <dc:creator>mdoss</dc:creator>
      <dc:date>2025-04-23T22:26:10Z</dc:date>
    </item>
  </channel>
</rss>

