When migrating a solution to another environment or another tenant using environment variables, in Power Apps applications that define environment variables (both sites and lists) as data sources, by changing the internal data of environment variables, it is convenient because you can change the data source of the app without editing the inside of the app. However, if the data source is updated to the latest state on the edit screen of the application in this condition, information about the token held as the internal data of the application and the data source of the migration source (URL, data source name, GUID, etc.) will result in an error. However, despite the error, the data source information is over-ridded (confirmed by the internal code of the application) by the internal information of environment variables (two types). The behavior of the application (Data create, edit, delete, etc.) works fine, and the application is migrated in a state where it functions without problems. We have tried the above behavior with various accounts and tenants, but all have the same behavior, and it is the current expected behavior that an error occurs. Even though it is used by the recommended method, the error cannot be removed, so we think that the situation must be improved immediately. For example, you can think of various methods such as implementing a mechanism that automatically deletes the data source information of the migration source at the time of export, or implementing a mechanism that filters and removes the information of the relevant part at the time of import and then imports. Therefore, please make improvements to quickly overcome the current situation where errors occurs.
... View more