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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Unable to Access Pipeline Parameters in Fabric Notebook - Getting "Parameter not received f

Hello @Everyone ,

I'm unable to pass parameters from a Microsoft Fabric pipeline to a notebook. I've defined the same parameter (selectedColumns) in both the pipeline and the notebook, and enabled the toggle parameter option. However, the notebook still doesn't receive the value.


Pipeline Setup:

  • Parameter Name: selectedColumns
  • Parameter Value: @pipeline().parameters.selectedColumns
  • ShubhaGampa11_0-1757441656895.png
  •  

    ShubhaGampa11_1-1757441704629.png

     


Notebook Code:

 

# Cell 1 – Default assignment
selectedColumns = "default_value"

# Cell 2 – Fails with NameError
parameter_df = spark.createDataFrame([
    {"id": 1, "parameter": selectedColumns},
    {"id": 2, "parameter": "Not_Received"}
])
print(parameter_df)

 


What I’ve Tried:

  • Verified parameter names match in both pipeline and notebook.
  • Enabled toggle parameter in notebook settings.
  • Tried accessing via:
    import os
    param = os.environ.get("selectedColumns")
    
    from mssparkutils import env
    param = env.get("selectedColumns")

Still Facing:

  • Parameter not received in notebook.
  • NameError when using selectedColumns in DataFrame.
Status: New