Forum Discussion
Brendan151
2 years agoFrequent 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-po...
v-cboorla-msft
2 years agoMicrosoft 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.