Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Excel import overwrites data when using lookup and number column in composite key constraint

(0) ShareShare
ReportReport
Posted on by

Hi there, 

 

I have two tables in Dataverse as below

 

Clients table with the following columns

  • Name (Text, Primary Column)
  • Identifier (Number) 

Products table with the following columns

  • Name (Text, Primary Column)
  • Client (Lookup, Clients table)
  • Identifier (Number) 

 

I have created a key on the Products table which includes both the Client and Identifier columns. The intention of the key is to place a unique constraint which includes both the Client and Identifier. This is because Client A could have a Product with Identifier 123 and Client B could also have product with Identifier 123. 


Scenario

Given an existing row in the Product table with Client A and Identifier 123

When I perform a data import using the Import data from Excel button

And the excel file contains a row with Client B and Identifier 123

Then the excel import completes without errors

And the existing Product row will have the Client column updated to Client B 

 

Any ideas on how I can solve this issue? 

Regards, 
Jqueen2

Categories:
  • AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on at
    Re: Excel import overwrites data when using lookup and number column in composite key constraint

    Hello, @Jqueen2, you will have to use the Name and Identifier in the Clients table as Alternate Key. Create Alternate Key in the Clients Table and Select both Columns. Make sure you select the alternate key when mapping the Excel columns in the Dataflow. 

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics