<?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: Pipeline → Notebook Activity fails with AADSTS65002 OBO token error on Fabric Trial capacity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159269#M9395</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1560298" data-lia-user-login="praveensreeram" class="lia-mention lia-mention-user"&gt;praveensreeram&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you are calling the notebook from the pipeline, are you using a connection? If so, are you using oauth, WI, or a service principal for that coonnection?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2026 13:28:19 GMT</pubDate>
    <dc:creator>tayloramy</dc:creator>
    <dc:date>2026-04-27T13:28:19Z</dc:date>
    <item>
      <title>Pipeline → Notebook Activity fails with AADSTS65002 OBO token error on Fabric Trial capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5158709#M9384</link>
      <description>&lt;P&gt;**Environment:**&lt;BR /&gt;- Capacity: Fabric Trial (FTL64) | Region: Central India&lt;BR /&gt;- Workspace Identity: wwi_dev (Service Principal)&lt;/P&gt;&lt;P&gt;**Problem:**&lt;BR /&gt;Notebook runs perfectly in interactive mode but fails every time from a Pipeline Notebook Activity — even with a basic print() statement (no Spark code).&lt;/P&gt;&lt;P&gt;**Error:**&lt;BR /&gt;```&lt;BR /&gt;Failed to create Livy session for executing notebook.&lt;BR /&gt;{&lt;BR /&gt;"code": "BadRequest",&lt;BR /&gt;"message": "Encountered internal error while calling TokenProvider to get obo token. The return code is BadRequest.",&lt;BR /&gt;"httpStatusCode": 500,&lt;BR /&gt;"ErrorSource": "Fabric/Core Platform AuthNZ and Metadata"&lt;BR /&gt;}&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;**Troubleshooting Completed:**&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Notebook runs fine interactively&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Tenant Settings enabled: Users can create Fabric items, Service principals can use Fabric APIs, read-only admin APIs, Notebooks can use Spark compute&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Workspace Identity configured with Contributor role&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Security group created &amp;amp; added to Admin API tenant settings&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; API permissions added to wwi_dev app registration: Microsoft Graph, Power BI Service, Azure Storage&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Admin consent granted&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Waited 15+ mins for propagation&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Environment created &amp;amp; attached to notebook&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Session tag added for High Concurrency mode&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Deleted &amp;amp; recreated Notebook activity in Pipeline&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Cancelled all queued/not-started runs in Monitor&lt;/P&gt;&lt;P&gt;**Root Cause Found:**&lt;BR /&gt;When attempting OAuth 2.0 authentication, I get:&lt;BR /&gt;```&lt;BR /&gt;AADSTS65002: Consent between first party application&lt;BR /&gt;'794d4046-fdd1-4645-a4c2-69a5ec34f39e' (Fabric Pipeline Service)&lt;BR /&gt;and first party resource '00000002-0000-0000-c000-000000000000'&lt;BR /&gt;(Microsoft Graph) must be configured via preauthorization.&lt;/P&gt;&lt;P&gt;Trace ID: ba96741d-16f9-4ec6-a7eb-5c3ff2322000&lt;BR /&gt;Correlation ID: 390c53b4-02c6-4516-9f66-c726d3c3dee1&lt;BR /&gt;Timestamp: 2026-04-26 04:41:29Z&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;Even as Global Admin, this consent CANNOT be granted — it requires Microsoft-level preauthorization between their own first-party apps.&lt;/P&gt;&lt;P&gt;**Questions:**&lt;BR /&gt;1. Is Pipeline → Notebook OBO token flow a known limitation on Fabric Trial?&lt;BR /&gt;2. Does this work on paid F SKU capacities?&lt;BR /&gt;3. Is AADSTS65002 between Fabric Pipeline Service and Microsoft Graph a known bug?&lt;BR /&gt;4. Any undocumented workaround besides Notebook Scheduler?&lt;/P&gt;&lt;P&gt;Currently blocked from using Pipeline → Notebook entirely on Trial. Only workaround is Notebook Scheduler which doesn't support dynamic parameter passing.&lt;/P&gt;&lt;P&gt;Any help appreciated! &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2026 15:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5158709#M9384</guid>
      <dc:creator>praveensreeram</dc:creator>
      <dc:date>2026-04-26T15:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pipeline → Notebook Activity fails with AADSTS65002 OBO token error on Fabric Trial capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159038#M9389</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1560298" data-lia-user-login="praveensreeram" class="lia-mention lia-mention-user"&gt;praveensreeram&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You have done nice debugging and lots of steps. Seem to be working.&lt;/P&gt;&lt;P&gt;Only few things to check.&lt;/P&gt;&lt;P&gt;If you can run this notebook successfully in interactive mode, does work via pipeline if there is no connection assigned to the run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 08:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159038#M9389</guid>
      <dc:creator>Lozovskyi</dc:creator>
      <dc:date>2026-04-27T08:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pipeline → Notebook Activity fails with AADSTS65002 OBO token error on Fabric Trial capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159269#M9395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1560298" data-lia-user-login="praveensreeram" class="lia-mention lia-mention-user"&gt;praveensreeram&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you are calling the notebook from the pipeline, are you using a connection? If so, are you using oauth, WI, or a service principal for that coonnection?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 13:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159269#M9395</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-04-27T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pipeline → Notebook Activity fails with AADSTS65002 OBO token error on Fabric Trial capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159312#M9396</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704884" data-lia-user-login="Lozovskyi" class="lia-mention lia-mention-user"&gt;Lozovskyi&lt;/a&gt;&amp;nbsp;, I fixed it sometime ago.&lt;/P&gt;&lt;P&gt;In regular Fabric - with connection, it's working&lt;/P&gt;&lt;P&gt;In Trail FAbric - with connection, it's not working. After removing the connection, it's working.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 14:08:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Pipeline-Notebook-Activity-fails-with-AADSTS65002-OBO-token/m-p/5159312#M9396</guid>
      <dc:creator>praveensreeram</dc:creator>
      <dc:date>2026-04-27T14:08:15Z</dc:date>
    </item>
  </channel>
</rss>

