Forum Discussion

tomas12344's avatar
tomas12344
Icon for Helper III rankHelper III
3 years ago
Solved

Enhanced REST API table partition stopped working

Hi All

Wanted to test some REST API refreshes - refresh only one table partition. After some testing, my steps worked. But after the weekend, everytime I send the command, each time it is refeshed as whole table, not only one partition.

Here the commands I use:

$uri='https://api.powerbi.com/v1.0/myorg/groups/ /datasets//refreshes'

$body=@"

 {

   "refresh": {

     "type": "full",

     "objects": [

       {

         "database": "FI Report - Betriebskosten v30 Custom partition 2",

         "table": "FI-GL T CH MIS - PBI Extrakt",

         "partition": "Get-Data0"

       }

     ]

   }

 }

 "@

 

Invoke-PowerBIRestMethod -Method POST -URL $uri -Body $body -ContentType Application/JSON.

 

Any idea, why it could be not working anymore? Is there any limitation, or could some admin (of PBI or network) restrict this?

Thanks for any advice.

 

  • Thank you for the answer. THe refresh policy otion is not working, when added.
    The body part should be correct, i make a copy from SSMS (from the XMLA script).

    Most interesting is, that the commands worked, and after weekend, it stoped. There is no error returned (have modified the body so that i get error and then corrected).
    WS is premium.

2 Replies