I have a simple solution in a DEV environment containing a canvas app and 7 cloud flows which utilizes SharePoint as a data source. I have 8 environment variables: one for the SharePoint site and seven for lists within the SharePoint site.
As directed, I removed the "current values" for the environment variables from the solution. I then published all customizations and exported the solution. When I import it into the UAT environment the import asks me for the new site and asks me to select all the lists. So far so good.
However, when I edit the app, all of the lists are pointing to the DEV environment SharePoint site, not the UAT SharePoint site! I can see in the Default solution that the environment variable for the SharePoint site in UAT is pointing to the UAT SharePoint site, not the DEV SharePoint site. And the list environment variables are pointing to the environment variable for the SharePoint site. However in the app when I click on "Edit Data" on any of the lists it goes to the DEV SharePoint site! How can this be?
I've done similar export and imports with canvas apps and SharePoint lists and never had this problem. Does anybody have any idea what could be wrong? I exported and imported with both managed and unmanaged seven times and wasted a whole day testing. I'm out of ideas on how to go forward at this point so any suggestions would be very much appreciated!