web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 1gCvT0BYtoK9z8uSw4W5mP
Power Apps - Microsoft Dataverse
Unanswered

Dataverse relationship

Like (0) ShareShare
ReportReport
Posted on 25 Jul 2023 05:39:43 by 150

I have created the two dataverse  table: Data and Type. 

In Type Table we have type A,B,C,D,E.

I have given type table as one to many relationship to masterdata.

But when I am trying to add multiple value in types. Its not working.

It is giving "This record cannot be added because it already has a parent record." this notification in model driven.

 

Could anyone please help !!

Thanks in advance

 

 

Categories:
  • Fubar Profile Picture
    8,058 Super User 2025 Season 2 on 28 Jul 2023 at 04:25:44
    Re: Dataverse relationship

    Feels like you may be trying to use "Add Existing" on a subgrid and selecting a record that already has its lookup field populated.  If it is a 'Type' table that probably means you either have the relationship the wrong way around or you really want a many-to-many

  • wwweber Profile Picture
    146 on 25 Jul 2023 at 21:14:42
    Re: Dataverse relationship

    When relating rows from different tables using their one-to-many relationship, a child record cannot be linked to more than one parent records. This usually gives the error you are writing here. 

     

    For example, if type is a child record of data, then type A cannot belong to data 1 and 2, it must be related to only one of them. If you need type a to be related to more than one row in the Data table, then you will need to create a one to many relationship from type to data. If you already have a one-to-many relationship from data to type then you theoretically have a many to many relationship, however it cannot be handled using one relationship alone so you will need to use either the 1:n or the n:1 relationship depending on which data-operation you are performing. This is not recommended. 

     

    I would reconsider if the data-model could be built differently. 

     

    If you explain the use-case then we might be able to help with an alternative.

  • Parvez Ghumra Profile Picture
    1,579 Moderator on 25 Jul 2023 at 09:24:51
    Re: Dataverse relationship

    @Moira0509 Your question is unclear. Please provide additional context, screenshots, logs and data model design

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete