<?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: system.ai.python_exec suddenly failing with UNRESOLVED_ROUTINE on Azure (West US) since May 27 ~ in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/158310#M2854</link>
    <description>&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 [&amp;quot;blockquote&amp;quot;,{&amp;quot;dir&amp;quot;:&amp;quot;auto&amp;quot;}]"&gt;Hi, just had a quick look into this and it looks unlikely to be a customer-side permissions issue. &lt;CODE&gt;system.ai.python_exec&lt;/CODE&gt; is a built-in Databricks function/tool, and there have been region-specific cases where the function was unavailable because it had been disabled or not correctly rolled out in a given region. The fact that an equivalent function works fine in a non-system catalog strongly suggests the execution path is healthy and the issue is specific to the built-in &lt;CODE&gt;system.ai&lt;/CODE&gt; copy. If you're still getting this problem I'd recommend opening a support ticket with workspace ID, metastore ID, cloud/region, and first-failure timestamp.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 [&amp;quot;blockquote&amp;quot;,{&amp;quot;dir&amp;quot;:&amp;quot;auto&amp;quot;}]"&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Emma&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2026 14:05:32 GMT</pubDate>
    <dc:creator>emma_s</dc:creator>
    <dc:date>2026-06-04T14:05:32Z</dc:date>
    <item>
      <title>system.ai.python_exec suddenly failing with UNRESOLVED_ROUTINE on Azure (West US) since May 27 ~4pm</title>
      <link>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/157938#M2851</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're hitting a sudden failure with Databrick's built-in python sandbox&amp;nbsp;system.ai.python_exec function and want to check whether others are seeing the same thing, since it looks region-specific.&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cloud: Azure Databricks&lt;/LI&gt;&lt;LI&gt;Region: West US&lt;/LI&gt;&lt;LI&gt;Both interactive notebooks and serverless&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This was working reliably until Wednesday, May 27 at ~4:00 PM EST. Immediately after that, calls to system.ai.python_exec began failing. Nothing changed on our side. No permission edits, no code changes, no runtime upgrade.&lt;BR /&gt;&lt;BR /&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{"ts": "2026-05-29 17:30:20.716", "level": "ERROR", "logger": "pyspark.sql.connect.logging", "msg": "GRPC Error received", "context": {}, "exception": {"class": "_MultiThreadedRendezvous", "msg": "&amp;lt;_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.INTERNAL
details = "[UNRESOLVED_ROUTINE] Cannot resolve routine `system`.`ai`.`python_exec` on search path [`system`.`session`, `system`.`builtin`, `system`.`ai`, `system`.`default`].
Verify the spelling of `system`.`ai`.`python_exec`, check that the routine exists, and confirm you have `USE` privilege on the catalog and schema, and EXECUTE on the routine.&lt;/LI-CODE&gt;&lt;P&gt;You can see that system.ai&amp;nbsp;is in the search path shown in the error, so the resolver is looking in the right place, it just can't find the routine.&lt;/P&gt;&lt;P class=""&gt;What we've already verified:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;USE on the system catalog and ai schema, and EXECUTE on the routine, all permissions are intact and unchanged.&lt;/LI&gt;&lt;LI&gt;The fully qualified name system.ai.python_exec is correct (no typo, no missing qualifier).&lt;/LI&gt;&lt;LI&gt;No change on our end coincided with the failure time.&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Workaround that works for us:&lt;BR /&gt;Recreating the same python_exec function in a &lt;STRONG&gt;non-system catalog&lt;/STRONG&gt; and calling it there works fine in the &lt;EM&gt;same&lt;/EM&gt; region. So the underlying compute/execution path is healthy. The issue appears specific to resolving/executing the built-in copy under system.ai.&lt;/P&gt;&lt;P class=""&gt;Question for the community / Databricks&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;Is anyone else seeing system.ai.python_exec fail to resolve on Azure West US (or other regions), across notebooks and serverless?&lt;/LI&gt;&lt;LI&gt;Is this a known regional issue or a recent change to the system.ai schema?&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Any confirmation or pointers appreciated. Happy to share more details with Databricks staff if helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 21:40:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/157938#M2851</guid>
      <dc:creator>sundarep_cav</dc:creator>
      <dc:date>2026-05-29T21:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: system.ai.python_exec suddenly failing with UNRESOLVED_ROUTINE on Azure (West US) since May 27 ~</title>
      <link>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/158310#M2854</link>
      <description>&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 [&amp;quot;blockquote&amp;quot;,{&amp;quot;dir&amp;quot;:&amp;quot;auto&amp;quot;}]"&gt;Hi, just had a quick look into this and it looks unlikely to be a customer-side permissions issue. &lt;CODE&gt;system.ai.python_exec&lt;/CODE&gt; is a built-in Databricks function/tool, and there have been region-specific cases where the function was unavailable because it had been disabled or not correctly rolled out in a given region. The fact that an equivalent function works fine in a non-system catalog strongly suggests the execution path is healthy and the issue is specific to the built-in &lt;CODE&gt;system.ai&lt;/CODE&gt; copy. If you're still getting this problem I'd recommend opening a support ticket with workspace ID, metastore ID, cloud/region, and first-failure timestamp.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 [&amp;quot;blockquote&amp;quot;,{&amp;quot;dir&amp;quot;:&amp;quot;auto&amp;quot;}]"&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Emma&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 14:05:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/158310#M2854</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2026-06-04T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: system.ai.python_exec suddenly failing with UNRESOLVED_ROUTINE on Azure (West US) since May 27 ~</title>
      <link>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/160018#M2870</link>
      <description>&lt;P&gt;Do you have any updates?&lt;BR /&gt;&lt;BR /&gt;I have the same issue AWS Databricks in us-west-2 region. The only thing looks very confusing to me that result of this code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;USE CATALOG system;
USE SCHEMA ai;

SELECT python_exec('print("hello")');&lt;/LI-CODE&gt;&lt;P&gt;Contains duplicates mention of `system.ai` :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[UNRESOLVED_ROUTINE] Cannot resolve routine `python_exec` on search path [`system`.`session`, `system`.`builtin`, `system`.`ai`, `system`.`ai`].
Verify the spelling of `python_exec`, check that the routine exists, and confirm you have `USE` privilege on the catalog and schema, and EXECUTE on the routine. SQLSTATE: 42883
== SQL (line 37, position 8) ==
SELECT python_exec('print("hello")')&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Jun 2026 02:27:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/system-ai-python-exec-suddenly-failing-with-unresolved-routine/m-p/160018#M2870</guid>
      <dc:creator>rm_epam</dc:creator>
      <dc:date>2026-06-22T02:27:39Z</dc:date>
    </item>
  </channel>
</rss>

