Forum Discussion
Power BI Fabric - Create semantic model with via Microsoft Fabric API
- 1 year ago
The error "Invalid platform file" indicates an issue with the .platform part you supplied. How did you get this file? Did you construct is manually? There's a schema for this file, and what you've sent probably doesn't conform to that schema.
You can try creating without this part if you don't know how to construct it.
The error "Invalid platform file" indicates an issue with the .platform part you supplied. How did you get this file? Did you construct is manually? There's a schema for this file, and what you've sent probably doesn't conform to that schema.
You can try creating without this part if you don't know how to construct it.
Thank you, But throw 202 error still not create semantic model why?
- AmosHersch1 year ago
Microsoft Employee
202 is not an error, it means "Accepted" - the request was received and is being processed. You have the option of polling for the status, and for fetching the result once the operation ends.
Please read the documentation here Items - Create Semantic Model - REST API (SemanticModel) | Microsoft Learn
and here for long running operations in Fabric REST APIs Long running operations - Microsoft Fabric REST APIs | Microsoft Learn
- Anonymous1 year agoNot applicable
Yes correct, But operation is failed.I think model.bim format is wrong please anyone share the model.bim structure
error:
<TridentPublicApiErrorResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.PowerBI.ServiceContracts.Api.Public.Trident"><errorCode>RequestFailed</errorCode><message>Unable to process the request</message><requestId>873ac8b6-970d-4407-b741-d5943aecebc6</requestId></TridentPublicApiErrorResponse>Thank you for support- KalyanAC1 year agoNew Member
I suggest you first create a semantic model manually, then look at its semantic model definition Items - Get Semantic Model Definition - REST API (SemanticModel) | Microsoft Learn
to get the relevant sections and then construct one for your own.
Semantic Model Definition will give payload info in Base64, you will have to decode it.