Forum Discussion
notebookutils.workspace throw error: this api is not supported
I have been calling notebookutils.workspace.list() to get a list of all workspaces in Fabric notebook and it has been working fine until yesterday. It starts to throw error as below.
I also tried notebookutils.workspace.get('workspacename') and it threw the same error message. Is this function not supported any more or it is just somehow broken because it is still in Preview status?
Py4JJavaError: An error occurred while calling z:notebookutils.workspace.list.
: scala.NotImplementedError: this api is not supported
at notebookutils.workspace$.$anonfun$list$1(workspace.scala:41)
at com.microsoft.spark.notebook.common.trident.CertifiedTelemetryUtils$.withTelemetry(CertifiedTelemetryUtils.scala:69)
at notebookutils.workspace$.list(workspace.scala:40)
at notebookutils.workspace.list(workspace.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:374)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:829)
4 Replies
- AnonymousNot applicable
Hi VVT
If I understand correctly, it was running fine before the error was reported. So have you made any changes to the data source or elsewhere?
Best Regards,
Yulia Xu- VVTRegular Visitor
Hi Yulia,
No changes at all. I am just simply calling the python command notebookutils.workspace.list() to get a list of all workspaces. This notebookutils.workspace is available in the Notebook and I believe it's a utility library managed by Microsoft.
- BlackCurrantFrequent Visitor
Hi, Did it get resolved? I have the same issue.
- VVTRegular Visitor
Not resolved. I changed my code to use sempy.fabric package