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 August 31st. Request your voucher.

Reply
duttasoumya
Microsoft Employee
Microsoft Employee

Indexing not supported in Fabric datawarehouse?

Following the documentation at, Primary, foreign, and unique keys - Microsoft Fabric | Microsoft Learn

 

The following T-SQL to create an index on my table TestIndex with a field Id  

 

 

DROP TABLE IF EXISTS [dbo].[TestIndex];

CREATE TABLE [dbo].[TestIndex]
(
    [Id] int NOT NULL,
    [Name] varchar(10) NULL
);

ALTER TABLE [dbo].[TestIndex] ADD CONSTRAINT PK_TestIndex PRIMARY KEY NONCLUSTERED (Id) NOT ENFORCED;

 


led to,

duttasoumya_0-1688743537556.png

Well, if creation of indexes is not supported, should it not be included in the set of limitations documented at,

T-SQL surface area - Microsoft Fabric | Microsoft Learn

1 ACCEPTED SOLUTION

Greetings @duttasoumya!  It looks like we have an issue where if you run all the statements you showed at the same time, it will give the error but if you run them one at a time, it works correctly.  I'll track that internally to get it resolved, thank you for finding it!

 

I'll keep track of requests for updating the documentation for possibly adding a note about indexes being a known limitation.  Thank you!

View solution in original post

5 REPLIES 5
mikeburek
Advocate II
Advocate II

As a late follow-up, this appears to work correctly now.

duttasoumya
Microsoft Employee
Microsoft Employee

Thank you @GeethaT-MSFT. I just wanted to underline that the example given above has been taken from the official documentation (first link in the post). Perhaps the documentation in that link itself needs an update, aside from adding the limitation.

Greetings @duttasoumya!  It looks like we have an issue where if you run all the statements you showed at the same time, it will give the error but if you run them one at a time, it works correctly.  I'll track that internally to get it resolved, thank you for finding it!

 

I'll keep track of requests for updating the documentation for possibly adding a note about indexes being a known limitation.  Thank you!

Thanks, @KevinConanMSFT  for looking into this. 

@duttasoumya as Kevin mentioned can you try executing individually and let us know if you have any issues? 

Regards

Geetha

 

GeethaT-MSFT
Microsoft Employee
Microsoft Employee

Hi @duttasoumya Thanks for posting your question in Microsoft Fabric CommunityThanks for the feedback. and I agree with you, we can add this as a known limitation there too. Currently, we have this on the docs for tables: Tables in data warehousing - Microsoft Fabric | Microsoft Learn

GeethaTMSFT_1-1689118029948.png

 

Regards

Geetha

 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

July 2025 community update carousel

Fabric Community Update - July 2025

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