Open henricson opened 2 years ago
Some additional information: it seems that the issue only occurs when importing an unmanaged solution. In my latter steps, while doing an import of a managed version of this solution, I was able to import without providing environment variables. These were, as expected, requested in the web-ui on make.powerapps.com after the successful first import.
Hi,
I had an issue where my unmanaged solution import failed with the very undescriptive message "Error: The given key was not present in the dictionary.".
After a lot of testing, I think I have isolated the error to be related to not having defined a deployment setting file, containing the required environment variable for my solution.
Here is my step-config; adding the last two lines resolved the error:
It took me some time to isolate the cause of this error, and I think it would be great to include a more descriptive error message.
The origin of the error message seems to be the target environment itself, so I guess an immediate fix would to be to add some client-side validations on the solution-import action, checking the contents environmentvariabledefinition.xml.