Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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-
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"
}
}
}
}),
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!
Hi @NaveenBharathi,
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:
And did you try the below example as well?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |