The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I am a pro PowerBI user and use RangeStart <= [partition date] < RangeEnd in this way.
Even after doing in that way, I am getting the same error. Will it happen if that unique ID is present in archived data and got updated in a recent refresh
Currently, I am using modified date to fetch data and detect changes. Instead, can I use created at date to fetch data and modified at date to detect changes. Will I escape from duplicate error.
Data source error: Column '<oii>class_id</oii>' in Table '<oii>dw v_fact_classes</oii>' contains a duplicate value '1333550' 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.
Will it happen if that unique ID is present in archived data and got updated in a recent refresh
Yes, it will. Remember this is incremental refresh, not differential refresh. Incremental refresh only works with immutable data, If your data is mutable you need to manually refresh all affected partitions.
It is not allowed probably because it has a relationship to another table and this table is the one side of a one to many or one to one. Scroll to the right to see the rest of the error.
Or you mayve have to change the relationship to many to many or reverse the one to many if this is the fact and the other table is the dimension
I have updated the full reason.