Skip to content

"Cannot read properties of null (reading 'name')" when accessing workspace notebooks #67

@tcdejong

Description

@tcdejong

After installing the dependencies and extension, and then logging in, I connected to my Fabric Workspace.

However, it won't show any workspace items and gives the error "Cannot read properties of null (reading 'name')" in a toast:

Image

Most of my workspaces show the same behavior. Only 1 specific workspace correctly loads the list of notebooks.

From the Extension Host logs in the VS Code Output panel, I see the following stack trace (although here it complains about 'split' instead of 'name'):

2025-07-08 11:11:48.893 [error] TypeError: Cannot read properties of undefined (reading 'split')
    at Object.provideFileDecoration (c:\Users\tcdej\.vscode\extensions\synapsevscode.synapse-1.15.0\dist\extension\extension.js:210581:41)
    at file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:4588
    at Array.map (<anonymous>)
    at Ty.$provideDecorations (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:4524)
    at $5.S (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:116786)
    at $5.Q (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:116566)
    at $5.M (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:115617)
    at $5.L (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:114760)
    at ud.value (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:113557)
    at P.B (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
    at P.fire (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
    at po.fire (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
    at ud.value (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:361:3443)
    at P.B (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2373)
    at P.fire (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:27:2591)
    at po.fire (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:9458)
    at MessagePortMain.<anonymous> (file:///c:/Users/tcdej/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:361:1735)
    at MessagePortMain.emit (node:events:518:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:3073)

Running "Fabric Data Engineering: Check Extension Setup" from the command palette did not help. It finishes without errors and says the extension is ready to use:

===========================================================
Preparing fabric data engineering pyspark env...
conda 25.5.1

Checking if conda is installed ... true
User Agent is node/22.15.1 (windows_nt 10.0.26100; win32; x64)

# conda environments:
#
base                   C:\Users\tcdej\miniconda3
fabric-synapse-runtime-1-1   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-1
fabric-synapse-runtime-1-2   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-2


Check if the old spark kernel env has created... false
The old spark kernel env has not been created, skip the remove step.
C:\Users\tcdej\miniconda3

C:\Users\tcdej

Upgrade the existing lighter scripts to the latest versions.
The file c:/users/tcdej/.ipython/profile_default/startup/init_lighter.py already exists and the version meets requirement, skip download.
Upgrade the existing lighter scripts to the latest versions.
The file c:/users/tcdej/.ipython/profile_default/startup/session_management.py already exists and the version meets requirement, skip download.
Download C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-1\lib\site-packages\delta.pth script completed, download to C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-1\lib\site-packages\delta.pth

# conda environments:
#
base                   C:\Users\tcdej\miniconda3
fabric-synapse-runtime-1-1   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-1
fabric-synapse-runtime-1-2   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-2


Check if fabric data engineering spark kernel env has created... true
The fabric data engineering spark 3.3 kernel env has been created, skip the creation process of conda env.
The lighter Lib already exists and the version meets requirement, skip download.
Initialization of fabric data engineering spark 3.3 kernel env has finished.
-----------------------------------------------------------
C:\Users\tcdej\miniconda3

C:\Users\tcdej

Upgrade the existing lighter scripts to the latest versions.
The file c:/users/tcdej/.ipython/profile_default/startup/init_lighter.py already exists and the version meets requirement, skip download.
Upgrade the existing lighter scripts to the latest versions.
The file c:/users/tcdej/.ipython/profile_default/startup/session_management.py already exists and the version meets requirement, skip download.
Delete the old delta.pth file... true
Download C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-2\lib\site-packages\delta_spark34.pth script completed, download to C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-2\lib\site-packages\delta_spark34.pth

# conda environments:
#
base                   C:\Users\tcdej\miniconda3
fabric-synapse-runtime-1-1   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-1
fabric-synapse-runtime-1-2   C:\Users\tcdej\miniconda3\envs\fabric-synapse-runtime-1-2


Check if fabric data engineering spark kernel env has created... true
The fabric data engineering spark 3.4 kernel env has been created, skip the creation process of conda env.
The lighter Lib already exists and the version meets requirement, skip download.
Initialization of fabric data engineering spark 3.4 kernel env has finished.
-----------------------------------------------------------
The Fabric Data Engineering PySpark environment preparation is complete! Now, please switch your kernel to start exploring and working with it!
===========================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions