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 August 31st. Request your voucher.
Hello everyone,
After setting a deployment rule (fabric deployment pipelines) to dynamically change the Semantic Model source (Lakehouse) from DEV to TEST workspace, I cannot use the compare feature anymore, since I am receiving an error.
Everything is working, the model was correctly deployed and the lineage is correct, but no matter what I try, the "Compare" option in the deployment always return an error now.
Don't know if this is due to changing location of the destination workspace that might have "messed up" the way the Compare gets the files. But is very anoying to not be able to see schema changes now.
Anyone has any idea of what this could be or how to correct this?
My objective is just to have the Semantic Model automatically get the data from TEST Workspace, after deployment.
Thank you in advance!
Solved! Go to Solution.
@LopesN ,
Thanks a lot for the update — and for sharing the PySpark workaround using semantic-link-labs, that’s super valuable for others who might hit the same wall.
From what you’ve described, it really looks like the Compare feature is holding onto some internal metadata reference tied to the original Lakehouse, and even after deletion + redeployment, it doesn’t fully reset.
Here’s a quick recap of what you tried (and a small tweak others might try too):
%pip install semantic-link-labs from sempy.labs.directlake import update_direct_lake_model_lakehouse_connection dataset_name = "Lakehouse_Test_NLSM" # Name of the deployed dataset workspace_name = None # Optional: specify if needed lakehouse_name = None # Optional: specify if needed lakehouse_workspace_name = None # Optional: specify if needed update_direct_lake_model_lakehouse_connection( dataset = dataset_name, workspace = workspace_name, lakehouse = lakehouse_name, lakehouse_workspace = lakehouse_workspace_name )
This is a solid approach — but unfortunately, as you said, Compare still fails, even with a clean redeploy.
Let me know if you want help testing with a minimal setup — happy to assist.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
*This response was supported by AI for translation and text editing purposes.
Hi
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.
Hello @LopesN,
Sorry for the inconvenience caused. Please consider raising a Microsoft support ticket for further investigation. You can explain all the troubleshooting steps you have taken to help them better understand the issue.
You can create a Microsoft support ticket with the help of the link below:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
If this helps, please accept it as a solution and drop a "Kudos" so other members can find it more easily.
Thank you.
Hello @LopesN,
We are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?
If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.
Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.
Thank you for your understanding.
Hello @v-ssriganesh ,
After further testing, the problem is still happening.
I will follow up and create a ticket or a new thread on the Community Forum to see if I get some feedback.
Thank you.
Update:
I deleted the Lakehouse and any Semantic Models connected to it, re-deployed everything from DEV --> still not working, cannot see Compare feature!
Alternative (it might help someone in a similar situation):
To point the Semantic Model to the TEST Workspace (instead of DEV) I used semantic link library in a pyspark notebook with the following code:
To be clear, this issue is not solved, any Semantic Models I create on top of this Lakehouse cannot preview the changes in metadata with Compare feature!
If someone can provide some help I would appreciate it, just so in the future I (or anyone else) don't have to delete this Lakehouse and create a new one to be able to use this Compare feature again!
Hi @LopesN ,
Yeah, I’ve seen this happen when using deployment rules to switch data sources in semantic models. The deployment itself works fine, but the Compare step breaks because it tries to diff the model against a version that now points to a different Lakehouse path or workspace.
A couple of things you can try:
This might be a limitation in how Fabric handles Compare when dynamic data source switching is involved. You can track known issues or raise a ticket here:
https://support.fabric.microsoft.com
Let me know if you want to test this with a stripped-down model to isolate the issue.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
Translation and formatting supported by AI
Hello @burakkaragoz, thank you for your answer!
Regarding your points:
@LopesN ,
Thanks a lot for the update — and for sharing the PySpark workaround using semantic-link-labs, that’s super valuable for others who might hit the same wall.
From what you’ve described, it really looks like the Compare feature is holding onto some internal metadata reference tied to the original Lakehouse, and even after deletion + redeployment, it doesn’t fully reset.
Here’s a quick recap of what you tried (and a small tweak others might try too):
%pip install semantic-link-labs from sempy.labs.directlake import update_direct_lake_model_lakehouse_connection dataset_name = "Lakehouse_Test_NLSM" # Name of the deployed dataset workspace_name = None # Optional: specify if needed lakehouse_name = None # Optional: specify if needed lakehouse_workspace_name = None # Optional: specify if needed update_direct_lake_model_lakehouse_connection( dataset = dataset_name, workspace = workspace_name, lakehouse = lakehouse_name, lakehouse_workspace = lakehouse_workspace_name )
This is a solid approach — but unfortunately, as you said, Compare still fails, even with a clean redeploy.
Let me know if you want help testing with a minimal setup — happy to assist.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
*This response was supported by AI for translation and text editing purposes.
I have done some further testing but was not able to correct this issue.
I will create a ticket with microsoft to explore what the problem might be.
Thank you again for your feedback (and sorry for the delay in my answer)!
User | Count |
---|---|
14 | |
9 | |
5 | |
3 | |
2 |
User | Count |
---|---|
44 | |
23 | |
17 | |
13 | |
12 |