<?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 when create an external location using code in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30286#M21939</link>
    <description>&lt;P&gt;Strange.  I can't test it myself as I am on Azure.&lt;/P&gt;&lt;P&gt;maybe it is the url you provide?  On Azure I also have to define the blob container and storage account:&lt;/P&gt;&lt;P&gt;&lt;I&gt;abfss://&amp;lt;container_name&amp;gt;@&amp;lt;storage_account&amp;gt;.dfs.core.windows.net/&amp;lt;path&amp;gt;&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 09:17:28 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2022-09-29T09:17:28Z</dc:date>
    <item>
      <title>Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30281#M21934</link>
      <description>&lt;P&gt;I'm trying to create an external location from notebook, and I got this kind of error&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'LOCATION'(line 1, pos 16)
&amp;nbsp;
== SQL ==
CREATE EXTERNAL LOCATION IF NOT EXISTS test_location URL 's3://test-bronze/db/test_schema/test_table' WITH (STORAGE CREDENTIAL test-credential)
----------------^^^&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried with DBR10.4, DBR11.1 and DBR11.2, unfortunately, none of them worked.&lt;/P&gt;&lt;P&gt;However, &lt;I&gt;SHOW EXTERNAL LOCATIONS &lt;/I&gt;and &lt;I&gt;DESCRIBE EXTERNAL LOCATION *** &lt;/I&gt;work just fine.&lt;/P&gt;&lt;P&gt;Also, I can create an external location from the UI without any problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how to solve this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:11:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30281#M21934</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-09-29T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30282#M21935</link>
      <description>&lt;P&gt;Seems to be ok at first sight.  Do you run it from Databricks SQL ( the SQL persona)?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:25:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30282#M21935</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-09-29T08:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30283#M21936</link>
      <description>&lt;P&gt;I tried with both Databricks SQL and notebook, but they outputted the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:29:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30283#M21936</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-09-29T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30284#M21937</link>
      <description>&lt;P&gt;can you create an external location from that particular location using the UI?&lt;/P&gt;&lt;P&gt;To exclude that being an issue...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:35:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30284#M21937</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-09-29T08:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30285#M21938</link>
      <description>&lt;P&gt;yes, the UI works fine&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:42:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30285#M21938</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-09-29T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30286#M21939</link>
      <description>&lt;P&gt;Strange.  I can't test it myself as I am on Azure.&lt;/P&gt;&lt;P&gt;maybe it is the url you provide?  On Azure I also have to define the blob container and storage account:&lt;/P&gt;&lt;P&gt;&lt;I&gt;abfss://&amp;lt;container_name&amp;gt;@&amp;lt;storage_account&amp;gt;.dfs.core.windows.net/&amp;lt;path&amp;gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:17:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30286#M21939</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-09-29T09:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30287#M21940</link>
      <description>&lt;P&gt;I just imitated the code from an example here &lt;A href="https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-an-external-location" alt="https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-an-external-location" target="_blank"&gt;https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-an-external-location&lt;/A&gt; and it's also the same path when I inputted to the UI. Now, I have no idea why it doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 11:07:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30287#M21940</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-09-29T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30289#M21942</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you very much for your response. &lt;/P&gt;&lt;P&gt;I've been trying to submit a case, but it always asks me to sign in. &lt;/P&gt;&lt;P&gt;After I signed in with my Databricks workspace account, it jumped to the community home page. So, I came to this post and clicked your link again, then it asked me to log in again.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 03:01:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30289#M21942</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-10-03T03:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30291#M21944</link>
      <description>&lt;P&gt;I am facing the same problem. Was this resolved? If so, what was the solution?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 19:48:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30291#M21944</guid>
      <dc:creator>constantins</dc:creator>
      <dc:date>2022-10-11T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30292#M21945</link>
      <description>&lt;P&gt;unfortunately, not yet&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 03:24:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30292#M21945</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-10-12T03:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30294#M21947</link>
      <description>&lt;P&gt;Hi, is there a new status here? Is there a workaround which does not include the GUI? I am using Databricks on Azure and i am running into the same issue.&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 20:30:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30294#M21947</guid>
      <dc:creator>mguentazdir</dc:creator>
      <dc:date>2022-11-09T20:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30295#M21948</link>
      <description>&lt;P&gt;It seems like error is due to '-' in the storage credential name, you need to use backticks `some-name`:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE EXTERNAL LOCATION IF NOT EXISTS test_location URL 's3://test-bronze/db/test_schema/test_table' WITH (STORAGE CREDENTIAL `test-credential`)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Patryk.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 22:00:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30295#M21948</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-09T22:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30296#M21949</link>
      <description>&lt;P&gt;It works! Thank you so much!!&lt;/P&gt;&lt;P&gt;There's no back tick in the example, so I didn't think about it at all.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 02:17:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30296#M21949</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-11-10T02:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30297#M21950</link>
      <description>&lt;P&gt;In my case, yes, the problem is solved. Please check the best answer.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 02:19:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/30297#M21950</guid>
      <dc:creator>noimeta</dc:creator>
      <dc:date>2022-11-10T02:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/60071#M31582</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I'm facing an issue with retrieving data from a volume or table that contains a string with a symbol, for example, 'databricks+'. Whenever I try to retrieve this data, I encounter a syntax error. Can anyone help me resolve this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:48:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/60071#M31582</guid>
      <dc:creator>Lokeshv</dc:creator>
      <dc:date>2024-02-13T16:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when create an external location using code</title>
      <link>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/104413#M41734</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am facing the same issue even with backticks, Is there anything else needs to be fixed in the query?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;EXTERNAL&lt;/SPAN&gt; &lt;SPAN&gt;LOCATION&lt;/SPAN&gt;&lt;SPAN&gt; examplelocation&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;URL&lt;/SPAN&gt; &lt;SPAN&gt;'abfss://&amp;lt;container&amp;gt;@&amp;lt;staccount&amp;gt;.dfs.core.windows.net/'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WITH&lt;/SPAN&gt; &lt;SPAN&gt;STORAGE&lt;/SPAN&gt; &lt;SPAN&gt;CREDENTIAL&lt;/SPAN&gt; &lt;SPAN&gt;`sc-test-cred-dev-mi-01`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Jan 2025 17:24:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-when-create-an-external-location-using-code/m-p/104413#M41734</guid>
      <dc:creator>karunakaran_r</dc:creator>
      <dc:date>2025-01-06T17:24:57Z</dc:date>
    </item>
  </channel>
</rss>

