<?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: MongoDB Spark Connector UC command is not supported without recommendation in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158326#M54697</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149095"&gt;@shan-databricks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is expected behaviour on Unity Catalog shared or standard compute. The mongodb Spark data source path can fail there with UC_COMMAND_NOT_SUPPORTED.WITHOUT_RECOMMENDATION / SQLSTATE 0AKUC. The public docs for that are &lt;A href="https://docs.databricks.com/aws/en/error-messages/uc-command-not-supported-error-class" rel="noopener noreferrer nofollow" target="_blank"&gt;UC_COMMAND_NOT_SUPPORTED&lt;/A&gt; and &lt;A href="https://docs.databricks.com/aws/en/compute/standard-limitations" rel="noopener noreferrer nofollow" target="_blank"&gt;Standard compute requirements and limitations&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;If the goal is to keep using the MongoDB Spark connector, the simplest fix is to move the workload to &lt;A href="https://docs.databricks.com/aws/en/compute/dedicated-overview" rel="noopener noreferrer nofollow" target="_blank"&gt;dedicated compute&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="_1ibi0s3d1" dir="auto"&gt;&lt;CODE class="language-python"&gt;df = (
    spark.read.format("mongodb")
    .option("connection.uri", MONGO_URI)
    .option("database", MONGO_DB)
    .option("collection", MONGO_COLLECTION)
    .load()
)

display(df)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;If the requirement is to stay on Unity Catalog compute, the alternative is a &lt;A href="https://docs.databricks.com/aws/en/connect/jdbc-connection" rel="noopener noreferrer nofollow" target="_blank"&gt;JDBC connection&lt;/A&gt;, which supports Spark read/write across Unity Catalog compute types once the JDBC driver and connection object are configured.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="_1ibi0s3d1" dir="auto"&gt;&lt;CODE class="language-python"&gt;df = (
    spark.read.format("jdbc")
    .option("databricks.connection", "my_jdbc_connection")
    .option("query", "select * from my_table")
    .load()
)

display(df)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;If your flow needs both MongoDB IO and UC-governed table operations, you can also consider splitting it into two stages. MongoDB read/write on dedicated compute, and the UC-governed transformations on the compute type best suited for those policies.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&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, 04 Jun 2026 19:10:45 GMT</pubDate>
    <dc:creator>Ashwin_DSA</dc:creator>
    <dc:date>2026-06-04T19:10:45Z</dc:date>
    <item>
      <title>MongoDB Spark Connector UC command is not supported without recommendation</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158313#M54695</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to read a MongoDB collection using spark.read.format("mongodb"). However, when I attempt to display the collection, I receive the error: "UC command is not supported without recommendation." Please help resolve this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 15:00:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158313#M54695</guid>
      <dc:creator>shan-databricks</dc:creator>
      <dc:date>2026-06-04T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB Spark Connector UC command is not supported without recommendation</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158316#M54696</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149095"&gt;@shan-databricks&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try to use dedicated access mode instead of standard (shared).&amp;nbsp;&lt;SPAN&gt;Probably mongodb connector requires access to some API which is blocked in standard access mode (i.e data source v2), but is allowed in dedicated access mode.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If my answer was helpful, please consider marking it as solution&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 15:46:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158316#M54696</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2026-06-04T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: MongoDB Spark Connector UC command is not supported without recommendation</title>
      <link>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158326#M54697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/149095"&gt;@shan-databricks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is expected behaviour on Unity Catalog shared or standard compute. The mongodb Spark data source path can fail there with UC_COMMAND_NOT_SUPPORTED.WITHOUT_RECOMMENDATION / SQLSTATE 0AKUC. The public docs for that are &lt;A href="https://docs.databricks.com/aws/en/error-messages/uc-command-not-supported-error-class" rel="noopener noreferrer nofollow" target="_blank"&gt;UC_COMMAND_NOT_SUPPORTED&lt;/A&gt; and &lt;A href="https://docs.databricks.com/aws/en/compute/standard-limitations" rel="noopener noreferrer nofollow" target="_blank"&gt;Standard compute requirements and limitations&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;If the goal is to keep using the MongoDB Spark connector, the simplest fix is to move the workload to &lt;A href="https://docs.databricks.com/aws/en/compute/dedicated-overview" rel="noopener noreferrer nofollow" target="_blank"&gt;dedicated compute&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="_1ibi0s3d1" dir="auto"&gt;&lt;CODE class="language-python"&gt;df = (
    spark.read.format("mongodb")
    .option("connection.uri", MONGO_URI)
    .option("database", MONGO_DB)
    .option("collection", MONGO_COLLECTION)
    .load()
)

display(df)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;If the requirement is to stay on Unity Catalog compute, the alternative is a &lt;A href="https://docs.databricks.com/aws/en/connect/jdbc-connection" rel="noopener noreferrer nofollow" target="_blank"&gt;JDBC connection&lt;/A&gt;, which supports Spark read/write across Unity Catalog compute types once the JDBC driver and connection object are configured.&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="_1ibi0s3d1" dir="auto"&gt;&lt;CODE class="language-python"&gt;df = (
    spark.read.format("jdbc")
    .option("databricks.connection", "my_jdbc_connection")
    .option("query", "select * from my_table")
    .load()
)

display(df)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;If your flow needs both MongoDB IO and UC-governed table operations, you can also consider splitting it into two stages. MongoDB read/write on dedicated compute, and the UC-governed transformations on the compute type best suited for those policies.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&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, 04 Jun 2026 19:10:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/mongodb-spark-connector-uc-command-is-not-supported-without/m-p/158326#M54697</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-06-04T19:10:45Z</dc:date>
    </item>
  </channel>
</rss>

