locked
CRM 4 to crm 2011 migration issue - phone call entity RRS feed

  • Question

  • Hello All,

    I am importing an existing crm 4 organization to a new crm 2011 installation.  I am having an issue with the phonecall entity (Objecttypeid 4210).  I am using the deployment tool from Microsoft.  I been looking around in all the forums and blogs and I cannot find a solution to my problem.  The phone call entity is rarely  used and there is very little JavaScript code within it.  I have pasted the first part of the error log below.

    Any Help in resolving this problem would be greatly appreciated!

    07:40:50|   Info| Exception upgrading form ObjectTypeCode=4210,SolutionId=fd140aae-4df4-11dd-bd17-0019b9312238,ComponentState=0. Message = Object reference not set to an instance of an object.
    07:40:50|Verbose| Exception in FormsUpgradeDriverBase's Upgrade method. Message = Object reference not set to an instance of an object.
    07:40:50|   Info| CrmAction execution time; UpgradeDatabaseAction; 00:28:35.1158115
    07:40:50|  Error| Installer Complete: OrganizationUpgrader - Error encountered
    07:40:50|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
    InnerException:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriver4.MoveOnChangeEvents(Form form, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.UpgradeForms(IList`1 forms, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.Upgrade()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    InnerException:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriver4.MoveOnChangeEvents(Form form, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.UpgradeForms(IList`1 forms, SqlExecutionContext sqlContext)

    Thanks

    Roberto Lopez

    Tuesday, September 6, 2011 11:42 AM

All replies

  • As the error seems to be from a 'MoveOnChangeEvents' method, I'd suggest :

    1. First, remove all code in OnChange events in the phonecall form to see if that will let you upgrade
    2. If that doesn't work, there may be some 'orphaned' event code. Try exporting the phonecall entity from CRM 4, then search in the xml for any reference to an onchange event. If you find one, try removing it from the xml, then reimport the updated xml, publish the entity, and try the upgrade again

    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Tuesday, September 6, 2011 3:49 PM
    Moderator
  • Hello David,

    I tried both suggestions and it did not work.:-(  Please see below...

    I removed all the JavaScript code from the entity form.  Luckily, there was not much code to remove in the first place.  I basically received the same error.  

    if the deployment tool does not work for my Org.  is there another way to accomplish the CRM 4 to CRM 2011 upgrade?  is there another utility to do imports?  Are there instructions to the same tasks manually?

    thanks

    16:16:31|Verbose| Moving onchange events on form ObjectTypeCode=4210,SolutionId=fd140aad-4df4-11dd-bd17-0019b9312238,ComponentState=0
    16:16:31|   Info| Exception upgrading form ObjectTypeCode=4210,SolutionId=fd140aae-4df4-11dd-bd17-0019b9312238,ComponentState=0. Message = Object reference not set to an instance of an object.
    16:16:31|Verbose| Exception in FormsUpgradeDriverBase's Upgrade method. Message = Object reference not set to an instance of an object.
    16:16:31|   Info| CrmAction execution time; UpgradeDatabaseAction; 00:29:59.8281630
    16:16:31|  Error| Installer Complete: OrganizationUpgrader - Error encountered
    16:16:31|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
    InnerException:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriver4.MoveOnChangeEvents(Form form, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.UpgradeForms(IList`1 forms, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.Upgrade()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    InnerException:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriver4.MoveOnChangeEvents(Form form, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.UpgradeForms(IList`1 forms, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.Upgrade()

    16:16:31|   Info| Setting organization state.  New state = Failed
    16:16:31|  Error| Upgrade Organization with Id=628bb74c-5360-e011-98d1-0050569600a2 failed with Exception:
    System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriver4.MoveOnChangeEvents(Form form, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.UpgradeForms(IList`1 forms, SqlExecutionContext sqlContext)
       at Microsoft.Crm.DataUpgrade.FormsUpgradeDriverBase.Upgrade()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

    Tuesday, September 6, 2011 9:45 PM