Forum Discussion
ChhayaSharma
3 years agoRegular Visitor
Microsoft Fabric
When we tried to run notebook below error comes but it is running in another workspace.Don't understand why this is happening. I am using trial version of microsoft fabric. "ename":"Exception","...
Anonymous
3 years agoNot applicable
Hi ChhayaSharma
In your case, the LakehouseWorkspaceId parameter is empty, which is not a valid GUID. To fix this error, you need to specify a valid LakehouseWorkspaceId when creating the Livy session. You can get the LakehouseWorkspaceId from the Azure portal.
Here are the steps on how to fix the error:
- Go to the Azure portal and sign in to your account.
- Click on the "Fabric" blade.
- Click on the "Workspaces" tab.
- Select the workspace that you want to use.
- Click on the "Settings" tab.
- Under the "Lakehouse" section, copy the "LakehouseWorkspaceId" value.
Now that you have the LakehouseWorkspaceId, you can create the Livy session by specifying the LakehouseWorkspaceId parameter. For example:
import livy client = livy.Client("https://fabric.azure.com") session = client.create_session(lakehouse_workspace_id="<LakehouseWorkspaceId>")Once the Livy session is created, you can run your notebook.
I hope this helps! Let me know if you have any other questions.
chitswe
3 years agoNew Member
Hi Anonymous ,
Where should I add this code to?