Forum Discussion

christianunr's avatar
christianunr
Icon for Helper I rankHelper I
1 year ago
Solved

Point 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...
  • Jai-Rathinavel's avatar
    Jai-Rathinavel
    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.