Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unexpected Error on Exporting a Dynamics CRM Solution

(0) ShareShare
ReportReport
Posted on by 35

I am getting this error when exporting the CRM Solution.  Dynamics 365 , Version 1612 (8.2.1.176)  on-premises

The Web Service plug-in failed in OrganizationId: 38327bea-3422-e811-80e2-005056b930d3; SdkMessageProcessingStepId: 681f0f11-8e01-40a1-8d84-424242bb392c; EntityName: none; Stage: 30; MessageName: ExportSolution; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

   at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.

   at Microsoft.Crm.Tools.ImportExportPublish.RootExportHandler.RunExport()

   at Microsoft.Crm.WebServices.ExportXmlService.ExportSolutionWithTargetVersion(String solutionName, Boolean managed, String targetVersion, Boolean exportAutoNumberingSettings, Boolean exportCalendarSettings, Boolean exportCustomizationSettings, Boolean exportEmailTrackingSettings, Boolean exportGeneralSettings, Boolean exportMarketingSettings, Boolean exportOutlookSynchronizationSettings, Boolean exportRelationshipRoles, Boolean exportIsvConfig, Boolean exportSales, Boolean exportExternalApplications, ExecutionContext context) .

*This post is locked for comments

  • Abhicharan Profile Picture
    Abhicharan 35 on at
    RE: Unexpected Error on Exporting a Dynamics CRM Solution

    It is because of SLA. If remove the that SLA from the solution it is exporting. Including that sla it is not exporting. I am not getting whats wrong with that sla.

  • Abhishek Gupta Profile Picture
    Abhishek Gupta 2,001 on at
    RE: Unexpected Error on Exporting a Dynamics CRM Solution

    Hi,

    Seems like error code is still not documented. Follow below URL:

    dyn365apps.com/.../quick-reference-dynamics-365-web-service-error-codes

    To troubleshoot i have find that it may be because of some invalid data that fall into a solutions. Try creating a new solution and export. secondly if you have editable grid on for any entity kindly off that and export.

    Thank you

    Abhishek

    If found useful, please mark the answer as verified

  • Abhicharan Profile Picture
    Abhicharan 35 on at
    RE: Unexpected Error on Exporting a Dynamics CRM Solution

    This is the error log

    [2019-05-02 08:46:31.438] Process: w3wp |Organization:38327bea-3422-e811-80e2-005056b930d3 |Thread:   46 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 45a2a856-0cb6-4e1e-955b-374e3b93f60b |ActivityId: 45a2a856-0cb6-4e1e-955b-374e3b93f60b | ErrorInformation.LogError  ilOffset = 0x25

    >MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x80040216

    Error Message: An unexpected error occurred.

    Error Details: An unexpected error occurred.

    Source File: Not available

    Line Number: Not available

    Request URL: crmdev.dudley.gov.uk/.../dlg_exportsolution.aspx;command=exportsolution&ismanaged=0&optionxml=%3csettings%3e%3cexportAutoNumber%3efalse%3c%2fexportAutoNumber%3e%3cexportCalendar%3efalse%3c%2fexportCalendar%3e%3cexportCustomization%3efalse%3c%2fexportCustomization%3e%3cexportEmailTracking%3efalse%3c%2fexportEmailTracking%3e%3cexportGeneral%3efalse%3c%2fexportGeneral%3e%3cexportMarketing%3efalse%3c%2fexportMarketing%3e%3cexportOutlookSynchronization%3efalse%3c%2fexportOutlookSynchronization%3e%3cexportRelationshipRole%3efalse%3c%2fexportRelationshipRole%3e%3cexportSales%3efalse%3c%2fexportSales%3e%3cexportExternalApplications%3efalse%3c%2fexportExternalApplications%3e%3cexportIsvConfig%3efalse%3c%2fexportIsvConfig%3e%3c%2fsettings%3e

    Stack Trace Info: [CrmException: An unexpected error occurred.]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

      at Microsoft.Crm.Application.Platform.ServiceCommands.ExportSolutionCommand.Execute()

      at Microsoft.Crm.Dialogs.ExportSolutionPage.ExportSolution(Boolean managed, String optionXml, String targetVersion)

      at Microsoft.Crm.Dialogs.ExportSolutionPage.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2019-05-02 08:46:31.438] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   46 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 45a2a856-0cb6-4e1e-955b-374e3b93f60b |ActivityId: 45a2a856-0cb6-4e1e-955b-374e3b93f60b | ExceptionConverter.ConvertMessageAndErrorCode  ilOffset = 0x26C

    >System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3870167F: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: An unexpected error occurred.

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

      at Microsoft.Crm.Application.Platform.ServiceCommands.ExportSolutionCommand.Execute()

      at Microsoft.Crm.Dialogs.ExportSolutionPage.ExportSolution(Boolean managed, String optionXml, String targetVersion)

      at Microsoft.Crm.Dialogs.ExportSolutionPage.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Abhicharan Profile Picture
    Abhicharan 35 on at
    RE: Unexpected Error on Exporting a Dynamics CRM Solution

    Yes.

    Since morning I am getting this error again and again.  We haven't get this error in last deployment.

  • Abhishek Gupta Profile Picture
    Abhishek Gupta 2,001 on at
    RE: Unexpected Error on Exporting a Dynamics CRM Solution

    Is it recurring error?

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans