Forum Discussion
Power BI Desktop - Dataflow - The name 'Lakehouse.Contents' does not exist in the current context.
Hello Everyone,
I'm encountering an issue while trying to fetch data from dataflows. I have created these dataflows in Microsoft Fabric and am accessing them via the Power Platform Dataflows connector.
This approach has been working fine for the past few months, but starting today, all tables are showing errors, and I'm unable to retrieve any data.
Has anyone else faced this issue recently, or is there a known solution or workaround?
Any help would be greatly appreciated.
Thank you in advance!
Hi vikramkumawat,
Thank you for posting your query in Microsoft Fabric Community Forum. Also, thanks to bhofbauer, chris_drabek, fabric_analyst_, rohit1991, for those inputs on this thread. Here I provided some official Microsoft links those might be helpful to resolve your thread more quickly
Based on the error you are getting (Lakehouse.Contents does not exist), it seems like your query contains code specific to the Fabric Lakehouse environment, which may no longer be supported (or was never officially supported) through the Power Platform Dataflows connector.
To fix this:
- If you are trying to access Fabric Dataflow Gen2 outputs, switch to using the Lakehouse (Preview) connector in Power BI Desktop.
- Avoid using the Lakehouse.Contents function directly in Power B, it is not recognized in that context.
- Try connecting through the OneLake Data Hub or using DeltaLake.Table if accessing files from OneLake.
Kindly refer to the below documentation links for better understanding:
Power Query Lakehouse (Beta) connector - Power Query | Microsoft Learn
Power Query Dataflow connector - Power Query | Microsoft Learn
Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.
Thank you for using the Microsoft Community Forum.