The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello everyone,
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.
The notebook I’m referencing is from the semantic-link-labs/notebooks/Service Principal.ipynb at main · microsoft/semantic-link-labs · GitHub...
So i was using this to authenticate and was able to do some modifications on the Semantic Model.
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?
Additionally, is there an alternative way to authenticate via service principal and make modifications to the semantic model using sempy labs?
Hi @dimitraga10_,
Thank you for reaching out to the Microsoft fabric community forum. 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 sempy library to version 1.6.2
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.
Or use the stable sempy.fabric package with Fabric REST APIs for reliable SP authentication and dataset operations. See: Fabric REST API Docs.
If issue persists, consider authenticating through Microsoft Entra authentication or using the workspace identity to see if that resolves the issue.
Best regards,
Ganesh Singamshetty.