<?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: Create External Catalog when dbname has special characters in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157389#M54541</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230833"&gt;@micheloh&lt;/a&gt;,&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;From what we’ve seen, this is currently a limitation of Lakehouse Federation foreign catalog creation rather than a problem with the connection itself.&lt;/P&gt;
&lt;P&gt;The PostgreSQL connection can succeed, but the database value used when creating the foreign catalog is still validated, and names containing special characters such as : can trigger the [DATA_SOURCE_OPTION_CONTAINS_INVALID_CHARACTERS] error. Unfortunately, quoting or escaping the database name does not currently get around that validation.&lt;/P&gt;
&lt;P&gt;So if the source database name cannot be changed, there isn’t a supported way today to create a foreign catalog directly against that database name.&lt;/P&gt;
&lt;P&gt;The practical workaround for now is to access the PostgreSQL database through JDBC from a notebook or job instead of using a foreign catalog.&lt;/P&gt;
&lt;P&gt;Sorry, we don’t have a better answer here.&lt;/P&gt;
&lt;P&gt;FYI. There was a similar &lt;A href="https://community.databricks.com/t5/warehousing-analytics/backspaces-in-foreign-catalog-table-names/m-p/72714#M1381" target="_blank"&gt;question&lt;/A&gt; in the past, too.&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2026 10:03:35 GMT</pubDate>
    <dc:creator>Ashwin_DSA</dc:creator>
    <dc:date>2026-05-21T10:03:35Z</dc:date>
    <item>
      <title>Create External Catalog when dbname has special characters</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157366#M54539</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I'm having a problem when trying to create an external catalog with my PostgreSQL database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The connection is fine. But the database name that I want to connect has dashes and colon (eg. my-db-prod:all). When trying to connect with it, I always get the error&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[DATA_SOURCE_OPTION_CONTAINS_INVALID_CHARACTERS] Option database must not be empty and should not contain invalid characters, query strings, or parameters. SQLSTATE: 42602&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is it has any way to create the catalog with this dbname? Unfortunately I cannot change the dbname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 22:20:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157366#M54539</guid>
      <dc:creator>micheloh</dc:creator>
      <dc:date>2026-05-20T22:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create External Catalog when dbname has special characters</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157388#M54540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230833"&gt;@micheloh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You should try url-encoding your db(my-db-prod%3Aall)&lt;BR /&gt;&lt;SPAN&gt;Any reserved characters for URLs (for example, /, :, @, (, ), [, ], &amp;amp;, #, =, ?, and space) that appear in any part of the connection URL must be percent encoded. See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.rfc-editor.org/rfc/rfc3986#section-2" target="_blank"&gt;RFC 3986&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for details.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 09:57:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157388#M54540</guid>
      <dc:creator>ziafazal</dc:creator>
      <dc:date>2026-05-21T09:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create External Catalog when dbname has special characters</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157389#M54541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230833"&gt;@micheloh&lt;/a&gt;,&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;From what we’ve seen, this is currently a limitation of Lakehouse Federation foreign catalog creation rather than a problem with the connection itself.&lt;/P&gt;
&lt;P&gt;The PostgreSQL connection can succeed, but the database value used when creating the foreign catalog is still validated, and names containing special characters such as : can trigger the [DATA_SOURCE_OPTION_CONTAINS_INVALID_CHARACTERS] error. Unfortunately, quoting or escaping the database name does not currently get around that validation.&lt;/P&gt;
&lt;P&gt;So if the source database name cannot be changed, there isn’t a supported way today to create a foreign catalog directly against that database name.&lt;/P&gt;
&lt;P&gt;The practical workaround for now is to access the PostgreSQL database through JDBC from a notebook or job instead of using a foreign catalog.&lt;/P&gt;
&lt;P&gt;Sorry, we don’t have a better answer here.&lt;/P&gt;
&lt;P&gt;FYI. There was a similar &lt;A href="https://community.databricks.com/t5/warehousing-analytics/backspaces-in-foreign-catalog-table-names/m-p/72714#M1381" target="_blank"&gt;question&lt;/A&gt; in the past, too.&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 10:03:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157389#M54541</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-21T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create External Catalog when dbname has special characters</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157458#M54564</link>
      <description>&lt;P&gt;unfortunately didn't work. As Ashwin_DSA said, probably I need to find another way to get the data from the postgreSQL&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 22:20:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157458#M54564</guid>
      <dc:creator>micheloh</dc:creator>
      <dc:date>2026-05-21T22:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create External Catalog when dbname has special characters</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157461#M54565</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;Well, I think there's no other way for now but create a function query using JDBC on a notebook. No problem with that. I was just trying to evade the work to complicate for final users to get the data as some tables are huge and the connection provided is limited (we're connecting with Query Service from Adobe Experience Platform and it has some limitations to query like time and processing as guardrails).&lt;/P&gt;&lt;P&gt;It's a good case to use genie though! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and regards,&lt;/P&gt;&lt;P&gt;micheloh&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 22:28:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-catalog-when-dbname-has-special-characters/m-p/157461#M54565</guid>
      <dc:creator>micheloh</dc:creator>
      <dc:date>2026-05-21T22:28:29Z</dc:date>
    </item>
  </channel>
</rss>

