Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Issue in environment variable configuration

(1) ShareShare
ReportReport
Posted on by 30

Hello,

I have created two environment variables: one to get the Site and another to get the List. When I export and import the solution from one dev environment to the production environment, the environment variable for the production site and its lists is not updating to the correct URL. Instead, it continues to fetch the old site and list names and URLs.

In the dev and prod environments, the sites and lists are different, but their column names and data types are identical. If I manually update the data source by deleting the old connection, adding the new data source, and then selecting the environment variables for the site and list, everything updates properly. However, this update is not happening automatically.

I have enabled the following setting:
SettingsGeneral → "Automatically create environment variables when adding data sources."

Could you please help me fix the issue with the data sources so that the environment variables update automatically? Am I missing something in the process?

Thank you in advance.

 
 
  • ronaldwalcott Profile Picture
    3,525 on at
    Issue in environment variable configuration
    When you import the solution it should request the new environment variable values. Is this happening?
  • realwillwright Profile Picture
    772 Super User 2025 Season 1 on at
    Issue in environment variable configuration
    Hi,
     
    Did you have unmanaged layers in your second environment when you moved the solutions over.
     
    I have also seen this before, when you first moved your solutions over did you copy the values from the first environment to the second? It only worked for me when I had deleted the value from the first environment prior to moving the solution over.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard