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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse Tables Data ...
Power Apps
Unanswered

Dataverse Tables Data Migration using Azure Data Factory (Many-to-Many)

(0) ShareShare
ReportReport
Posted on by 67

Hi Team,

 

I am trying to migrate data from SQL server to Dataverse. Currently, I am migrating data for a many-to-many relationship using Azure Data Factory. I have followed the below steps:

1. Using ADF, imported Table1 - Employee

2. Using ADF, imported Table 2 - Training

3. Using ADF, imported Intermediate table (Employee_Training)

Note: I have created the required intersect table data (GUIDs) in Azure SQL - EmployeeID, TrainingID

 

In step 3, my ADF has failed because I am not able to provide the Alternative Key in the Sink configuration. Please note Employee & Training tables relationship is System many-to-many relationship and not the manual many-to-many relationship, so I don't have access to the table to create an Alternative Key. 

Sandeep009_0-1650926280148.png

 

 

ErrorCode=DynamicsMissingKeyColumns,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=,Source=,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Input DataSet must contain keycolumn(s) in Upsert/Update scenario. Missing key column(s): pp_training_employeeid

 

Any workaround? Please advise.

 

Thank you!

I have the same question (0)
  • Bipin D365 Profile Picture
    971 on at

    HI @Sandeep009 ,

     

    Can you please change Write behaviour to Insert from Upsert so that key column(s): pp_training_employeeid GUID will be auto generated by the system?

     

    If you are not able to change the Write Behaviour then try adding another column in your source and randomly generate GUID for that column and map it to pp_training_employeeid in ADF.

     

    Thanks,

    Bipin

  • skolarvs Profile Picture
    67 on at

    Hi @bipinshan 

    Thanks for your response. 

    Unfortunately, there is only one option for Dataverse Sink step Write Behavior - Upsert. There is no Insert option. Thanks you!

  • skolarvs Profile Picture
    67 on at

    I have also found one forum saying that the Dataverse many-to-many relationship is NOT supported by Azure Data Factory (ADF). Does anyone aware of this limitation with ADF when it comes to Dataverse many-to-many relationships? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard