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 / Import from CSV with r...
Power Apps
Suggested Answer

Import from CSV with relations

(0) ShareShare
ReportReport
Posted on by 15
Now that I finally got a basic import working with a lookup, I have a deeper question.
I have tables:
Site: Name
Location: Name, Site
Asset: Name, Tag, Site, Location (and much more)
 
My problem is that the location table has duplicate "Names" because each site can have an office 101...
 
How do I import the Assets and force the Location lookup to also match the Site?
 
TIA,
MK
 
I have the same question (0)
  • Suggested answer
    MParikh Profile Picture
    492 Super User 2026 Season 1 on at
     
    In Dataverse import, lookup matching works only against the target table unless you provide an alternate key or a unique identifier strategy.
    Your issue is common:
    • Site table
      • Site Name
    • Location table
      • Location Name
      • Site lookup
    Problem:Location Name is not unique globally.“Office 101” exists under multiple Sites.
    During Asset import, Dataverse tries to resolve Location lookup using only Location Name. That becomes ambiguous.
    Best approach:
    Create a composite alternate key on Location.
    Example:
    • Location Name
    • Site
    Then import using both values.
    Structure your CSV like this:
    Asset Name Site Location
    Laptop A New York HQ Office 101
    Laptop B Dallas HQ Office 101
    But this alone is often not enough for standard import wizard lookup resolution.
    Better pattern:
    Create a calculated/import helper column in Location table.
    Example column:LocationKey
    Formula or populated value:SiteName & "-" & LocationName
    Examples:
    • NewYorkHQ-Office101
    • DallasHQ-Office101
    Then:
    1. Populate this field for all Location records
    2. Make it an Alternate Key
    3. In Asset CSV use:
    Asset Name LocationKey
    Laptop A NewYorkHQ-Office101
    Then map Asset.Location lookup to LocationKey during import.
    This is the cleanest import strategy in Dataverse.
    Why this works:
    • Import engine resolves against one unique field
    • No ambiguity
    • Faster matching
    • Easier future integrations
    • Works well with Power Automate and Dataflows too
    If volume is large or recurring:
    • Use Dataflow Gen2
    • Use Power Query merge on Site + Location
    • Resolve Location GUID before insert/upsert into Asset
    For enterprise-scale imports, pre-resolving GUIDs is usually the most reliable pattern.

    Thank you!
    Proud to be a Super User!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard