<?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: Error Creating Table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/122721#M46847</link>
    <description>&lt;P&gt;Hi Lou,&lt;/P&gt;&lt;P&gt;Thank you so much for your detailed reply, and I apologize for leaving this open for so long.&amp;nbsp; I got wrapped up in another project and am just getting back to this.&lt;/P&gt;&lt;P&gt;I was able to resolve it, at least in my situation, last night, so I wanted to add what I found to this thread in case it helps someone else.&lt;/P&gt;&lt;P&gt;It used to be the case that you had to create the Access Connector for Databricks manually, then give it Storage Blob Data Contributor in the Storage Account (Azure).&amp;nbsp; Now, when you create a Databricks Workspace, it automatically creates the Access Connector (I have a related gripe with the way it names them - if you have multiple workspaces, theres no easy way to tell which is for which without hovering over it to see the full description).&amp;nbsp; We assumed this could be used and was attached to the Databricks workspace.&amp;nbsp; We made sure that this auto-generate Access Connector had Storage Blob Data Contributor to the new Storage Account.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to create the table with a defined EXTERNAL LOCATION, I got an error message that said "The credential &amp;lt;credential_name&amp;gt; is a workspace default credential that is only allowed to access data in the following paths &amp;lt;default_path&amp;gt;."&lt;/P&gt;&lt;P&gt;This made me realize that the Access Connectors that Databricks is creating are not allowed to be used on other Storage Accounts.&amp;nbsp; This is pretty odd to me, but it seems to be the case.&lt;/P&gt;&lt;P&gt;When I created a new Access Connector, tied to this same Databricks Workspace, then gave it Storage Blob Data Contributor, everything works as expected.&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Seth Parker&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2025 16:46:44 GMT</pubDate>
    <dc:creator>QLA_SethParker</dc:creator>
    <dc:date>2025-06-24T16:46:44Z</dc:date>
    <item>
      <title>Error Creating Table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/120860#M46263</link>
      <description>&lt;DIV&gt;We are a current Databricks customer (Azure Databricks) experiencing an issue when creating a table.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We have an existing Metastore in the Central region.&amp;nbsp; All other Workspaces in this Metastore/Region are behind Private Endpoints.&amp;nbsp; We are trying to create a new Workspace that is not behind private endpoints, but is only available to specific VNets.&amp;nbsp; We created the new Workspace.&amp;nbsp; We created a new External Location pointed at a new Storage Account Container (the networking on the new Storage Account is open to all endpoints currently).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We created a new Catalog using this new External Location.&amp;nbsp; When we try to create a table in this new catalog, we get the following error message:&lt;/DIV&gt;&lt;DIV&gt;[RequestId=ea69c411-f03c-905c-8365-05903941a65c ErrorClass=TABLE_DOES_NOT_EXIST.RESOURCE_DOES_NOT_EXIST] Table '4e8d7f5a-2f5a-4dd1-b9b7-5c646628da86' does not exist.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When we look in the storage account, we see that the folder for this new table was created:&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SethParker02_0-1748985494231.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17321i3505F2CC377604D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SethParker02_0-1748985494231.png" alt="SethParker02_0-1748985494231.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;I believe the permissions in and networking to the Storage Account are correct.&amp;nbsp; I am also able to create a Volume against this Storage Container and add/remove files from the Volume.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It seems like there is an issue in either the Metastore itself or Unity Catalog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As a note, if we create another Catalog without specifying an External Location, we are able to create a table without issue.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anyone have ideas of other things I can check that might cause this error?&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Jun 2025 21:21:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/120860#M46263</guid>
      <dc:creator>QLA_SethParker</dc:creator>
      <dc:date>2025-06-03T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error Creating Table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/120914#M46276</link>
      <description>&lt;P&gt;Although not formal support, here are some things to consider as you troubleshoot the problem:&lt;/P&gt;
&lt;P class="p1"&gt;This issue sounds like it stems from a &lt;SPAN class="s1"&gt;&lt;STRONG&gt;Unity Catalog external location configuration mismatch or permission issue&lt;/STRONG&gt;&lt;/SPAN&gt;, despite the external location itself being reachable. Here’s a structured checklist to help you troubleshoot the &lt;SPAN class="s2"&gt;[TABLE_DOES_NOT_EXIST.RESOURCE_DOES_NOT_EXIST]&lt;/SPAN&gt; error when creating a table:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;Things You’ve Already Verified&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Workspace is reachable and accessible&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; External location is created and points to a valid container&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Networking on the Storage Account is open to all endpoints&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Volume creation on the same location works (implying access is technically fine)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Table creation &lt;I&gt;without&lt;/I&gt; an external location works&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; &lt;/STRONG&gt;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;Troubleshooting Checklist&lt;/STRONG&gt;&lt;/H3&gt;
&lt;H4&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;&lt;STRONG&gt;Check External Location and Storage Credential Mapping&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;The storage credential is of the correct type (e.g., managed identity or service principal).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;It has permission (&lt;SPAN class="s1"&gt;Storage Blob Data Contributor&lt;/SPAN&gt;) on the container &lt;SPAN class="s2"&gt;&lt;STRONG&gt;and the parent storage account&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Make sure the &lt;/SPAN&gt;&lt;STRONG&gt;external location&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; is correctly &lt;/SPAN&gt;&lt;STRONG&gt;mapped to a valid storage credential&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;, and that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Run this SQL in a Databricks notebook in the new workspace to inspect:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DESCRIBE EXTERNAL LOCATION `&amp;lt;your_external_location_name&amp;gt;`;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;&lt;STRONG&gt;Catalog Permissions&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Ensure that your Unity Catalog &lt;SPAN class="s1"&gt;&lt;STRONG&gt;catalog&lt;/STRONG&gt;&lt;/SPAN&gt; is correctly referencing the external location:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DESCRIBE CATALOG `&amp;lt;your_catalog_name&amp;gt;`;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;USE CATALOG &amp;lt;catalog&amp;gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;CREATE TABLE&lt;/SPAN&gt; privilege on the catalog or schema level&lt;/P&gt;
&lt;P class="p1"&gt;Also check if the user (or the group they belong to) has both of these:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&lt;STRONG&gt;3. &lt;/STRONG&gt;&lt;STRONG&gt;Check the Metastore Assignment&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Go to &lt;/SPAN&gt;&lt;STRONG&gt;Admin Console → Unity Catalog → Metastore assignments&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Make sure the new workspace is correctly assigned and not in an inconsistent state&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Confirm the workspace is &lt;/SPAN&gt;&lt;STRONG&gt;attached to the correct Unity Catalog metastore&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&lt;STRONG&gt;4. &lt;/STRONG&gt;&lt;STRONG&gt;Table Creation Command Structure&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;If you are doing a &lt;SPAN class="s1"&gt;CREATE TABLE&lt;/SPAN&gt; (non-managed), be sure you are &lt;SPAN class="s2"&gt;&lt;STRONG&gt;not mixing paths&lt;/STRONG&gt;&lt;/SPAN&gt; or missing specifications. This can trip up UC-managed external catalogs.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Try creating the table with an &lt;SPAN class="s1"&gt;&lt;STRONG&gt;explicit path override&lt;/STRONG&gt;&lt;/SPAN&gt; just to test:&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;CREATE TABLE my_catalog.my_schema.my_table (id INT)
LOCATION 'abfss://&amp;lt;container&amp;gt;@&amp;lt;account&amp;gt;.dfs.core.windows.net/&amp;lt;some_subpath&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;5. &lt;/STRONG&gt;&lt;STRONG&gt;Schema Directory Issue&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Manually create the schema directory, or try:&lt;/P&gt;
&lt;P class="p1"&gt;If the schema (aka “database”) directory does not yet exist in the storage account (under &lt;SPAN class="s1"&gt;/catalog_name/schema_name/&lt;/SPAN&gt;), Databricks may fail silently or with confusing errors.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;CREATE SCHEMA my_catalog.my_schema;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;6. &lt;/STRONG&gt;&lt;STRONG&gt;Unity Catalog Table Path Validation&lt;/STRONG&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Try checking the table metadata in UC using:&lt;/P&gt;
&lt;P class="p1"&gt;Unity Catalog uses a specific metadata path structure. If the UC metastore cannot &lt;SPAN class="s1"&gt;&lt;STRONG&gt;reconcile the metadata with the storage path&lt;/STRONG&gt;&lt;/SPAN&gt;, it may show &lt;SPAN class="s2"&gt;RESOURCE_DOES_NOT_EXIST&lt;/SPAN&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SHOW TABLES IN my_catalog.my_schema;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":hammer_and_wrench:"&gt;🛠&lt;/span&gt;️ Additional Recommendations&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Try recreating the external location&lt;/STRONG&gt;&lt;/SPAN&gt; using the Databricks UI and make sure it’s validated.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Double check &lt;SPAN class="s1"&gt;&lt;STRONG&gt;the workspace identity&lt;/STRONG&gt;&lt;/SPAN&gt; (Managed Identity or Service Principal) is the one configured in the storage credential and has access to the container.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;If all else fails: Try creating the same setup in a test workspace with minimal security configs to rule out weird propagation or policy issues.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;🧩 Root Cause Theories&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P class="p3"&gt;Based on your description, here are the likely culprits:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Unity Catalog is &lt;SPAN class="s1"&gt;&lt;STRONG&gt;unable to register or recognize the metadata&lt;/STRONG&gt;&lt;/SPAN&gt; for the new table due to a missing schema directory or improper mapping.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;external location credential identity&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; has storage access but not &lt;/SPAN&gt;&lt;STRONG&gt;metastore access&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;The workspace might not have fully propagated Unity Catalog setup after being added to the metastore.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;Hope this sets you in the right direction.&lt;/P&gt;
&lt;P class="p3"&gt;Cheers, Lou.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:37:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/120914#M46276</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-06-04T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error Creating Table</title>
      <link>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/122721#M46847</link>
      <description>&lt;P&gt;Hi Lou,&lt;/P&gt;&lt;P&gt;Thank you so much for your detailed reply, and I apologize for leaving this open for so long.&amp;nbsp; I got wrapped up in another project and am just getting back to this.&lt;/P&gt;&lt;P&gt;I was able to resolve it, at least in my situation, last night, so I wanted to add what I found to this thread in case it helps someone else.&lt;/P&gt;&lt;P&gt;It used to be the case that you had to create the Access Connector for Databricks manually, then give it Storage Blob Data Contributor in the Storage Account (Azure).&amp;nbsp; Now, when you create a Databricks Workspace, it automatically creates the Access Connector (I have a related gripe with the way it names them - if you have multiple workspaces, theres no easy way to tell which is for which without hovering over it to see the full description).&amp;nbsp; We assumed this could be used and was attached to the Databricks workspace.&amp;nbsp; We made sure that this auto-generate Access Connector had Storage Blob Data Contributor to the new Storage Account.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to create the table with a defined EXTERNAL LOCATION, I got an error message that said "The credential &amp;lt;credential_name&amp;gt; is a workspace default credential that is only allowed to access data in the following paths &amp;lt;default_path&amp;gt;."&lt;/P&gt;&lt;P&gt;This made me realize that the Access Connectors that Databricks is creating are not allowed to be used on other Storage Accounts.&amp;nbsp; This is pretty odd to me, but it seems to be the case.&lt;/P&gt;&lt;P&gt;When I created a new Access Connector, tied to this same Databricks Workspace, then gave it Storage Blob Data Contributor, everything works as expected.&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Seth Parker&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 16:46:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-creating-table/m-p/122721#M46847</guid>
      <dc:creator>QLA_SethParker</dc:creator>
      <dc:date>2025-06-24T16:46:44Z</dc:date>
    </item>
  </channel>
</rss>

