I have 2 sharepoint sites:-
1) Dev
2) PROD
I have 2 power platform environments:-
1)Dev
2)PROD
I have a solution inside Dev environment which has 1 power apps + 50 power automate flows + 100 environment variables reference the sharepoint site,lists/libraries.
now when i finished working on the solution on Dev for the first time >> i export the solution as managed >> then i import the solution inside PROD using the Upgrade option. where the solution got imported, but the environment variables on PROD were referencing the Dev sharepoint site,lists & libraries. so i went to the PROD default solution and i updated the environment variables to reference the PROD sharepoint site,lists& ;libraries. after that whenever i do a change on Dev >> i export the solution as managed >> import it inside RPOD using the Update option instead of Upgrade and things were working well for around 1 month.
But today i added 1 new environment variable on Dev which reference a new library >> i export the solution as usual >> import it using update option, the import process completed successfully, but when i accessed the power apps on PROD it showed "can not load/find list" on all the screens, so i checked the environment variables inside the defaut solution, and i find that they are referencing the Dev sharepoint site,list & libraries.. as follow:-
to fix this i did the following steps, which i did them mainly by chance:-
1) i went to the Dev solution >> right click on the power app >> add required objects , as follow:-
2) then i export the solution >> import it inside PROD using update option >> update the environment variables inside the default solution to reference the PROD >> publish all customization >> now i have the power apps working well.. so to avoid this in the future what caused the problem at first stage? and how it got fixed??any advice please?
Thanks