Forum Discussion

sthatte's avatar
sthatte
Frequent Visitor
1 month ago
Solved

Cannot do a full refresh via the API for Git deployed Semantic Models

We have recently started deploying artefacts (Semantic models and reports) via Azure DevOps. After a semantic model has been deployed and synced to the workspace, we cannot perform a full refresh via the enhanced API. While we can trigger the refresh via the API, refresh is incremental and not full. Here is the JSON body:  

{
"type": "full",
         "notifyOption": ""
}
 
Is this a bug or are we missing something?

3 Replies

  • v-sathmakuri's avatar
    v-sathmakuri
    Community Support

    Hi sthatte ,

     

    Thanks for reaching out to fabric community.

     

    In the Enhanced Refresh API, specifying "type": "full" may still apply the incremental refresh policy because applyRefreshPolicy defaults to true.
    To perform a full refresh across all partitions, try the following request body:
    {
    "type": "full",
    "applyRefreshPolicy": false,
    "commitMode": "transactional"
    }
    Also, remove "notifyOption": "", as it should not be included in an enhanced refresh request. Setting applyRefreshPolicy to false ensures that the incremental refresh policy is not applied during the refresh operation.

     

    Refernece Documents : 

    https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset 

    https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh 

     

    Thanks!!

  • v-sathmakuri's avatar
    v-sathmakuri
    Community Support

    Hi sthatte ,

     

    Could you review the suggestion provided and let us know if you have any additional questions, we are happy to address. 

     

    Thanks!!

  • v-sathmakuri's avatar
    v-sathmakuri
    Community Support

    Hi sthatte ,

     

    Could you please review the solution provided above and let us know if you have any further questions.

     

    Thanks!!