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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Issue using nested stored procedure calls in fabric warehouse

Hi All,

I am trying to use nested stored procedure on Fabric warehouse. It keeps failing with the below error:

The query references an object that is not supported in distributed processing mode.

However, I have not used any object like a sys table in the child stored proc. The tables used in parent stored proc and child stored proc are all valid and can be referenced when checked using individual sqls. Is calling nested stored proc supported ? 

Below is the stored proc format that I am testing :

 

CREATE PROC [SCHEMA].[PARENT_PROC_NAME] AS

DECLARE

@var1 Nvarchar(150)

@var2 INT

BEGIN

EXECUTE [SCHEMA].[CHILD_PROC_NAME] @var1,@var2

END

GO

 

 

1 ACCEPTED SOLUTION
andrewsommer
Super User
Super User

As of current Fabric Warehouse implementation, calling a stored procedure from another stored procedure is not supported in distributed mode. This is a known limitation inherited from Synapse SQL Dedicated Pools.

  • Fabric Warehouse supports single-level stored procedure execution.
  • Nested calls are often flagged because execution context cannot be distributed when dynamic execution or parameter passing between procedures is involved.

 

 

Please mark this post as solution if it helps you. Appreciate Kudos.

View solution in original post

2 REPLIES 2
nilendraFabric
Super User
Super User

Hello @Anonymous 

 

as @andrewsommer  mentioned it is a known limitation.

 

orchestrate the execution order of your logic using Fabric Pipelines and maintain the dependencies using if else ij pipeline 

andrewsommer
Super User
Super User

As of current Fabric Warehouse implementation, calling a stored procedure from another stored procedure is not supported in distributed mode. This is a known limitation inherited from Synapse SQL Dedicated Pools.

  • Fabric Warehouse supports single-level stored procedure execution.
  • Nested calls are often flagged because execution context cannot be distributed when dynamic execution or parameter passing between procedures is involved.

 

 

Please mark this post as solution if it helps you. Appreciate Kudos.

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.