Forum Discussion
christianunr
Helper I
1 year agoPoint semantic model to a new Lakehouse
Hello, I recently deleted a Lakehouse and with git, undid the changes but it looks like this caused the Lakehouse ID to change. Now, my old semantic model is not connecting to the new Lakehouse which...
- 1 year ago
christianunr Try downloading the file and change the datasource settings. If it is an directlake model you can leverage sempy library to update the direct lake model connection. Create a new fabric notebook in your workspace and run the below code
%pip install semantic-link-labs from sempy_labs.directlake import update_direct_lake_model_lakehouse_connection dataset_name = "Your semantic model name" lakehouse_name = "Your lakehouse name" update_direct_lake_model_lakehouse_connection(dataset=dataset_name,lakehouse=lakehouse_name)Thanks,
Jai
Did I answer your question ? Please mark this post as a solution.
Jai-Rathinavel
Super User
1 year ago- christianunr1 year ago
Helper I
Unfortunatly, there is nothing under the Data Source Credentials section. It is empty:
- Jai-Rathinavel1 year ago
Super User
christianunr Try downloading the file and change the datasource settings. If it is an directlake model you can leverage sempy library to update the direct lake model connection. Create a new fabric notebook in your workspace and run the below code
%pip install semantic-link-labs from sempy_labs.directlake import update_direct_lake_model_lakehouse_connection dataset_name = "Your semantic model name" lakehouse_name = "Your lakehouse name" update_direct_lake_model_lakehouse_connection(dataset=dataset_name,lakehouse=lakehouse_name)Thanks,
Jai
Did I answer your question ? Please mark this post as a solution.