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:
- Deleted the environment variable from the environment by going into the solution.
- Removed the data connection in the canvas app.
- 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.