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 / Environmental Variable...
Power Apps
Unanswered

Environmental Variable Does Not Update in Published Power App

(0) ShareShare
ReportReport
Posted on by 82

I have an canvas app solution that I imported to a production environment where all the data sources are Data Source environmental variables pointing to SharePoint lists. I updated all the environmental variables once I imported and the data sources updated fine, but I mistakenly set the "Current Value" of two different environmental variables to the same SharePoint list ID.

 

I went back and updated the second environmental variable to be the correct SharePoint list ID, but for some reason when I publish the app the reference won't change!

 

Here is the updated environmental variable in the Default Solution (see the correct SharePoint list ID circled). This was originally incorrect, but I changed it to the correct value shown:

CAC93_0-1652901271947.png

 

Per @RemiChambard suggestion here: Re: [Issue] "Flow.Run failed: Connection not confi... - Power Platform Community (microsoft.com), I added an unmanaged layer to my imported managed solution due to problems with connections with flows. So I made sure to make an unmanaged layer in my production environment and made sure to always publish this unmanaged version any time I make changes to flows, environmental variables, whatever.

What is weird now is the Studio version of my unmanaged app uses the correct version of the environmental variable but, once I publish the app, the published version uses the original value of the environmental variable set when I first uploaded the app.

I can see this clearly in my monitor. 

Here is the GET request sent from my app when sent from PowerApp Studio:

CAC93_1-1652902408655.png

Note, the SharePoint ID is correctly set to what I set for the environmental variable above.

Now I published the very same version of that app and looked at the request it was sending, using the same environmental variable, same environment, same definition, everything and it still reverts to the original value I set.

Published version:

CAC93_2-1652902515363.png

**Also note, that this is NOT the default value of the environmental variable which can also be checked in my first picture. It is the value which I set when I first updated the "Current Value".

 

Any explanation for this is appreciated!

I have the same question (0)
  • CAC-93 Profile Picture
    82 on at

    I am posting this comment the day after I posted the issue above. Suddenly, everything began working. My environment variable is correct and the issue is resolved. I didn't do anything so maybe this issue is just a matter of time?

    I spent about 2 hours trying to troubleshoot and gathering screenshots to post this issue, so it took at least 2 hours for the environment variable change to actually be reflected in the published application. I think it's reasonable to say that that change should happen significantly faster.

  • darylvogan Profile Picture
    274 on at

    I'm seeing the same behavior but 24 hours has passed and I'm seeing the DEV connections 😞

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard