An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Hi @mohammed adeeb ,
The error "Content of directory on path cannot be listed" in Azure Synapse Serverless SQL Pool typically indicates that the SQL engine is unable to enumerate the contents of the specified ADLS Gen2 folder.
Based on the query and screenshot provided, please verify the following:
Ensure the identity used by Synapse Serverless SQL Pool has the required permissions on the storage account. Assign Storage Blob Data Reader (or Storage Blob Data Contributor) and confirm the necessary ADLS Gen2 ACL permissions (Read (r) and Execute (x)) are applied on the folder hierarchy.
If SQL Authentication is being used, configure the appropriate server-level credential or database-scoped credential. SQL logins cannot use Microsoft Entra pass-through authentication by default.
If access is configured through a SAS token, verify that the SAS is valid, not expired, and includes Read and List permissions.
Validate the storage path and confirm that files exist in the target folder. In the provided query, the path points to a folder:
BULK 'https://olistdatastorage.dfs.core.windows.net/olistdata/silver/'
Try querying a specific Parquet file or use an appropriate wildcard pattern, for example:
SELECT TOP 100 *
FROM OPENROWSET(
BULK 'https://olistdatastorage.dfs.core.windows.net/olistdata/silver/*.parquet',
FORMAT = 'PARQUET'
) AS Result1;
If the storage account firewall is enabled, ensure that the Synapse workspace is allowed to access the storage account.
In some cases, large Microsoft Entra group memberships can cause token-related access issues. Consider using Managed Identity, Service Principal, or SAS-based authentication if applicable.
To further narrow down the root cause, please confirm:
- Whether you are using Microsoft Entra authentication or SQL authentication.
- Whether the storage account firewall is enabled.
- The RBAC role assigned to the Synapse Workspace Managed Identity.
- Whether files are present under the
silverfolder. - Whether querying a specific Parquet file succeeds.
References
- Serverless SQL Pool Storage Access Control
- Serverless SQL Pool Troubleshooting Guide
- Azure Synapse Known Issues
Please let us know the results of the above checks, and we will be happy to assist further.