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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Data source variables ...
Power Apps
Unanswered

Data source variables are still referring to old values in different environment

(3) ShareShare
ReportReport
Posted on by

Hello,

 

As per the recent addition of SP lists to be changed as per the environment variables as explained here - https://powerapps.microsoft.com/en-us/blog/announcing-data-source-environment-variables/

 

The migration process is not working as expected for me at all, I have done as follows:

 

In the existing app, I have added list connector with data source variables by enabling the app settings for the 

Saved working Power apps app, and then removed variable values as explained in the above article

Imported the same solution into different environment with different SP site and list values

 

However, when I run the application, it still adds values in the site and list which was mentioned in the previous environment. I have re-checked the environment variables into new environments which are all as expected with different SP list and site. Unfortunately it's not changing the functionality for the different list for me..

 

Can you please help me what's wrong for me in the migration?

 

Thanks,

Categories:
I have the same question (0)
  • Dave Wi Profile Picture
    on at

    And now I am facing the error after migration that list does not exist- I am not sure if this feature is in preview or not functional at present? can you please help me with this?

     

    Thanks,

  • Dave Wi Profile Picture
    on at

    Moreover, It's only working for the single SP site, It does not identify if SharePoint Site is changed in the data source variable, it keeps referring the old SP site.

  • d-lillie Profile Picture
    9 on at

    I'm having a similar issue - except with the list in an environment variable. My app which is using environment variables for SharePoint site and SharePoint list is showing data from the old list reference in Play mode (I've saved and published multiple times), but in studio mode it shows the correctly updated Datasource. Can you confirm if this feature is broken, or are we using it incorrectly?

    Additionally, adding site URL's to the environment variable datasource manually does not work even if I have the correct permissions - I must visit the SharePoint site first for it to show up as a suggested site and choose it from the dropdown.

     

    Thanks,

    David

  • Dave Wi Profile Picture
    on at

    As per my conversation with MS support team, they have confirmed that this feature is currently in preview and will be generally available after 2-3 months, therefore some of the parts/scenario will not work at present.

     

    Planning to look back on this after 2 months.

     

    Hope this helps!

  • Rohit4044041 Profile Picture
    286 on at

    Same exeprience here. I have sharepoint site and list as Datasource environemnt variable.

     

    Once imported in destination, even though varibles are set correctly, Powerapp kept referrring old site (site at the source) I had made sure that "CurrentSite" value is removed before exporting.

     

    Not sure if thi should be used, if not what are the options to move solutions between tenants. 

  • AK06 Profile Picture
    22 on at

    I'm also experiencing the same issue. My canvas app points to Old data source when the solution is imported into the new environment.

    Did anyone find a solution for this issue?

  • Rohit4044041 Profile Picture
    286 on at

    I have  a ongoing ticket for this with Microsoft. While they have acknowledge that its a bug. Its been mre than 2 months now and I have been asked to be patient. So no update on this.

  • Kapako Profile Picture
    14 on at

    Hey people, I thought I had the same issue as all of you. Though it is a little better 🤔

     

    After a successful environment migration of my PowerApps Solution, datasources still visual refer to the previous data sources and also the "Edit data" option navigates to the previous data source.

    Nevertheless when I run the app in designer it shows the data of the tables in the new environment! 👍

    It does not run in app mode and ends with the error "List not found" 👎

     

    This is awkward and confusing, though on the other hand content wise functional. Look to be an easy fix while it seems they just do not replace all the required fields to finish the job.

  • Community Power Platform Member Profile Picture
    on at

    I am experiencing exactly the same issue.  Has anyone found a solution/workaround to this?

     

    Thanks

     

    Dan

  • capoaus75 Profile Picture
    122 on at

    This issue seems to have been resolved on my tenancy.

    I cannot longer edit the canvas app in a managed solution.
    The data connections that are using environment variables are now pointing to the correct environment set during the import of the managed solution.

    Also there was an issue with "Allow searching" in combo box. If the option was ON, when the solution was imported to a new environment the "Allow searching" option was OFF.  From my tests this issue has been resolved as well.  Definitely few steps in the right direction for ALM. Well done Microsoft!!!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard