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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
jdevries192
Frequent Visitor

Read from semantic models (Semantic Link) No Longer Working

Hi All,

 

I've been using Semantic Link to pull data. Code worked this morning but stopped this evening. There were no changes to our environment. I tried code in a new notebook with the same result.

 

I get the following various error:

  1. Error: TypeError: got an unexpected keyword argument 'pandas_convert_dtypes'

 

 

 

import sempy.fabric as fabric

dataset = "dataset"

#call measures
data = fabric.evaluate_measure(dataset, 
                        measure="measure", 
                        groupby_columns=["Dimension[groupby1]"],
                                pandas_convert_dtypes=True)

 

 

 

 

 

1 ACCEPTED SOLUTION
v-gchenna-msft
Community Support
Community Support

Hi @jdevries192 ,

Apologies for the issue you have been facing. I suggest you not to use pandas_convert_dtypes at all - I don't think you need it, as we always convert the types with respect to latest release - 0.3.6.

With the latest released we removed the parameter as we've implemented a stable behavior that converts the types more reliable. 

Latest Documentation will be roll out in some days. Sorry for the inconvenience.

Untill then you can use help(fabric.evaluate_measure).


Hope it is helpful. Please let me know incase of any further queries.

View solution in original post

1 REPLY 1
v-gchenna-msft
Community Support
Community Support

Hi @jdevries192 ,

Apologies for the issue you have been facing. I suggest you not to use pandas_convert_dtypes at all - I don't think you need it, as we always convert the types with respect to latest release - 0.3.6.

With the latest released we removed the parameter as we've implemented a stable behavior that converts the types more reliable. 

Latest Documentation will be roll out in some days. Sorry for the inconvenience.

Untill then you can use help(fabric.evaluate_measure).


Hope it is helpful. Please let me know incase of any further queries.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Fabric Hack Slide Banner

Hack Together: The Microsoft Fabric AI Global Hack

Learn from experts, get hands-on experience, and win awesome prizes.