We have a Power BI dataset and report running for few month without refresh error. However it shows the following error and refresh stops.
Column 'PubsID' in Table 'FACTPubsRecord' contains a duplicate value '1115' 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.
After debugging the database tables, table relationships, columns, and measures, we were not able to resolve the issue. I started to rebuild the dataset and everything looks good. At the end when I document the dataset and set up the properties of the table, this is one "Key column" identified that is cuasing the problem. The column named PubsId that was unique before. However, it is no longer unique.
The Key Column in Power BI properties MUST be unique in order for Power BI refresh to work. The solution is to change it to PubsKey unique value to resolve the issue.
This is hard lesson that took me two days to finally resolve the isuse.
never knew i needed this, thanks! https://www.yuhublog.com/kenali-kelebihan-dari-masing-masing-jenis-kartu-kredit/
ReplyDelete