Forum Discussion

shaherbano's avatar
shaherbano
Microsoft Employee
8 years ago

Cardinality Error

Hi, i am not able to connect the 3 tables i have.  gettign the following error: 

failed to save modifications to the server. Error returned: 'Relationship 'd1259967-03f1a-b4a5-f83344f5d47'..." between columns ' MAS[Part_Num]' and 'Table B[Cl_Part]' has the TO end cardinality set to Many. To end cardinality must always be set to One.

Part_Num column has Ids like below: 

M393A2K43BB1-CRC
750-40017-01
AGIGA9831-001JCB
HMN82GR7AFR4N-UH

6 Replies

  • Hi,

    I faced the same issue.

     

    I did import data from Excel workbook and found that there was fault in my excel workbook itself.

    Try correcting relationships at the source, it did solve my issue.

     

    Error at the source usually happens when you extract data to excel directly from custom application(ERP/etc).

     

    Cheers,

    Kartik =

  • Stachu's avatar
    Stachu
    Community Champion

    it seems you try to set up Many to Many relationship, Power BI supports One to Many & One to One relationships

    • shaherbano's avatar
      shaherbano
      Microsoft Employee

      My bridge table has primary unique key which is connecting to corresponding keys in 2 seperate tables. there are certain rows on both tables with distinct values (in one but not on other). My goal is to compare the fields of one table to those on the other. 

      then create a result column that calls out; which cell values are not a match.

    • gvg's avatar
      gvg
      Post Prodigy

      Stachu,

       

      But doesn't Power BI give an explicit message when you try to do that? This must be something else. 

      • Stachu's avatar
        Stachu
        Community Champion

        well it did give the error - could it be that the in desktop version it's 1 to many, while in the service dataset is bigger and it becomes many to many?

  • JoshSimpson's avatar
    JoshSimpson
    Frequent Visitor

    Hello,

     

    I had the same error,

     

    I solved it by removing any 'null' items in your unique list.

     

    Hope it helps,

     

    Josh