Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
Summary
OPENROWSET does not support wildcard paths when querying files via OneLake shortcuts pointing to SharePoint/OneDrive, even though the same syntax works for native OneLake / ADLS paths.
Current Behavior
Wildcard patterns (e.g. *.csv) fail when the underlying path is a SharePoint shortcut because the engine attempts a directory listing that SharePoint shortcuts do not expose.
SELECT *
FROM OPENROWSET(
BULK 'abfss://<workspace>@onelake.dfs.fabric.microsoft.com/<lakehouse>/Files/sp-shortcut/data_*.csv',
FORMAT = 'CSV'
) AS r;
Msg 13807: Content of directory cannot be listed
Expected Behavior
Wildcard expansion should work for SharePoint/OneDrive shortcuts, consistent with native OneLake and ADLS behavior.
Impact
Users cannot query partitioned or multi-file datasets stored in SharePoint via shortcuts.
Forces manual file enumeration or data duplication into native OneLake storage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.