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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
naelske_cronos
Helper III
Helper III

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
Helper III
Helper III

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.