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 / Not able to publish ca...
Power Apps
Answered

Not able to publish canvas app after deleting an environment variable from the solution

(1) ShareShare
ReportReport
Posted on by 50

I've created an environment variable and added it to a canvas app and later decided to remove the data connection and hence deleted the EV from the environment. Then when I tried to publish my canvas app, it gave me an error citing the dependency to that deleted environment variable even though I've removed it from the app as well.

 

"The request failed with error: '{"error":{"code":"0x8004f036","message":"The dependent component EnvironmentVariableDefinition (Id=new_PAR_SPList_SectionOwners) does not exist. Failure trying to associate it with CanvasApp (Id=105f8844-cc0b-4d39-b0ce-c2d9724c08eb) as a dependency. Missing dependency lookup type = EntityNameLookup."}}'."

 

The highlighted text in bold above is the name of the environment variable that has been deleted from the environment and it did not just get removed from the solution. The order in which the removal took place is as follows:

 

  1. Deleted the environment variable from the environment by going into the solution.
  2. Removed the data connection in the canvas app.
  3. Tried to publish the app and then the issue occurs.

Please shed some light on how this issue could be resolved as there is limited  guidance on the web.

Categories:
I have the same question (0)
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @yvsuhas 

     

    Similar thread on deleting on environment variables here : 

    https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-delete-environment-variables/td-p/757271

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Removing-Environment-Variables/td-p/1211048

     

    Suspect some traces of variable may be present, recommend to have your PowerApp as part of solution.

    try clearing cache in browser

     

    Hope it helps.

    Thanks

  • Verified answer
    yvsuhas Profile Picture
    50 on at

    @Shujaath_Khan - Thank you for the references.

     

    I've used the solution approach from the beginning and cleared the cache multiple times. The deleted environment variable reference is present in the unmanaged layer of the canvas app under "cdsdependencies" and "connectionreferences" properties. I've tried exporting the solution and editing the customizations.xml to remove the references and zipped the package and imported it again. This approach worked for me and I was able to finally publish the app after importing the new version.

  • MilesTone Profile Picture
    64 on at

    I have had this issue, and resolved it by deleting the connections and recreating them. My Canvas app is set to automatically create environment variables. so when I recreated the connections it fixed the issues with missing variables.

  • danru Profile Picture
    95 on at
    Hi,
     
    I did the same thing and am getting the same error: 
     
    The request failed with error: '{"error":{"code":"0x8004f036","message":"The dependent component Entity (Id=c00_title) does not exist.  Failure trying to associate it with CanvasApp (Id=de6bd968-e985-4a2b-93cd-e9d6b111d5d3) as a dependency. Missing dependency lookup type = EntityNameLookup."}}'. The correlation Id is '18aa5023-14dd-495c-bdc4-9767aafa5e67'.
    
    Session ID: 9e15e380-8f7c-44f2-b330-27a46258490a
     
    This is in my sandbox environment in an unmanaged solution. I removed the environment variables from the environment.
     
    I tried to the remove the datasource in the powerapps studio and readd it- didn't work.
     
    Is there a way to fix this?
     
    Thank you.
     
    Regards,
     
    Daniel

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard