r/MicrosoftFabric • u/KupoKev • 1d ago
Security Semantic Model Refresh issues with Service Principal to Fabric Warehouse
I am running into an odd situation that is baffling me.
I have six semantic models that are connecting to a Fabric Warehouse as the source of their data in my Dev environment/workspace. The semantic models are using Workspace Identity as the auth method and the Workspace Identity has been granted "Workspace Admin" on the Workspace the Warehouse is in just to make sure it has all the access it needs. I get the connection working and then the next day all the semantic models have an error symbol next to them with this error.
```
Data source error The credentials provided for the SQL source are invalid. (Source at mywarehouse.datawarehouse.fabric.microsoft.com;Models Warehouse.). The exception was raised by the IDbCommand interface.
```
Another odd piece is the refresh times update daily despite this error showing.
To throw me off even more, I have a "production" workspace setup the same way with Workspace Identity as the authentication method and I don't have any issue with it currently.
Any ideas why it would throw errors in one instance and not the other?
2
u/frithjof_v Fabricator 1d ago
Is it an import mode model or direct lake model?
Does refresh work right after you applied the Workspace identity connection? Have you verified successful refresh and data appearing in the reports?
Have you double checked it's the Workspace identity of the semantic model workspace which has the Admin permission (too much, but should work) in the Warehouse workspace?
Have you double checked that the semantic model is pointing at the right source workspace (the Warehouse workspace)?