Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Fabric - Create Reports model via Microsoft Fabric API

Hello Everyone, I'm using the Microsoft Fabric REST API to programmatically deploy a report to a workspace. The semantic model already exists and is verified in the workspace. I'm sending a POS...
  • v-achippa's avatar
    v-achippa
    1 year ago

    Hi Anonymous,

     

    The error here is likely caused by a manually modified .pbir or report.json file, or the semantic model is not being referenced in the exact format expected by the API.

    So please switch back to the byConnection which you were using earlier since the Fabric REST API supports it.

    And try the above steps which i mentioned earlier like re-export the report again using power bi desktop and connect to the live semantic model in the same Fabric workspace. Do not modify any of the generated files. Encode each file in Base64 and send it to the API.

    This makes sure the byConnection block is generated correctly by the backend schema.

     

    If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

     

    Thanks and regards,

    Anjan Kumar Chippa