<?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: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4828435#M63121</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1349136"&gt;@dimitraga10_&lt;/a&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 11:31:09 GMT</pubDate>
    <dc:creator>v-ssriganesh</dc:creator>
    <dc:date>2025-09-17T11:31:09Z</dc:date>
    <item>
      <title>Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4817129#M62976</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I’m facing an issue with a notebook I recently created on Fabric. I was using a service principal (SP) for authentication to connect to the semantic model and perform certain actions. However, I’m encountering unexpected behavior in my latest run, where errors that I was expecting no longer appear.&lt;/P&gt;&lt;P&gt;The notebook I’m referencing is from the &lt;A href="https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb" target="_blank" rel="noopener"&gt;semantic-link-labs/notebooks/Service Principal.ipynb at main · microsoft/semantic-link-labs · GitHub, specifically the &lt;STRONG&gt;Service Principal example. Here is the code I’m using:&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;A href="https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/A&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;with labs.service_principal_authentication( key_vault_uri=key_vault_uri, key_vault_tenant_id=key_vault_tenant_id, key_vault_client_id=key_vault_client_id, key_vault_client_secret=key_vault_client_secret): &lt;SPAN class=""&gt;with connect_semantic_model(dataset=DatasetName, workspace=WorkspaceName, readonly=&lt;SPAN class=""&gt;True) &lt;SPAN class=""&gt;as tom: &lt;SPAN class=""&gt;for t &lt;SPAN class=""&gt;in tom.model.Tables: &lt;SPAN class=""&gt;print(t.Name)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i was using this to authenticate and was able to do some modifications on the Semantic Model.&lt;/P&gt;&lt;P&gt;This approach worked perfectly till few days ago, but now I am getting the error provided below. Has there been any change to the API or authentication process recently?&lt;/P&gt;&lt;P&gt;Additionally, is there an alternative way to authenticate via service principal and make modifications to the semantic model using sempy labs?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks in advance,&amp;nbsp;&lt;BR /&gt;Dimitra&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;ERROR :&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;INFO | No environment configuration found. 2025-09-04 15:47:04,201 | INFO | ManagedIdentityCredential will use IMDS 2025-09-04 15:47:04,202 | INFO | FabricAnalyticsTokenCredentials acquired a token from ServicePrincipalTokenProvider &lt;SPAN class=""&gt;--------------------------------------------------------------------------- &lt;SPAN class=""&gt;ImportError Traceback (most recent call last) Cell &lt;SPAN class=""&gt;In[189], line 7 &lt;SPAN class=""&gt;1 &lt;SPAN class=""&gt;with labs&lt;SPAN class=""&gt;.service_principal_authentication( &lt;SPAN class=""&gt;2 key_vault_uri&lt;SPAN class=""&gt;=key_vault_uri, &lt;SPAN class=""&gt;3 key_vault_tenant_id&lt;SPAN class=""&gt;=key_vault_tenant_id, &lt;SPAN class=""&gt;4 key_vault_client_id&lt;SPAN class=""&gt;=key_vault_client_id, &lt;SPAN class=""&gt;5 key_vault_client_secret&lt;SPAN class=""&gt;=key_vault_client_secret): &lt;SPAN class=""&gt;----&amp;gt; 7 &lt;SPAN class=""&gt;with connect_semantic_model(dataset&lt;SPAN class=""&gt;=DatasetName, workspace&lt;SPAN class=""&gt;=WorkspaceName, readonly&lt;SPAN class=""&gt;=&lt;SPAN class=""&gt;True) &lt;SPAN class=""&gt;as tom: &lt;SPAN class=""&gt;8 &lt;SPAN class=""&gt;for t &lt;SPAN class=""&gt;in tom&lt;SPAN class=""&gt;.model&lt;SPAN class=""&gt;.Tables: &lt;SPAN class=""&gt;9 &lt;SPAN class=""&gt;print(t&lt;SPAN class=""&gt;.Name) File &lt;SPAN class=""&gt;~/cluster-env/trident_env/lib/python3.11/contextlib.py:137, in &lt;SPAN class=""&gt;_GeneratorContextManager.__enter__&lt;SPAN class=""&gt;(self) &lt;SPAN class=""&gt;135 &lt;SPAN class=""&gt;del &lt;SPAN class=""&gt;self&lt;SPAN class=""&gt;.args, &lt;SPAN class=""&gt;self&lt;SPAN class=""&gt;.kwds, &lt;SPAN class=""&gt;self&lt;SPAN class=""&gt;.func &lt;SPAN class=""&gt;136 &lt;SPAN class=""&gt;try: &lt;SPAN class=""&gt;--&amp;gt; 137 &lt;SPAN class=""&gt;return &lt;SPAN class=""&gt;next(&lt;SPAN class=""&gt;self&lt;SPAN class=""&gt;.gen) &lt;SPAN class=""&gt;138 &lt;SPAN class=""&gt;except &lt;SPAN class=""&gt;StopIteration: &lt;SPAN class=""&gt;139 &lt;SPAN class=""&gt;raise &lt;SPAN class=""&gt;RuntimeError(&lt;SPAN class=""&gt;"&lt;SPAN class=""&gt;generator didn&lt;SPAN class=""&gt;'&lt;SPAN class=""&gt;t yield&lt;SPAN class=""&gt;") &lt;SPAN class=""&gt;from &lt;SPAN class=""&gt;None File &lt;SPAN class=""&gt;~/cluster-env/trident_env/lib/python3.11/site-packages/sempy_labs/tom/_model.py:5911, in &lt;SPAN class=""&gt;connect_semantic_model&lt;SPAN class=""&gt;(dataset, readonly, workspace) &lt;SPAN class=""&gt;5908 &lt;SPAN class=""&gt;# initialize .NET to make sure System and Microsoft.AnalysisServices.Tabular is defined &lt;SPAN class=""&gt;5909 sempy&lt;SPAN class=""&gt;.fabric&lt;SPAN class=""&gt;._client&lt;SPAN class=""&gt;._utils&lt;SPAN class=""&gt;._init_analysis_services() &lt;SPAN class=""&gt;-&amp;gt; 5911 tw &lt;SPAN class=""&gt;= TOMWrapper( &lt;SPAN class=""&gt;5912 dataset&lt;SPAN class=""&gt;=dataset, &lt;SPAN class=""&gt;5913 workspace&lt;SPAN class=""&gt;=workspace, &lt;SPAN class=""&gt;5914 readonly&lt;SPAN class=""&gt;=readonly, &lt;SPAN class=""&gt;5915 ) &lt;SPAN class=""&gt;5916 &lt;SPAN class=""&gt;try: &lt;SPAN class=""&gt;5917 &lt;SPAN class=""&gt;yield tw File &lt;SPAN class=""&gt;~/cluster-env/trident_env/lib/python3.11/site-packages/sempy_labs/tom/_model.py:124, in &lt;SPAN class=""&gt;TOMWrapper.__init__&lt;SPAN class=""&gt;(self, dataset, workspace, readonly) &lt;SPAN class=""&gt;122 &lt;SPAN class=""&gt;import &lt;SPAN class=""&gt;Microsoft&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;AnalysisServices&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;Tabular &lt;SPAN class=""&gt;as &lt;SPAN class=""&gt;TOM &lt;SPAN class=""&gt;123 &lt;SPAN class=""&gt;from &lt;SPAN class=""&gt;Microsoft&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;AnalysisServices &lt;SPAN class=""&gt;import AccessToken &lt;SPAN class=""&gt;--&amp;gt; 124 &lt;SPAN class=""&gt;from &lt;SPAN class=""&gt;sempy&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;fabric&lt;SPAN class=""&gt;.&lt;SPAN class=""&gt;_token_provider &lt;SPAN class=""&gt;import ( &lt;SPAN class=""&gt;125 create_on_access_token_expired_callback, &lt;SPAN class=""&gt;126 ConstantTokenProvider, &lt;SPAN class=""&gt;127 ) &lt;SPAN class=""&gt;128 &lt;SPAN class=""&gt;from &lt;SPAN class=""&gt;System &lt;SPAN class=""&gt;import Func &lt;SPAN class=""&gt;130 token &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;self&lt;SPAN class=""&gt;._token_provider(audience&lt;SPAN class=""&gt;=&lt;SPAN class=""&gt;"&lt;SPAN class=""&gt;pbi&lt;SPAN class=""&gt;") &lt;SPAN class=""&gt;ImportError:&lt;STRONG&gt; cannot import name 'create_on_access_token_expired_callback' from 'sempy.fabric._token_provider' (/home/trusted-service-user/cluster-env/trident_env/lib/python3.11/site-packages/sempy/fabric/_token_provider.py)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Sep 2025 15:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4817129#M62976</guid>
      <dc:creator>dimitraga10_</dc:creator>
      <dc:date>2025-09-04T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4819996#M63035</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1349136"&gt;@dimitraga10_&lt;/a&gt;,&lt;BR /&gt;Thank you for reaching out to the Microsoft fabric community forum.&lt;/SPAN&gt; &lt;SPAN&gt;There might be an issue with library compatibility. If there was a recent update, it could have introduced breaking changes. You can try reverting the&amp;nbsp;sempy&amp;nbsp;library to version&amp;nbsp;1.6.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Check your service principal has Member or Contributor access to the workspace, Build permissions on the dataset, and Get/List secrets access in Key Vault.&lt;/P&gt;
&lt;P&gt;Or use the stable sempy.fabric package with Fabric REST APIs for reliable SP authentication and dataset operations. See: &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/" target="_blank"&gt;Fabric REST API Docs&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If issue persists, consider authenticating through Microsoft Entra authentication or using the workspace identity to see if that resolves the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Ganesh Singamshetty.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 11:55:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4819996#M63035</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-09-08T11:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4823577#M63082</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1349136"&gt;@dimitraga10_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 12:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4823577#M63082</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-09-11T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4825519#M63098</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1349136"&gt;@dimitraga10_&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope everything’s going great with you. Just checking in has the issue been resolved or are you still running into problems? Sharing an update can really help others facing the same thing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 15:52:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4825519#M63098</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-09-14T15:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4828435#M63121</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1349136"&gt;@dimitraga10_&lt;/a&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 11:31:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4828435#M63121</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-09-17T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4828763#M63125</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882998"&gt;@v-ssriganesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you .&lt;BR /&gt;Unfortunately, I was not able to resolve the issue. I also cannot use an API, as the main objective is to &lt;STRONG&gt;create partitions on an Import Semantic Model&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I haven’t seen any updates from Microsoft regarding the limitation that connect_semantic_model cannot work with a service principal. In fact, the official documentation indicates that these &lt;STRONG&gt;should&lt;/STRONG&gt; work together.&lt;/P&gt;&lt;P&gt;If anyone has experience with connecting to a semantic model via a service principal, I would greatly appreciate guidance on how to do this.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 17:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4828763#M63125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-09-17T17:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Authenticating via Service Principal in Fabric Notebook to Connect on Semantic Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4830426#M63144</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;BR /&gt;Thank you for the update. We sorry the issue persists. Based on recent Microsoft documentation, service principal authentication is supported for semantic link functions, including TOM interactions via connect_semantic_model, but it requires using the updated authentication methods introduced in semantic link version 0.12.0 or later (released around September 2025). The original service_principal_authentication approach may be incompatible due to library changes, which could explain the ImportError from mismatched versions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Recommended Steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Install the latest semantic link version with !pip install -U semantic-link-sempy and restart your notebook kernel.&lt;/LI&gt;
&lt;LI&gt;Switch to set_service_principal or Azure SDK TokenCredential to set credentials, then use connect_semantic_model for TOM access. For non-interactive runs, no extra config is needed if triggered by SP.&lt;/LI&gt;
&lt;LI&gt;Confirm your SP has ReadWrite permissions on the semantic model (via XMLA endpoint enabled) for modifications like creating partitions.&lt;/LI&gt;
&lt;LI&gt;Once connected via TOM, you can add partitions to tables in the model and save changes. This works on Import mode semantic models.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If the error continues after updating, it may be a version mismatch. consider pinning to 0.12.0 specifically.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For detailed guidance:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/semantic-link-service-principal-support" target="_blank"&gt;Service Principal Support for Semantic Link&lt;/A&gt; (includes authentication examples and supported functions).&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/semantic-link-overview" target="_blank"&gt;Semantic Link Overview&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo" target="_blank"&gt;Tabular Object Model (TOM) Documentation&lt;/A&gt; (for partition creation via TOM).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Ganesh Singamshetty&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 09:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-Authenticating-via-Service-Principal-in-Fabric-Notebook/m-p/4830426#M63144</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-09-19T09:01:16Z</dc:date>
    </item>
  </channel>
</rss>

