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 / How to retain data whe...
Power Apps
Answered

How to retain data when migrating to production environment

(0) ShareShare
ReportReport
Posted on by 514

So far we are having to import data when we migrate a solution to a new environment.
We are moving as a managed solution.
How can we prevent overwriting or data loss when migrating from sandbox to a production environment?

 

Any help appreciated.

 

Thank you

  • Moximox Profile Picture
    135 on at

    What data are you thinking of. When you import solutions into environment you don’t affect data?

  • sienna28 Profile Picture
    514 on at

    That's what I am hoping, but data has been wiped so we had to import it again via csv.

    We made a change to a table field in one environment and when the solution was imported to the new environment we found the data had gone.

  • Moximox Profile Picture
    135 on at

    Hey

    are you saying that you had data in a table in prod and you imported a solution into prod with changes to this table and data in prod was deleted? If so what did you change for this table? The only scenario I can see this happening is you change a field which the data is dependent upon such as lookup, primary or key field

  • jaredbidlow Profile Picture
    258 on at

    I had the same encounter, I need to use a dataflow in the new environment. Tables don't come with the data.

  • Moximox Profile Picture
    135 on at

    No tables moved with solution does not include data. But that was not the issue explained? Issue was that data was deleted in the target environment?

  • jaredbidlow Profile Picture
    258 on at

    I don't think that is correct. It doesn't say that data existed, only that solution was imported.

  • Moximox Profile Picture
    135 on at

    It said “How can we prevent overwriting”  

     

    Overwriting is only possible if data already exist in target environment - would you not agree?

  • sienna28 Profile Picture
    514 on at

    Sorry for the delay in coming back.

    We had data in the production environment....just a few lookup tables.

    In test environment we had removed a field (not from lookup tables, but another table)

    When the solution went to production, the lookup table data had vanished on production so we had to import data to these tables to get things working again.

    Just want to clarify that table field changes (in dev/test environments) should not affect data held in production when the solution is moved there.

  • Verified answer
    Moximox Profile Picture
    135 on at

    It will affect data in target environment if the changes make it impossible for the data in the target environment to sustain. This can be for example a required lookup field which you remove, autoincrement or key fields. 
    If data in a table is deleted and there are cascading rules in places via the lookup referential configuration- then any related records might also be deleted. 

    mox

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard