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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
hello,
in notebook1, I can read the .csv file into a dataframe
in notebook2, can not read the same .csv file. --> error is as per below
this is what I am doing in fabric notebook
path = 'Files/pathname/year=2024/month=08/day=16/xyz.csv'
df=spark.read.csv(path)
display(df)
error:
-------------------------------
Solved! Go to Solution.
I assume both Notebooks are in the same Workspace and both have the same Lakehouse attached as the default?
I assume you are using the exact same code to read the .csv file; nothing different?
Are they both running under the same spark configuration?
Are there any libraries being loaded into 1 Notebook and not the other?
thank you. the problem was not having the correct lakehouse.
I assume both Notebooks are in the same Workspace and both have the same Lakehouse attached as the default?
I assume you are using the exact same code to read the .csv file; nothing different?
Are they both running under the same spark configuration?
Are there any libraries being loaded into 1 Notebook and not the other?
both Notebooks are in the same Workspace - yes
and both have the same Lakehouse attached as the default? - how do I check this?
I assume you are using the exact same code to read the .csv file; nothing different? - correct
Are they both running under the same spark configuration? - correct
Are there any libraries being loaded into 1 Notebook and not the other? - no