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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Brendan151
Frequent Visitor

Read from Semantic Model with Spark SQL

I'm trying to use a notebook to read data from a sematic model in a different workspace to the notebook. Following the guide here:
https://learn.microsoft.com/en-us/fabric/data-science/read-write-power-bi#read-data-using-spark-in-p...
I can read data from the same worksapce, but when I try to extend it to different workspace as outlined in the documentation I get the following error when trying to show the tables:

 

 

Py4JJavaError: An error occurred while calling o297.sql.
: spray.json.DeserializationException: Object is missing required member 'configuredBy'

 

 

I am an admin in the the notebook workspace and the workspace I am trying to access.

 

Thanks in advance for any help.

5 REPLIES 5
v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @Brendan151 

 

Thanks for using Microsoft Fabric Community.

Apologies for the inconvenience.

As I understand that you are getting an error when trying to read data from a semantic model in a different workspace using a notebook in Microsoft Fabric.

The following troubleshooting steps might help you:

  • If you are using an older version of the SemPy library that does not support cross-workspace access. Could you please update the SemPy library to the latest version by running this code in a notebook cell:
%pip install --upgrade semantic-link
import sempy.fabric as fabric
  • You are not providing the correct workspace name or ID when calling the SemPy methods. You need to make sure that the workspace name or ID matches the one in the Fabric UI. 
  • The error message "spray.json.DeserializationException: Object is missing required member 'configuredBy'" suggests a missing configuration element.

I hope this information helps. Please do let us know if you have any further questions.

 

Thanks.

Hi @v-cboorla-msft 

 

Thanks for your reply. 

 

I am using the latest version of SemPy but the documentation confirms SemPy is not needed for this and I have confirmed the ID matches that shown in the UI.

 

spark.conf.set("spark.sql.catalog.pbi", "com.microsoft.azure.synapse.ml.powerbi.PowerBICatalog")
spark.conf.set("spark.sql.catalog.pbi.workspace", "<ID>")

spark.sql("SHOW TABLES FROM pbi").show(1000, truncate=False)

 

I am not sure where to add a Configured by element?

 

Thanks.

Hi @Brendan151 

 

Inorder to understand the exact issue, it requires a deeper investigation from our engineering team about your workspace and the logic behind it to properly understand what might be happening. 

Please go ahead and raise a support ticket to reach our support team: support-ticket 

Please provide the ticket number here as we can keep an eye on it.

Hi @Brendan151 

 

Following up to see on the last response whether you got a chance to create a support ticket. If yes please provide the ticket number here as we can keep an eye on it.

Otherwise, will respond back with the more details and we will try to help.


Thanks

Thanks, I have raised a ticket with support (2402130030001207).

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.