web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unexpected Error on few account after migration from CRM 2011 to CRM 2013

(0) ShareShare
ReportReport
Posted on by

Hi,

I just did migration from crm 2011 to crm 2013

I've got an issue with few accounts in newest CRM 2013. (during upgrade there was no errors, also all customization were removed).

Most of account works well but few of them as soon as I try to open I'm receiving unexpected error.

Any idea what can be an issue or at least where to start looking reason.

In CRM 2011 there is no problem with accounts - all of them working fine

Kind regards,

Pawel

*This post is locked for comments

I have the same question (0)
  • MoMo Profile Picture
    430 on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    Hi,

    I have been trying to fix this issues since many days without any luck. Problem is cases forms are not working any more because of in place upgrade.

    I have two environment Dev and Staging. It works fine in Dev which was build from scratch but in Staging and live it is not working at all.

    I checked the Event Log and i found the following error:

    The Web Service plug-in failed in OrganizationId: bcf538ac-19fd-e311-b26b-000c2926d731; SdkMessageProcessingStepId: b2cbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: incident; Stage: 30; MessageName: Retrieve; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

    at Microsoft.Crm.BusinessEntities.OptionSetValueAttributeConverter.ConvertFromBusinessEntity(IAttributeInfo attributeInfo, Dictionary`2 nameToChildAttributes, ICrmConversionContext context, Entity target)

    at Microsoft.Crm.BusinessEntities.BusinessEntityToEntityConverter.Convert(ICrmConversionContext conversionContext, BusinessEntity businessEntity)

    at Microsoft.Crm.BusinessEntities.ConversionHelpers.ConvertIfBusinessEntity(ICrmConversionContext conversionContext, Object source, Type destinationType)

    at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType)

    at Microsoft.Crm.Extensibility.DictionaryMapper.Map(PropertyBag inputs, ICrmConversionContext context)

    at Microsoft.Crm.Extensibility.PropertyBagMapper.Map(PropertyBag source, ParameterCollection target, ICrmConversionContext context)

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

    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

  • PawelK Profile Picture
    on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    Hi,

    This tool not working with crm 2013. (As soon as i want to start it I've got Error: An Error occured: Index was outside the bounds of the array.) Run it as admin on local server from default trace location and desktop.

    Second options with powershell.

    "PS C:\Windows\system32> get-pssnapin

    Name        : Microsoft.PowerShell.Core

    PSVersion   : 3.0

    Description : This Windows PowerShell snap-in contains cmdlets used to manage components of Windows PowerShell.

    Name        : Microsoft.Crm.PowerShell

    PSVersion   : 3.0

    Description : A Windows PowerShell snap-in containing cmdlets that manage components of Microsoft Dynamics CRM.

    BUT as soon as i try to run "any" command related to CRM  (Get-CrmOrganization, Get-CrmSetting TraceSettings) I've got  error:

    Get-CrmOrganization : The remote server returned an error: (404) Not Found.

    PS run as admin. Tried x86 and x64.

    =========================================================

    Finally trace enabled with registry edit.

    Inside:

    MSCRM Error Report:

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

    Error: Error executing child request for /{Organisation name]/_forms/read/page.aspx.

    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: http://[Server/Organisation Name]/main.aspx?etc=1&extraqs=%3f_gridType%3d1%26etc%3d1%26id%3d%257b4E4E9B5D-2847-4A00-A1F6-6781DFC02444%257d%26rskey%3d527954085&pagemode=iframe&pagetype=entityrecord&rskey=527954085

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

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

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

      at Microsoft.Crm.Application.Platform.DataSource.Retrieve(String entityName, Guid entityId, String[] columns, Boolean retrieveLatest, Boolean useSystemUserContext, Guid auditingTransactionId, IOrganizationContext context)

      at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)

      at Microsoft.Crm.Application.Components.Sdk.ReadFormControls.Web.ProcessControlProcessCache.GetPreferredProcessId(Int32 entityTypeCode, Guid parentEntityId, Boolean& skipFallback)

      at Microsoft.Crm.Application.Components.Sdk.ReadFormControls.Web.ProcessControlProcessCache.GetProcess(Guid parentEntityId, Int32 entityTypeCode)

      at Microsoft.Crm.Application.ProcessControl.ProcessControlDataBuilder.LazyLoadProcess()

      at System.Lazy`1.CreateValue()

      at System.Lazy`1.LazyInitValue()

      at Microsoft.Crm.Application.ProcessControl.ProcessControlDataBuilder.get_ProcessId()

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, Guid formId, FormFactor formFactor)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder..ctor(String recordId, String entityTypeCode, FormFactor formFactor)

      at Microsoft.Crm.Application.Pages.Common.ReadFormPage.PopulateFormDescriptorAndDataBuilder()

      at Microsoft.Crm.Application.Pages.Common.ReadFormPage.OnPreInit()

      at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)

      at System.Web.UI.Control.InitRecursive(Control namingContainer)

      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.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

    [HttpException: Error executing child request for /Hypersoft/_forms/read/page.aspx.]

      at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

      at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)

      at System.Web.HttpServerUtility.Transfer(String path)

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

      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)

    Next to i found also: in Eventvwr:

    The Web Service plug-in failed in OrganizationId: bc63cc1b-1084-e311-a18a-00155dfe2301; SdkMessageProcessingStepId: 81cbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: account; Stage: 30; MessageName: Retrieve; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=6.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.

    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 2/3/2014 6:25:31 PM
    Event time (UTC): 2/3/2014 5:25:31 PM
    Event ID: 53d1044b894b4030b246340b0f2d3934
    Event sequence: 137
    Event occurrence: 1
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/1/ROOT-1-130359215809690394
        Trust level: Full
        Application Virtual Path: /
        Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\

        Machine name: [Server Name]
     
    Process information:
        Process ID: 2976
        Process name: w3wp.exe
        Account name: [Domain\Account Name]
     
    Exception information:
        Exception type: HttpUnhandledException
        Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
       at System.Web.UI.Page.HandleError(Exception e)

    ....

    An unexpected error occurred.
       at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

    ....

    Request information:
        Request URL: http://[server/Organization Name]/main.aspx?etc=1&extraqs=?_gridType=1&etc=1&id=1b4E4E9B5D-2847-4A00-A1F6-6781DFC024441d&rskey=527954085&pagemode=iframe&pagetype=entityrecord&rskey=527954085
        Request path: /[Organization Name]/main.aspx
        User host address: 192.168.10.73
        User: [Domain\Account Name]
        Is authenticated: True
        Authentication Type: Negotiate
        Thread account name: [Domain\Account Name]
     
    Thread information:
        Thread ID: 11
        Thread account name: [Domain\Account Name]
        Is impersonating: False
        Stack trace:    at System.Web.UI.Page.HandleError(Exception e)


    In case of: Windows Server 2012 all updates, CRM 2013 all updates

    Hope this info bring some more idea what may be wrong.

    Best regards,

    Pawel

  • Suggested answer
    Lozici Cezar Profile Picture
    890 on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    Hi Pavelk,

    If you have a CRM OnPremise instance than you can enable Server Verbose Tracing which will allow you to see what is the true error behind the generic ""An error has occurred.. " type of error. You can easily achieve this by using one of the following 2 options(Option 1 / Option 2 ). You need to first enable the traces (for easier usage simply leave all categories on Verbose level) and then do a quick repro of the issue and then disable the traces (make sure you mark down the time (hour, minute, second) of when the error occurs).You then need to simply look in the "w3wp-crmweb" log at the time you have noted from your repro(you can open the log file with a dedicated tool - Example - for easier reading. With that error you can either came back here and post it or open a Support Incident with us to have a closer look at your issue.

    Thank you for using Microsoft Dynamics CRM Communities

    Cezar Lozici

    Support Engineer

    Microsoft Dynamics CRM

  • Vijay Waghmare Profile Picture
    on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    System required fields are needed for CRM core operation where business required are business driven(can mark any field as business required as per requirement or business flow)

    I faced similar issue prior while migrating data from crm 2011 to 2013 and noticed similar behaviour and fixed by populating missing information.

    Since in 2013 there are many architecture level changes introduced at database level, I feel this issue is occurring.

    Thanks,

    Vijay Waghmare

  • PawelK Profile Picture
    on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    @Ben,

    There is no more info. Blank page and on the center red circle with x. "Unexpected error. an error has occurred. Try this action again. if the problem continue, check the MS Dynamic CRM Community for solution or contact your organization's Ms Dynamic CRM Administrator. finally, you can contact MS Support." - that's all.

    @Vijay

    Does it mean there are differences between this systems and some fields can be diff (one e.g business require second not)? In old crm there is no issue with open it and do what you want.

    kind regards,

    Pawel

  • Suggested answer
    Vijay Waghmare Profile Picture
    on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    Its generally issue of system or business required fields are set to null. Can you compare the data through SQL Query (for on premise 2013), to check the data for working and non working account records.

    Select * from filteredaccount where accountid in (guid1,guid2)

    Try populating missing data through SQL and verify if record can be opened using CRM.

    Hope this help.

    Thanks,

    Vijay Waghmare

  • Hosk Profile Picture
    on at
    RE: Unexpected Error on few account after migration from CRM 2011 to CRM 2013

    when you say you are receiving an unexpected error what do you mean

    could you give us more details of the error please

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans