Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
amcpherson
Helper I
Helper I

Updating Semantic Models in Notebooks with Semantic Link

Hello All,

 

Is anyone using Semantic Link in notebooks to update Semantic Models? We are working on a template-based reporting structure that is going to be deployed at scale and want to manage updates programmatically using semantic link. I keep running into an error on the write however that seems to be endpoint related. Any guidance would be appreciated.

 

Thanks!

2 ACCEPTED SOLUTIONS
nilendraFabric
Super User
Super User

try this


import sempy.fabric as fabric
import sempy_labs as labs
from sempy_labs.tom import connect_semantic_model

 

 


dataset_name = "YourSemanticModelName"
model = connect_semantic_model(dataset_name)


measure = model.tables["YourTable"].measures["YourMeasure"]
measure.description = "New description"


model.save_changes()

View solution in original post

v-veshwara-msft
Community Support
Community Support

Hi @amcpherson ,

Thanks for using Microsoft Fabric Community.

Just checking in to see if you query is resolved and if response from @nilendraFabric  was helpful.
You might also find this related blog post helpful - it walks through a full example of deploying and updating semantic models via Semantic Link in notebooks, along with common issues to avoid:

Programmatically deploy Semantic Models and Report... - Microsoft Fabric Community

 

For more background, here’s the official Learn document on Semantic Link:

What is semantic link? - Microsoft Fabric | Microsoft Learn

Hope this helps. If any of the responses above resolved your issue, kindly consider marking the helpful reply as Accepted Solution so others can benefit as well.

Feel free to reach out if you need further assistance.

Thank you.

View solution in original post

4 REPLIES 4
v-veshwara-msft
Community Support
Community Support

Hi @amcpherson 

We’re following up once more regarding your query. If it has been resolved, please mark the helpful reply as the Accepted Solution to assist others facing similar challenges.

If you still need assistance, please let us know.
Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @amcpherson ,

Following up to see if your query has been resolved. If any of the responses helped, please consider marking the relevant reply as the 'Accepted Solution' to assist others with similar questions.

If you're still facing issues, feel free to reach out.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @amcpherson ,

Thanks for using Microsoft Fabric Community.

Just checking in to see if you query is resolved and if response from @nilendraFabric  was helpful.
You might also find this related blog post helpful - it walks through a full example of deploying and updating semantic models via Semantic Link in notebooks, along with common issues to avoid:

Programmatically deploy Semantic Models and Report... - Microsoft Fabric Community

 

For more background, here’s the official Learn document on Semantic Link:

What is semantic link? - Microsoft Fabric | Microsoft Learn

Hope this helps. If any of the responses above resolved your issue, kindly consider marking the helpful reply as Accepted Solution so others can benefit as well.

Feel free to reach out if you need further assistance.

Thank you.

nilendraFabric
Super User
Super User

try this


import sempy.fabric as fabric
import sempy_labs as labs
from sempy_labs.tom import connect_semantic_model

 

 


dataset_name = "YourSemanticModelName"
model = connect_semantic_model(dataset_name)


measure = model.tables["YourTable"].measures["YourMeasure"]
measure.description = "New description"


model.save_changes()

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors