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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Fabric API - Items - Create Semantic Model REST API (SemanticModel) 202 uable to process error

Hi Everyone,

 

I’m currently exploring the Microsoft Fabric API, specifically the Items - Create Semantic Model REST API (SemanticModel) as detailed on Microsoft Learn. Items - Create Semantic Model - REST API (SemanticModel) | Microsoft Learn

 

I am facing error 202- 

<errorCode>RequestFailed</errorCode>
<message>Unable to process the request</message>
<requestId>5646a7e7-2a72-450b-a232-27257442bd94</requestId>
</TridentPublicApiErrorResponse>

 

I am using structure for request boby content: 

post content:

 var content = new StringContent(
JsonConvert.SerializeObject(new
{
displayName = "SemanticModel 112",
description = "A semantic model description.",
definition = new
{
parts = new[]
{
new
{
path = "model.bim",
payload = modelBimBase641,
payloadType = "InlineBase64"
},
new
{
path = "definition.pbism",
payload = modelBimBase641,
payloadType = "InlineBase64"
}
}
}
}),

NaveenBharathi_1-1731923270870.png

 

 

 

My questions are:

1. How can I create a semantic model Fabric API?

2.How to resolve the error.

3. Please help to provide sample request body content in Semantic model create.

4. Any another way for creating the semantic model uisng fabric API 

 

Any help would be greatly appreciated!

1 REPLY 1
Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous,


Have you tried the same json payload in for example a tool like Postman? That might be an easier way to check if it is related to the body payload of the request or the actual code itself.

 

Btw, it is a long running operation, so it might return different status codes. For example a HTTP 202 response would be that the request is accepted, but that it is still busy with creating the model in the background:

https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP#response

 

And did you try the below example as well?

https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP#create-a-semantic-model-example

 



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (4,177)