Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
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.
# 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)
import os
param = os.environ.get("selectedColumns")
from mssparkutils import env
param = env.get("selectedColumns")You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.