Forum Discussion
Fabric Semantic Model Refresh Error
We are creating semantic model and doing binding through Fabric REST APIs using Python SDK in local VS code.
We are using a Service Principal for authentication. That Service Principal already has Admin Access in the workspace which will host the Semantic model.
We are able to create the model and also get the relationships established but while getting the connection established with source DB/warehouse/Lakehouse, we are getting the following error message:
Data source error: {"error":{"code":"Premium_ASWL_Error","pbi.error":{"code":"Premium_ASWL_Error","parameters":{},"details":[{"code":"Premium_ASWL_Error_Details_Label","detail":{"type":1,"value":"We are unable to refresh the semantic model because the model uses a data connection configured for Workspace Identity authentication, but the workspace has no identity, or the model owner does not have permissions to use the workspace identity. Please configure a workspace identity and make sure the model owner has Contributor (or higher) access to the workspace, or use a different authentication method."}}],"exceptionCulprit":1}}}
Do we just need to enable Workspace Identity or anything more is required as well?
3 Replies
- arabalcaSuper User
This error is expected when the semantic model is configured to use Workspace Identity authentication, but the workspace or permissions are not fully set up.
Enabling Workspace Identity is part of the solution, but it think that is not enough on its own. You need to complete the following steps:
- Workspace Identity enabled : Go to your Fabric workspace: : Settings → Workspace identity → Enable
- Permissions granted on the Lakehouse / Warehouse (or source)
- Correct ownership and access for the model
If my comment helped solve your question, it would be great if you could mark it as the accepted solution. It helps others with the same issue and it also motivates me to keep contributing.
Thanks a lot. I really appreciate it.
- arabalcaSuper User
Hi AyusmanBasu0604 ,
were you able to review my response?
If my comment helped solve your question, it would be great if you could like the comment and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.
Thanks a lot, I really appreciate it.
- arabalcaSuper User
Hi @AyusmanBasu0604 ,
were you able to review my response?
If my comment helped solve your question, it would be great if you could like the comment and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.
Thanks a lot, I really appreciate it.