<?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: Not able to read data from Delta External table in catalog in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/not-able-to-read-data-from-delta-external-table-in-catalog/m-p/108969#M43188</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147848"&gt;@bohemiaRDX&lt;/a&gt;&amp;nbsp;, Greetings!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Generally, this error would occur if the path is not added as an external location with storage credentials. Here the cluster could be trying to access the storage which doesn’t have UC storage credentials set nor any non UC access mechanisms like access keys/service principal setup and eventually failing with the given error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What’s Next:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Verify if the given storage location needs to be accessed via unity catalog or not.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If the usage is for unity catalog,&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;ensure that storage credentials and external location are set for the path access. Refer to &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#--connect-to-azure-data-lake-storage-gen2-with-unity-catalog" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#--connect-to-azure-data-lake-storage-gen2-with-unity-catalog&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/manage-external-locations-and-credentials" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/manage-external-locations-and-credentials&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;For table access failures, Verify if the schema has been set to UC one. This error may happen if it uses hive metastore catalog (may happen if there is no explicitl catalog and schema set + default catalog points to hive_metastore).&amp;nbsp; Below query is useful to find the current catalog and schema used.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="3"&gt;&lt;SPAN&gt;Select current_catalog(), current_schema()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If the usage is non UC based, ensure that relevant access configuration are in place. It can be set using OAuth 2.0 with an Azure service principal/SAS token/Account keys. These are usually set at notebook level/cluster spark configuration via UI/init script. For SQL warehouse, these are set in SQL warehouse settings for data access configuration.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Refer to &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; for more details.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Leave a like if this helps, followups are appreciated.&lt;BR /&gt;Kudos,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ayushi&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 14:41:43 GMT</pubDate>
    <dc:creator>Ayushi_Suthar</dc:creator>
    <dc:date>2025-02-05T14:41:43Z</dc:date>
    <item>
      <title>Not able to read data from Delta External table in catalog</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-to-read-data-from-delta-external-table-in-catalog/m-p/108882#M43169</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bohemiaRDX_0-1738733317354.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/14612iEF7013389710ED76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bohemiaRDX_0-1738733317354.png" alt="bohemiaRDX_0-1738733317354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.conf.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"fs.azure.account.key.sa02flexflowinpp01prod.dfs.core.windows.net"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; dbutils.secrets.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;scope&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"OpenScope"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"sa02StorageAccessKey"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I created an external table using this configuration I am able to query the data only when I run the above configuration. Also I am not able to see the sample data in catalog&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Feb 2025 05:33:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-to-read-data-from-delta-external-table-in-catalog/m-p/108882#M43169</guid>
      <dc:creator>bohemiaRDX</dc:creator>
      <dc:date>2025-02-05T05:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read data from Delta External table in catalog</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-to-read-data-from-delta-external-table-in-catalog/m-p/108969#M43188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/147848"&gt;@bohemiaRDX&lt;/a&gt;&amp;nbsp;, Greetings!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Generally, this error would occur if the path is not added as an external location with storage credentials. Here the cluster could be trying to access the storage which doesn’t have UC storage credentials set nor any non UC access mechanisms like access keys/service principal setup and eventually failing with the given error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What’s Next:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Verify if the given storage location needs to be accessed via unity catalog or not.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If the usage is for unity catalog,&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;ensure that storage credentials and external location are set for the path access. Refer to &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#--connect-to-azure-data-lake-storage-gen2-with-unity-catalog" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#--connect-to-azure-data-lake-storage-gen2-with-unity-catalog&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/manage-external-locations-and-credentials" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/manage-external-locations-and-credentials&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;For table access failures, Verify if the schema has been set to UC one. This error may happen if it uses hive metastore catalog (may happen if there is no explicitl catalog and schema set + default catalog points to hive_metastore).&amp;nbsp; Below query is useful to find the current catalog and schema used.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="3"&gt;&lt;SPAN&gt;Select current_catalog(), current_schema()&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If the usage is non UC based, ensure that relevant access configuration are in place. It can be set using OAuth 2.0 with an Azure service principal/SAS token/Account keys. These are usually set at notebook level/cluster spark configuration via UI/init script. For SQL warehouse, these are set in SQL warehouse settings for data access configuration.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Refer to &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials" target="_blank"&gt;&lt;SPAN&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; for more details.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Leave a like if this helps, followups are appreciated.&lt;BR /&gt;Kudos,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ayushi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 14:41:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-to-read-data-from-delta-external-table-in-catalog/m-p/108969#M43188</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2025-02-05T14:41:43Z</dc:date>
    </item>
  </channel>
</rss>

