Export Solution RRS feed

  • Question

  • I am trying to use Dynamics CRM Build Tools created by Wael Hamze to Export my 2015 CRM solution using Powershell.

    More specifically I am using Publish Customizations which seems to work fine, and Export Solution.

    I am getting the error Export-XrmSolution : Unrecognized request parameter: ExportExternalApplications

    Even when I remove the parameter ExportExternalApplications  from the powershell call I still get the same message.

    Is it because of my version of CRM? I was told this would work on CRM 2015.


    Dave Lloyd ALM MVP

    Tuesday, April 18, 2017 4:05 PM

All replies

  • Hello Dave,

    I used that framework in couple of projects but I can't consider myself as an expert in this tool. I would suggest to get in touch with author - https://github.com/WaelHamze/xrm-ci-framework/issues and ask for a help.

    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Tuesday, April 18, 2017 4:42 PM
  • Hi Dave,

    I underwent the same issue you have mentioned above.

    And as you said, I removed the ExportExternalApplications parameter and still the same error.

    Did you resolve it?



    Tuesday, January 9, 2018 10:27 AM
  • I'll be honest I can't remember how I got rid of that specific error. There were a bunch of issues along the road to getting it to work. The connection string was a challenge to get right. Once I got it correct everything worked great.

    On my VSTS Build I called the Powershell script ExportSolution.ps1 from the CRM build tools.

    Passing the following arguments: (Variable values are below)

    -CrmConnectionString "$(ConnectionString)" -SolutionName "COMPASSDevelopment" -ExportSolutionOutputPath $(Build.StagingDirectory) -ExportIncludeVersionInSolutionName 0

    ConnectionString = "ConnString: Url=$(CRMServerURL); Username=$(UserName); Password=$(Password); AuthType=IFD; RequireNewInstance=True;"

    CRMServerURL = "https://server.company.com/CRMDEV"

    I hope this helps.

    Dave Lloyd ALM MVP

    Tuesday, January 9, 2018 3:19 PM
  • Hi Dlloyd and Hamze,

    I am trying to connect VSTS to my on-Premise Dynamics 2016 to export solution.

    Trying to use CRM Export Solution task with below connection string 

    AuthType=AD;Username=[DomainName]\[UserName];Password=$Pass;Url=https://[dns] 5555/GIDevTraining;Domain=[DomainName];RequireNewInstance=True;

    Below error after running the task , Can any one suggest with proper connection string with parameter?

    2018-01-26T06:19:51.8085698Z ##[section]Starting: MSCRM Export Solution
    2018-01-26T06:19:51.8085698Z ==============================================================================
    2018-01-26T06:19:51.8085698Z Task : MSCRM Export Solution
    2018-01-26T06:19:51.8085698Z Description : Exports a CRM Solution from the source CRM environment
    2018-01-26T06:19:51.8085698Z Version : 8.1.2
    2018-01-26T06:19:51.8085698Z Author : Wael Hamze
    2018-01-26T06:19:51.8085698Z Help : More information here: https://msdn.microsoft.com/en-us/library/microsoft.crm.sdk.messages.exportsolutionrequest.aspx
    2018-01-26T06:19:51.8085698Z ==============================================================================
    2018-01-26T06:19:53.7810832Z Exporting Unmanaged Solution
    2018-01-26T06:20:09.2997465Z ##[error]Object reference not set to an instance of an object.
    2018-01-26T06:20:09.3303003Z ##[section]Finishing: MSCRM Export Solution


    Sunday, January 28, 2018 10:31 AM