<?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: credential delegation not found (404) / permission delegation name (500) in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162597#M1936</link>
    <description>&lt;P&gt;Summary:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Yes — result retrieval is tied to the query’s credential/delegation model.&lt;/STRONG&gt; Your 404/500 messages point to missing or unresolved permission delegation for those stored results, not missing &lt;CODE&gt;CAN MANAGE&lt;/CODE&gt; on the space. If you need a monitoring service principal to read results consistently, the safest pattern is to run the Genie/API workload under a &lt;STRONG&gt;shared service-principal identity&lt;/STRONG&gt; rather than per-end-user delegated credentials.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Genie Chat Sharing matters.&lt;/STRONG&gt; When enabled, and when a conversation is set to &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt;, users with &lt;CODE&gt;CAN MANAGE&lt;/CODE&gt; can review the &lt;STRONG&gt;full conversation/results&lt;/STRONG&gt;; if the conversation is &lt;STRONG&gt;Private&lt;/STRONG&gt;, managers can see prompts but &lt;STRONG&gt;not&lt;/STRONG&gt; results. Existing conversations created before the feature was enabled stay &lt;STRONG&gt;Private&lt;/STRONG&gt;; new ones default to &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt; after enablement.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;The 500 &lt;CODE&gt;DATA_LOSS&lt;/CODE&gt; / “permission delegation name” looks like a backend issue or mis-propagated sharing/delegation state.&lt;/STRONG&gt; The wording matches internal delegation plumbing, where the delegation name must be persisted and later assumed; if it is missing, retrieval can fail exactly this way.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;Recommendation:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Turn on &lt;STRONG&gt;Workspace Admin → Previews → Genie Chat Sharing&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Ensure the conversations you want monitored are &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt; (or All account users), not Private.&lt;/LI&gt;
&lt;LI&gt;For reliable machine monitoring, prefer a &lt;STRONG&gt;shared SP-run integration&lt;/STRONG&gt; that creates/reads the conversations itself.&lt;/LI&gt;
&lt;LI&gt;For the failing 500/404 cases, open a support/engineering ticket with the &lt;STRONG&gt;request_ids&lt;/STRONG&gt; — this likely needs server-side investigation of missing delegation metadata.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Most likely root cause in your case: &lt;STRONG&gt;those conversations/results were created without a retrievable delegation context for the monitoring SP&lt;/STRONG&gt;. Enabling Chat Sharing helps manager visibility, but if the stored delegation metadata is missing, you’ll still need a backend fix for those affected conversations.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2026 18:17:44 GMT</pubDate>
    <dc:creator>Lu_Wang_ENB_DBX</dc:creator>
    <dc:date>2026-07-10T18:17:44Z</dc:date>
    <item>
      <title>credential delegation not found (404) / permission delegation name (500)</title>
      <link>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162374#M1931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We run a monitoring integration that reads a Genie space's conversations via the Conversation API, using a service principal with CAN MANAGE on the space - capturing each conversation's prompt, generated SQL, and query result.&lt;/P&gt;&lt;P&gt;Listing conversations and reading the prompt + SQL work fine. Fetching the query result fails:&lt;/P&gt;&lt;P&gt;GET /genie/spaces/{space}/conversations/{conv}/messages/{msg}/attachments/{att}/query-result&lt;/P&gt;&lt;P&gt;- Most: 404 NOT_FOUND - "Could not generate a reply because the required credential delegation was not found."&lt;BR /&gt;- Some: 500 DATA_LOSS - "Attempted to use embedded credentials but could not find permission delegation name."&lt;/P&gt;&lt;P&gt;The wording suggests the results were produced under a credential/permission delegation that the service principal can't resolve when fetching them later.&lt;/P&gt;&lt;P&gt;What we're trying to figure out is what to change so a monitoring service principal can read these results:&lt;BR /&gt;1. Is retrieval tied to how the space runs queries - end-user credentials vs a shared/"maker" service credential - and would switching to a shared credential make results retrievable by a service principal?&lt;BR /&gt;2. Is there a space/workspace setting (e.g. "Genie chat sharing" / "Reviewable by space managers") that makes results retrievable via the API for a non-owner service principal, or does it only affect UI visibility?&lt;BR /&gt;3. Is the 500 DATA_LOSS / "permission delegation name" a known issue or a fixable misconfiguration? Happy to share server-side request_ids if needed.&lt;/P&gt;&lt;P class=""&gt;The goal is to advise the space owner on the exact change needed, or, if we need to change something in how we use the APIs, address that as well. Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 15:23:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162374#M1931</guid>
      <dc:creator>ncastagnet_mc</dc:creator>
      <dc:date>2026-07-09T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: credential delegation not found (404) / permission delegation name (500)</title>
      <link>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162597#M1936</link>
      <description>&lt;P&gt;Summary:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Yes — result retrieval is tied to the query’s credential/delegation model.&lt;/STRONG&gt; Your 404/500 messages point to missing or unresolved permission delegation for those stored results, not missing &lt;CODE&gt;CAN MANAGE&lt;/CODE&gt; on the space. If you need a monitoring service principal to read results consistently, the safest pattern is to run the Genie/API workload under a &lt;STRONG&gt;shared service-principal identity&lt;/STRONG&gt; rather than per-end-user delegated credentials.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Genie Chat Sharing matters.&lt;/STRONG&gt; When enabled, and when a conversation is set to &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt;, users with &lt;CODE&gt;CAN MANAGE&lt;/CODE&gt; can review the &lt;STRONG&gt;full conversation/results&lt;/STRONG&gt;; if the conversation is &lt;STRONG&gt;Private&lt;/STRONG&gt;, managers can see prompts but &lt;STRONG&gt;not&lt;/STRONG&gt; results. Existing conversations created before the feature was enabled stay &lt;STRONG&gt;Private&lt;/STRONG&gt;; new ones default to &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt; after enablement.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;The 500 &lt;CODE&gt;DATA_LOSS&lt;/CODE&gt; / “permission delegation name” looks like a backend issue or mis-propagated sharing/delegation state.&lt;/STRONG&gt; The wording matches internal delegation plumbing, where the delegation name must be persisted and later assumed; if it is missing, retrieval can fail exactly this way.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;Recommendation:&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;Turn on &lt;STRONG&gt;Workspace Admin → Previews → Genie Chat Sharing&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Ensure the conversations you want monitored are &lt;STRONG&gt;Reviewable by space managers&lt;/STRONG&gt; (or All account users), not Private.&lt;/LI&gt;
&lt;LI&gt;For reliable machine monitoring, prefer a &lt;STRONG&gt;shared SP-run integration&lt;/STRONG&gt; that creates/reads the conversations itself.&lt;/LI&gt;
&lt;LI&gt;For the failing 500/404 cases, open a support/engineering ticket with the &lt;STRONG&gt;request_ids&lt;/STRONG&gt; — this likely needs server-side investigation of missing delegation metadata.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Most likely root cause in your case: &lt;STRONG&gt;those conversations/results were created without a retrievable delegation context for the monitoring SP&lt;/STRONG&gt;. Enabling Chat Sharing helps manager visibility, but if the stored delegation metadata is missing, you’ll still need a backend fix for those affected conversations.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2026 18:17:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162597#M1936</guid>
      <dc:creator>Lu_Wang_ENB_DBX</dc:creator>
      <dc:date>2026-07-10T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: credential delegation not found (404) / permission delegation name (500)</title>
      <link>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162885#M1938</link>
      <description>&lt;P&gt;Thank you very much, &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/2230"&gt;@Lu_Wang_ENB_DBX&lt;/a&gt;&amp;nbsp;&amp;nbsp; — this is really helpful and provides great insights! As a first step, we’ll ask the customer enable Genie chat sharing and check whether our monitoring identity can then read the results. If the 404s/500s persist, we’ll file a support ticket with the request IDs and more details. Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 22:13:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/credential-delegation-not-found-404-permission-delegation-name/m-p/162885#M1938</guid>
      <dc:creator>ncastagnet_mc</dc:creator>
      <dc:date>2026-07-13T22:13:27Z</dc:date>
    </item>
  </channel>
</rss>

