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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jashfabric
Helper II
Helper II

SQL statement in Warehouse

Hi all
I am trying to execute a SQL query in Warehouse. But I am getting an error.

 

 

SELECT 
  d.ExpectedDate,
  COALESCE(x.Rate, NULL) AS Rate,
  x.Currency
FROM (
  SELECT TOP (SELECT COUNT(DISTINCT Date) FROM TABLE1) 
         DATEADD(day, ROW_NUMBER() OVER (ORDER BY (SELECT NULL)), '1970-01-01') AS ExpectedDate
  FROM sys.tables 
  WHERE object_id = OBJECT_ID('TABLE1')
) AS d
LEFT JOIN TABLE1 x ON d.ExpectedDate = x.Date
ORDER BY d.ExpectedDate;

 

 



The query references an object that is not supported in distributed processing mode.
Msg 13426, Level 10, State 4, CODE LINE 1


What did I miss? Appreciate your help.


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jashfabric 
Thanks for using Fabric Community.
The error The query references an object that is not supported in distributed processing mode indicates that you've used an object or function that can't be used while you query data in Microsoft Fabric Warehouse.
Fabric Warehouse uses distributed processing for performance, but some objects and constructs aren't supported in this mode. The error message indicates that your query references an unsupported object, likely sys.tables.

vnikhilanmsft_0-1710917904331.png

 

 

 

You can refer to this link for more information: Link1

Hope this helps. Please let me know if you have any further questions.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jashfabric 
Thanks for using Fabric Community.
The error The query references an object that is not supported in distributed processing mode indicates that you've used an object or function that can't be used while you query data in Microsoft Fabric Warehouse.
Fabric Warehouse uses distributed processing for performance, but some objects and constructs aren't supported in this mode. The error message indicates that your query references an unsupported object, likely sys.tables.

vnikhilanmsft_0-1710917904331.png

 

 

 

You can refer to this link for more information: Link1

Hope this helps. Please let me know if you have any further questions.

Thanks @Anonymous 
That helps.

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.