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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
tehseennawaz
New Member

Powerbi Incremental refresh duplication key issue

My powerbi report is connected to sql database. I had implemented incremental refresh with following configuration.

= Table.SelectRows(Navigation, each [LastAccessTime] >= RangeStart and [LastAccessTime] < RangeEnd)

Archive data value = 6 months

Incrementally refresh data value = 7 days

 

I had set RangeStart and RangeEnd very close just to load one day data on my machine and after deployment it will eventually refresh last 6 month data.

RangeStart = 1/1/2023 12:00:00 AM

RangeEnd = 1/2/2023 12:00:00 AM

 

But when i pushed report and refresh it. The report refresh cycle failed with this error:

 

Data source error: Column 'ApplicationMetadataID' in Table 'ApplicationMetadata' contains a duplicate value '8f0d314281fb60dbee4e450dc3f68f' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.

 

I had check in sql database ApplicationMetadataID is primary key and there no duplicated record with this key.

1 REPLY 1
sergej_og
Super User
Super User

Hey @tehseennawaz ,
I think I know what you are facing.

Does the value of your column "LastAccessTime" change?
It sounds like the content is changing. 
Am I correct in my assumption?
If yes, then this is the reason for the message.
I have already played through such scenarios several times.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors