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 / Failed to import solut...
Power Apps
Unanswered

Failed to import solution because dependent component EnvironmentVariableDefinition does not exist

(1) ShareShare
ReportReport
Posted on by 277
I have a solution with Canvas app. It has SharePoint site and list as datasource. Several environment variables are created in the solution.
 
The error is:
 
The dependent component EnvironmentVariableDefinition (Id=new_shared_sharepointonline_xxxxxxxxxxx9999) does not exist. Failure trying to associate it with CanvasApp (Id=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx) as a dependency. Missing dependency lookup type = EntityNameLookup.
 
But I have no idea what is new_shared_sharepointonline_xxxxxxxxxxx.
 
I have deleted all the datasource in App studio. Deleted all the environment variables from environment. Then recreate all the datasources. 
 
Export the solution and still get the exact same error message. Id is still new_shared_sharepointonline_xxxxxxxxxxx9999.
 
How can I get rid of the hidden EnvironmentVariableDefinition?
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi,
     
    This would have been created, but unfortunately not added to your solution. 
     
    My guess is you have it set to create an Environment Variable when you added Datasources etc.
     
    Now unfortunately many times these are NOT added to your solution by default, silly I know. You would have to open our solution. Select Add Existing Item, then Environment Variable. Then scroll through all the ones you see,.
     
    Now anything with new_XXXXXXXXXX is the default prefix that is used anytime a Platform item is created. What I mean is, when you create a solution, and you add your own Published, you get a prefix. When you create things it will have THAT prefix, however the datasource creation actually uses the prefix new_ which is owned by the System/Platform.
     
    Hence why its called that and why you need to add it. Add it, publish all customizations, export and reimport you should be good.
  • hongkong Profile Picture
    277 on at
    @FLMike I would love to add back the missing variable.
     
    I have tried open my solution -> Add existing environment variable. About 10 items are listed by none of them is new_shared_sharepointonline_xxxxxxxxxxx9999.
     
    I thought it was deleted from the environment by mistake. Is it possible we undelete it or get rid of this dependency?
    Is it possible to know the display name of new_shared_sharepointonline_xxxxxxxxxxx9999? 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard