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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data Migration from DB...
Power Apps
Suggested Answer

Data Migration from DB2 On Prem to Dataverse

(0) ShareShare
ReportReport
Posted on by 163
We have three tables in DB2 On Prem. One header with a one to many relationship to two tables. I need to move the data into Dataverse tables. 
 
Parent Table A 100,000 Rows
Child table B  50,000 Rows
Child table C  20,000 Rows
 
How to move this data into dataverse?
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at
     
    Did you already create the Tables in Dataverse?
     
    There are many ways to do this, and depends on which choices makes the most sense for your business.
     
    Its not really that many rows, which is good.
     
    Dataflows:
    Allows you to configure a connection to the other system and import the data after mapping it
     
    There is another good option.
     
    If you create the Tables in Dataverse 1st. Setup the relationships between the tables.
    You can build a customize bulk import. the reason I say custom is because your files, would have at best a 2ndary key, not a primary key in Dataverse, which is a guid, so a custom run what it does is
     
    Inserts the parent
    Inserts the Child
    Associate the Child to the Parent
     
    But that has to be implemented as you build the custom mapping.
     
    You can also build your own using the Dataverse SDS, where you could grab the data from DB2, then insert it directly into Dataverse and then associate the records yourself in your code. Its quite simple.
     
    Image code like this (Pseudo of course)
     
    Insert into Dataverse and get back the Parent GUID
    Insert into ChildA using the GUID from the previous step to build the Parent child relationship
    Insert into ChildB using the GUID from the previous step to build the Parent child relationship
     
    Power Automate
    You can build a flow, that would grab the data from DB2 and perform the actions I spoke of in the previous (Build your own) option.
    It would literally
    Loop through your DB2 parent
    Create and get GUID
    Create ChildA and Associate to Parent
    Create ChildB and Associate to Parent
     
    Please let me know if you need more help.
     
    If this helps you, Please Mark as such and maybe a Like :-)
     
    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard