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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ajsteers
Frequent Visitor

Query contains unsupported function. Function name: DataLake.Files

I switched from DataLake.Folder() to DataLake.Files() because the latter pulls down files in subfolders and I need to access files (by name filter) from a set of subfolders. Now I'm getting this error. I was very surprised to find that DataLake.Files() isn't supported by remote refresh in the Power BI service while DataLake.Folders() is supported.

 

1. Any plan to add support for automatically refreshing using the DataLake.Files() function?

 

2. In the meanwhile, are there any arguments or other workarounds I can use in the DataLake.Folders() to return the list of files in subfolders as well as the the main folder?

 

Thanks very much!

5 REPLIES 5
GilbertQ
Super User
Super User

Hi there

This can happen when the On-Premise Gateway Mashup Engine does not have all the capabilities of Power BI Desktop.

These typically follow at the very latest in the next months release of the On-Premise data gateway.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I'm not using the on premise data gateway. This is in regards to the app.powerbi.com service. Apparently the service supports DataLake.Folders() but not DataLake.Files() - much to my surprise - and I'm looking for a workaround to this issue.

Thanks for letting me know further details.

 

I am not sure how to solve this personally.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I wonder does anyone else have ideas on how to resolve - or any idea on timeline for when/if Power BI will support this natively?

 

I'm about to dive in again but wanted to check in here once more in case there are other ideas from the community.

Hi @ajsteers 

 

I see this when getting data from the Sep version of Power IB Desktop

 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors