Posts Tagged ‘solution import’

Dataverse | Solution Import Error | Environment variable value cannot be an empty string

If you are unversed with ‘Environment Variables’, first understand by going through the Environment Variables Overview.

Coming to the intent of the article, I’ve encountered Environment variable value cannot be an empty string error while importing a Solution using pac solution import command along with a Settings file.

Reason and Fix:

  • Reason for the issue is straightforward. In my settings-file , I’ve an ‘Environment Variable’ with a ‘SchemaName’ ‘cat_CompanyName’ which has a blank value in the ‘Value’ field..
  • When used this Settings file in pac solution import , import failed with Environment variable value cannot be an empty string error.
  • Fix is that, you can’t pass empty string in the ‘Value’ tag of ‘EnvironmentVariables’ in settings-file.
  • Update the Settings file by providing a value in ‘Value’ tag.
  • Retry the import and it should work now.


  • I did not face this issue, while setting a blank ‘Environment Variable Value’ from Maker portal and imported to my target environment.
  • Below is my DEV environment, where the ‘Environment Variable Value’ is blank.
  • I’ve exported the Solution and imported to target with no errors. Below is how ‘Environment Variable Value’ looks in Target environment post import.


Entities display area not getting set on Solution Import in CRM 2011

January 10, 2012 1 comment


Please observe below scenario

  • In my CRM organization “ORG – A
  • I Created a new custom entity “new_city” and I set “Area to display” as “Workplace”.
  • I created a new “Managed” solution “Sol – I” having the custom entity “new_city”
  • Now In my Organization “ORG – B”, I imported the solution “Sol – I” successfully.

Issue I Faced :-

  • After solution import, to my surprise I don’t see entity “new_city” under “Workplace” area
  • To dig more, When I open “new_city” entitie’s customization form , all the options under “Area to display” are unchecked.
  • Since the solution was “Managed” I can’t select the  “Area to display” option manually.

Fix :-

  • While making the solution, Include “Sitemap component” under Client extensions

Hope it helps 🙂