cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group