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 / Import Failure of solu...
Power Apps
Unanswered

Import Failure of solution from Default environment to another prod environment.

(0) ShareShare
ReportReport
Posted on by 101

Hello everyone,

I am trying set up a dev and prod, for an application in or tenant.

The app currently lives in our default environment. I want to move it to a separate Production environment.
That App does not use Dataverse, just SPO lists as data sources.

I made a solution which contained my application. There were 2 environmental variables that where created for the app that point to two list on a SPO site from within PowerApps.
When I import the solution to the new environment, I get dependency errors, which seem to point at the 2 lists that are environmental variables. They both start with:
new_shared_sharepointonline_

I found it weird that during the import I was not asked to assign the SharePoint variables, as everything I have seen says it should upon import.

I tried to remove current values for the two variables as was suggested prior to export and I still get these issues. I have tried to export as Managed and unmanaged and have tried to import to a sandbox environment with the same errors.

Anyone seen this, and anyone have a fix?

Thanks folks!

I have the same question (0)
  • ChrisSullivan Profile Picture
    101 on at

    Hi,

    I removed all the sites and lists from the environment variables and verified that there was no defaults selected. 
    This did resolve the issue with the import. Unfortunately I am now have another issue. Now I am receiving an error in the App as pictured. 


    Screenshot 2022-01-26 161557.jpg

     

    It is as if the variable is pointing to the wrong location. 

    I imported the app unamanged to see what was happening and got the same issues when trying to edit the app. Same errors. What I did see is the Env Vars did not update the site in the connection. It was still pointing at the old site URL. When I went to "edit data" it brought me to the old site.  The wiredest part is that I am still getting the correct data for the item in the production Sp list, So my thought is that there is something pointing to the correct SP list from the form but not from the connector?

    The steps I took to create the enviromental Variables are as follows:
    1. Import App to solutions

    2. Open app for editing and remove sharepoint data sorces and the reconnect them (2 lists). This in turn created           the Evn Vars

    3. Remove the current list and sharepoint sites from the Env Vars. 

    4. Export solution

    5. Import solution

    6. Choose sign into Sp connection.

    7. Choose the 2 SP sites and assoicated lists from the Prod Sp list. (This was a template of the original site)

    8. Launch app. Get error when interacting with any part of the app connected to the lists. Connections do not              point to the site selected at import. 



     

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @ChrisSullivan,

    Could you please share a bit more about your dependency error details?

     

    I don't think the dependency error is caused by the environment variables. When a value is present it will be used, even if a default value is also present.

    To validate it, I will suggest you remove the default value your set for the environment variable and check if the error exists.

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
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard