none
Fehler beim Upgrade von CRM4 nach CRM2011 RRS feed

  • Frage

  • Hallo,

     

    ich habe versucht ein bestehendes CRM4 auf CRM2011 zu upgraden. Gegen Ende der Installation brach das Upgrade mit folgender Fehlermeldung ab:

    18:27:25|   Info| === Start des Setup-Bootstrapprotokolls: 21.07.2011 18:27:25 ===

    .

    .

    .

    18:49:25|   Info| Upgrade für R4-Startseitenlayout wird ausgeführt...
         
    18:49:25|   Info| Did not detect single user -- not clearing pool
    18:49:25|Verbose| DatabaseAction execution time; MSCRM\UpgradeR4HomepageLayout.sql; 00:00:00.0781765
    18:49:25|   Info| Upgrade für Visualisierungen wird ausgeführt...
    18:49:25|   Info| Did not detect single user -- not clearing pool
    18:49:25|Verbose| DatabaseAction execution time; MSCRM\UpgradeVisualizations.sql; 00:00:00.0781765
    18:49:25|   Info| Upgrade für Rollenrechte wird ausgeführt...
    18:49:25|   Info| Did not detect single user -- not clearing pool
    18:49:25|Verbose| DatabaseAction execution time; MSCRM\UpgradeSystemFormPrivileges.sql; 00:00:00.1250824
    18:49:25|   Info| Ein Upgrade von 'OwningBusinessUnit Relationships CascadeDelete' auf 'NoCascade from RemoveLink' wird ausgeführt
    18:49:25|   Info| Did not detect single user -- not clearing pool
    18:49:25|Verbose| DatabaseAction execution time; MSCRM\UpdateOwningBusinessUnitRelationships.sql; 00:00:00.3439766
    18:49:26|   Info| XML-Upgrade der Metadaten: 2. Durchgang
    18:50:18|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:Pass2; 00:00:52.7369197
    18:50:18|   Info| Bereinigung optionssatzbezogener Tabellen und abschließende Änderungen
    18:50:18|   Info| Did not detect single user -- not clearing pool
    18:50:18|Verbose| DatabaseAction execution time; Metabase\OptionSet.sql; 00:00:00.0781735
    18:50:18|   Info| Anpassungen für nicht anpassbare OptionSet-Elemente entfernen
    18:50:19|   Info| Did not detect single user -- not clearing pool
    18:50:19|Verbose| DatabaseAction execution time; Metabase\RemoveCustomizationsForNonCustomizableOptionSets.sql; 00:00:00.2657899
    18:50:19|   Info| Aktivitätsparteien wurden vom Prozess aus der temporären Tabelle gelöscht.
    18:50:19|   Info| Did not detect single user -- not clearing pool
    18:50:19|Verbose| DatabaseAction execution time; MSCRM\ProcessDeletedActivityParties.sql; 00:00:00.0938082
    18:50:19|   Info| Länge der Betreffattribute von Aktivitätsentitäten normalisieren
    18:50:19|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:AdjustActivitySubjectLengths; 00:00:00.0938082
    18:50:19|   Info| Upgrade der Ansichten in der MSCRM-Datenbank wird ausgeführt...
    18:50:31|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:RegenerateAllViews; 00:00:12.4139328
    18:50:31|   Info| Funktion "fn_GetMaxPrivilegeDepthMask" in MSCRM installieren
    18:50:31|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:InstallStoredProcedure; 00:00:00.0938076
    18:50:31|   Info| fn_UserSharedAttributeAccess-Funktion in MSCRM installieren
    18:50:31|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:InstallStoredProcedure; 00:00:00.0469038
    18:50:31|   Info| Aktualisieren Sie die Felder für die Überprüfung der Partnerauthentifizierung.
    18:50:31|Verbose| Upgrading schema for 0 custom entities.
    18:50:31|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:UpgradeImpersonationAuditingFields; 00:00:00.0469038
    18:50:31|   Info| Transaktionswährungsattribute für benutzerdefinierte Aktivitäten upgraden
    18:50:32|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:SetTransactionCurrencyOnCustomActivities; 00:00:00.1094422
    18:50:32|   Info| Sicherstellen, dass benutzerdefinierte Attribute sich in der richtigen Tabelle befinden
    18:50:32|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:EnsureCustomAttributesAreCustom; 00:00:00.1563460
    18:50:32|   Info| Upgrade der Ansichten in der MSCRM-Datenbank wird ausgeführt...
    18:50:44|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:RegenerateAllViews; 00:00:11.8510268
    18:50:44|   Info| Erstellt eine Tabelle vom Typ "CascadeCollectionTable", die bei Löschweitergabevorgängen verwendet wird.
    18:50:44|   Info| Did not detect single user -- not clearing pool
    18:50:44|Verbose| DatabaseAction execution time; MSCRM\CreateCascadeCollectionTableType.sql; 00:00:00.0938076
    18:50:44|   Info| Gespeicherte Prozeduren in MSCRM installieren
    18:50:47|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:InstallStoredProcedures; 00:00:03.2364452
    18:50:47|   Info| Erbende Entitätstabellen und -spalten für verschobene Daten löschen
    18:50:47|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:DeleteInheritingEntityTablesAndColumns; 00:00:00.3439722
    18:50:47|   Info| Upgradenachverfolgungstabellen für erbende Entität löschen
    18:50:47|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:DeleteInheritingEntityUpgradeTables; 00:00:00.0312702
    18:50:47|   Info| Aktualisieren Sie die Längenwerte für denormalisierte Attribute.
    18:50:48|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.DataUpgrade.dll:Upgrade; 00:00:00.6566742
    18:50:48|   Info| Plug-In-Assemblys aktualisieren
    18:50:48|Verbose| PluginAssemblyUpgradeAction : Upgrading plugin assemblies
    18:51:04|  Error| PluginAssemblyUpgradeAction: Exception occurred: Microsoft.Crm.CrmException: The user Id is invalid.
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
       bei Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.GetCurrentUserId(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.Upgrade(), Error, OK, Option1
    18:54:39|   Info| InputResult: OK
    18:54:39|   Info| CrmAction execution time; UpgradeDatabaseAction; 00:13:04.6560446
    18:54:39|  Error| Installer Complete: OrganizationUpgrader - Error encountered
    18:54:39|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Fehler bei der Aktion Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction.
    InnerException:
    System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> Microsoft.Crm.CrmException: The user Id is invalid.
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
       bei Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.GetCurrentUserId(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.Upgrade()
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       bei System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       bei System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       bei Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       bei Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       bei Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       bei Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    InnerException:
    Microsoft.Crm.CrmException: The user Id is invalid.
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
       bei Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.GetCurrentUserId(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.Upgrade()

    18:54:39|   Info| Setting organization state.  New state = Failed
    18:54:39|  Error| Install exception.System.Exception: Fehler bei der Aktion Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction. ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> Microsoft.Crm.CrmException: The user Id is invalid.
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context)
       bei Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId)
       bei Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.GetCurrentUserId(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.MarshalByRefPluginAssemblyAction.UpgradePluginAssemblyBatch(Guid organizationId)
       bei Microsoft.Crm.DataUpgrade.PluginAssemblyUpgrade.Upgrade()
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       bei System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       bei System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       bei Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
       bei Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       bei Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       bei Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
       bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
       bei Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
       bei Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
       bei Microsoft.Crm.Tools.Admin.OrganizationUpgrader.Install(IDictionary stateSaver)
       bei Microsoft.Crm.Setup.Common.ComposedInstaller.InvokeInstall(Installer installer, IDictionary stateSaver)
       bei Microsoft.Crm.Setup.Common.ComposedInstaller.InternalInstall(IDictionary stateSaver)
       bei Microsoft.Crm.Setup.Common.ComposedInstaller.Install(IDictionary stateSaver)
       bei Microsoft.Crm.Setup.Server.ServerSetup.Upgrade(IDictionary data)
       bei Microsoft.Crm.Setup.Common.SetupBase.ExecuteOperation()
    18:54:39|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.ExecuteOperation
    18:54:39|   Info| ActivatePage(ServerSetupFinishPage)

     

    Zu Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction in Verbindung mit Microsoft.Crm.CrmException: The user Id is invalid habe ich leider nichts gefunden. Wäre für jede Hilfe dankbar.

    Freitag, 22. Juli 2011 09:50

Antworten

  • Hallo,

     

    der Fehler scheint ja in Verbindung mit den Plugins aufzutreten. Die Plugins laufen ja in einem Benutzer-Kontext bzw. werden registriert und unter einem bestimmten Konto ausgeführt. Kann es sein, dass genau dieser CRM-User nicht mehr existiert? Ggf. solltest du die Plugins unter CRM4.0 erst unter einem anderen User registrieren und danach die Migration ausführen.

    Schöne Grüße,

    Nils

    Freitag, 22. Juli 2011 10:14