Issue while Exporting a solution from CRM DEV Instance

Topics: PowerShell Cmdlets
Apr 23 at 2:22 PM
Hi there,

I am getting an error while exporting solution from my DEV instance, I get this error with only 1 solutions and exporting other solution works just fine. Please see error log below

2017-04-23T12:57:12.2644412Z Exporting Unmanaged Solution
2017-04-23T12:57:19.4923792Z ##[debug]Exporting Solution: MySolution
2017-04-23T12:57:41.3012568Z ##[debug]Caught exception from task script.
2017-04-23T12:57:41.3042553Z ##[debug]Error record:
2017-04-23T12:57:41.4057937Z ##[debug]Export-XrmSolution : An unexpected error occurred.
2017-04-23T12:57:41.4067985Z ##[debug]At C:\a_tasks\MSCRMExportSolution_015e2e58-9c77-4cbc-a9c1-a28158165365\8.1.1\ps_modules\xRMCIFramework\ExportSolution.ps1:83 char:28
2017-04-23T12:57:41.4077940Z ##[debug]+ ... nagedFile = Export-XrmSolution -ConnectionString "$CrmConnectionStrin ...
2017-04-23T12:57:41.4087938Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-04-23T12:57:41.4107927Z ##[debug] + CategoryInfo : NotSpecified: (:) [Export-XrmSolution], FaultException1 2017-04-23T12:57:41.4117988Z ##[debug] + FullyQualifiedErrorId : System.ServiceModel.FaultException1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Micros oft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Xrm.Framework.CI.PowerShell.Cmdle ts.ExportXrmSolutionCommand
2017-04-23T12:57:41.4128006Z ##[debug]
2017-04-23T12:57:41.4137940Z ##[debug]Script stack trace:
2017-04-23T12:57:41.4177948Z ##[debug]at , C:\a_tasks\MSCRMExportSolution_015e2e58-9c77-4cbc-a9c1-a28158165365\8.1.1\ps_modules\xRMCIFramework\ExportSolution.ps1: line 83
2017-04-23T12:57:41.4187943Z ##[debug]at , C:\a_tasks\MSCRMExportSolution_015e2e58-9c77-4cbc-a9c1-a28158165365\8.1.1\MSCRMExportSolution.ps1: line 73
2017-04-23T12:57:41.4197937Z ##[debug]at , : line 1
2017-04-23T12:57:41.4207929Z ##[debug]at , : line 22
2017-04-23T12:57:41.4217930Z ##[debug]at , : line 18
2017-04-23T12:57:41.4228048Z ##[debug]at , : line 1
2017-04-23T12:57:41.4248890Z ##[debug]Exception:
2017-04-23T12:57:41.4288063Z ##[debug]System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: An unexpected error occurred. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).
2017-04-23T12:57:41.4637941Z ##[error]An unexpected error occurred.
2017-04-23T12:57:41.4637941Z ##[debug]Processed: ##vso[task.logissue type=error]An unexpected error occurred.
2017-04-23T12:57:41.4657960Z ##[debug]Processed: ##vso[task.complete result=Failed]
2017-04-23T12:57:41.5007991Z ##[section]Finishing: MSCRM Export Solution: MySolution
Jul 11 at 11:03 AM
Hi Wael,

First of all thanks again for this tool.It really makes life simple
Here is a new issue. We are getting for one solution which is exporting fine in CRM manually with version 8.2 selection but the same solution is throwing error when exporting using CRM scripts.
How to get exact error as we are not able to get hold of this issue

017-07-10T12:57:57.8474132Z ##[error]Export-XrmSolution : An unexpected error occurred.
At D:\a\1\s\Main\Source\BuildDeployAutomation\CRMSolution\ExportSolution.ps1:83 char:28

... nagedFile = Export-XrmSolution -ConnectionString "$CrmConnectionStrin ...
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Export-XrmSolution], FaultException1
FullyQualifiedErrorId : System.ServiceModel.FaultException
1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Micros
oft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Xrm.Framework.CI.PowerShell.Cmdle
ts.ExportXrmSolutionCommand