cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

dbutils.fs.ls MAX_LIST_SIZE_EXCEEDED

thuovi
New Contributor II

Hi!

I'm experiencing different behaviours between two DBX Workspaces when trying to list file contents from an abfss: location.

In workspace A running len(dbutils.fs.ls('abfss://~~@~~~~.dfs.core.windows.net/~~/')) results in "Out[1]: 1551", while running the same command in workspace B results in "AnalysisException: MAX_LIST_SIZE_EXCEEDED: There are more than 1001 files. Please specify [LIMIT] to limit the number of files returned."

I can't seem to find any way to increase this limit and would prefer to work with dbutils.fs.ls as opposed to mounting the location.The only difference between these two Workspaces and the clusters I've tried is that Workspace B has Unity Catalog enabled.

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now