Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
naelske_cronos
Advocate II
Advocate II

Enhanced Refresh API Incremental Refresh - Cannot specify partition

Hello,

 

I'm creating a python script that refreshes my partitions via the enhanced refresh API, like in this example from Rui Romano: https://www.linkedin.com/pulse/approach-custom-partition-your-power-bi-dataset-refresh-rui-romano/?t...

Regarding the refresh of my dimensions without partitions it works perfectly.

{
     "type": "full",
     "commitMode": "transactional",
     "maxParallelism": 10,
     "retryCount": 1,
     "objects": [
         {
          "table": "DIM_PHASE"
        }
    ]
}

As soon as I want to refresh a partition like this, it fails:

{
     "type": "full",
     "commitMode": "transactional",
     "maxParallelism": 10,
     "retryCount": 1,
     "objects": [
         {
          "table": "FACT_BENCHMARKING",
          "partition": "2023Q101"
        }
    ]
}

I'm getting an error that it cannot specify the defined partition but in Analysis Services, it shows that my partitions are created...

naelske_cronos_0-1681840183019.png

naelske_cronos_1-1681840271939.png

Any idea why I get this error?

 

Thanks!

 

4 REPLIES 4
Micha_
New Member

Hello naelske_cronos,

we have the same problem, but looking for a solution with "applyRefreshPolicy : true" because we would like to automatically create new partitions when a new month or quarter starts. Unfortunately "applyRefreshPolicy : true" only works in commitMode transactionaly and therefore it would roll back the whole refresh in case of errors. Due to that we would like to refresh single partitions in transactional mode.
Has anybody an idea how we can automatically apply refresh policy?

Best

Micha

Were you able to figure this out?  I'm looking at setting up an update partition via code and I'm not sure how to apply the refresh policy to find new partitions for the new day.  

naelske_cronos
Advocate II
Advocate II

Hello,

 

I also want to state that this json content in my body in Postman works but it refreshes the wrong partition. It actually refreshes the partition that is part of the incremental refresh instead of the one that is part of the archived refresh.

naelske_cronos_0-1681892969488.png

When I wrap my object in an array like in the documentation (https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh#post-refreshes), it gives me the error from in my first message:

naelske_cronos_1-1681893057655.png

 

Thanks!

Hello,

 

I've managed to solve my own problem. I had to add "applyRefreshPolicy : false"

naelske_cronos_0-1681903521805.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.