Fix Power Apps Data Source Not Updating After Cross-Tenant Migration
Question details
The user needs to resolve an issue where a Power Apps solution continues referencing the development SharePoint list after being migrated across tenants.

- Product
- Power Apps
- Device & OS
- not provided
- Scenario
- Migrating a Power Apps solution to a different tenant while preserving data source configurations.
- Observed behavior
- The SharePoint data source does not update to the new tenant's list automatically, and manually replacing it alters existing forms and adds unwanted columns.
Ensure you have the necessary administrator or environment maker permissions in both the source and target Power Apps environments before modifying solution configurations.
Use Environment Variables and Connection References
Configure your solution with connection references and environment variables to dynamically route data sources to the target SharePoint site during import.
Relying on hardcoded SharePoint connections causes them to persist during migration. Using environment variables allows you to define the target Site URL and List Name dynamically upon importing the solution into the new tenant.
In your source environment, navigate to the solution and create new environment variables for your SharePoint Site URL and List Name.
Open your Power App in edit mode and update your SharePoint data connections to use the newly created environment variables instead of direct links.
Export the solution (managed or unmanaged) from the source environment, ensuring that the connection references are actively included in the package.
During the import process in the target tenant, prompt the setup wizard to supply the new target SharePoint Site URL and list details for the environment variables.

Consult the Power Apps Community
For complex or recurring cross-tenant migration errors, leverage Microsoft's dedicated support community for platform-specific guidance.
Try WPS Office for Your Document and Data Needs
While Power Apps and SharePoint manage complex automated workflows, you still need a reliable suite for everyday documents, spreadsheets, and presentations. WPS Office is a lightweight, highly compatible alternative to Microsoft Office that is entirely free to use.
- 1. Download WPS Office: Visit the official WPS website to download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to set up the office suite.
- 3. Open Your Files: Launch WPS Office and seamlessly open your existing .docx, .xlsx, and .pptx files without formatting loss.

Frequently Asked Questions
Why does my Power Apps form break when I manually change the SharePoint list?
Manually deleting and reconnecting a data source forces Power Apps to regenerate the data schema. This process can overwrite your custom form layouts, delete manually configured fields, and add all default SharePoint columns back into the application.
What is a connection reference in Power Apps?
A connection reference is a solution component that contains information about a specific connector. It allows you to transfer applications between environments without hardcoding the credentials or specific data links.
Can I migrate a Power Apps solution without using environment variables?
While it is technically possible, doing so usually requires manual reconfiguration of data sources in the target environment. This increases the risk of breaking app functionality and losing form configurations, especially with complex SharePoint lists.




