web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue in environment v...
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.

 
 
Categories:
I have the same question (0)
  • realwillwright Profile Picture
    772 Moderator on at
    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.
  • ronaldwalcott Profile Picture
    3,908 Moderator on at
    When you import the solution it should request the new environment variable values. Is this happening?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard