none
Update Rollup 13 - Error : Could not find part of the path "C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install\patch_newimport.xml

    Question

  • Hi,

    I get an exception when trying to update the organizations in one of our CRM saying that part of the path to the file patch_newimport.xml cannot be found.

    The update seems to be runninf fine, until this error. After that, everything stops (update process, that is). The CRM's organizations stay at the level the were before I tried the update. And everything seems to be working fine.

    The error looks like :

    23:10:26|  Error| Installer Complete: OrganizationDatabaseHotFixer - Error encountered
    23:10:26|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationDatabaseHotFixer: Échec de l'action Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.
    InnerException:
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install\patch_newimport.xml'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Microsoft.Crm.SharedUtil.LoadXmlDocumentFromFile(String fileName)
       at Microsoft.Crm.Setup.Common.Update.MultiTenantImportData..ctor(String importFile)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateMultiTenantHelper..ctor(Int32 revision)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateMultiTenantCache.GetInstance(Int32 revision)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdates(Guid orgId, String orgUniqueName, OrganizationOperationType operationType)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

    23:10:26|   Info| Setting organization state.  New state = Failed
    23:10:26|  Error| La mise à jour de l’organisation (ID=10b22b35-5dc8-e211-93da-005056904bf0) a échoué avec l’exception :
    System.Exception: Échec de l'action Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install\patch_newimport.xml'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Microsoft.Crm.SharedUtil.LoadXmlDocumentFromFile(String fileName)
       at Microsoft.Crm.Setup.Common.Update.MultiTenantImportData..ctor(String importFile)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateMultiTenantHelper..ctor(Int32 revision)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateMultiTenantCache.GetInstance(Int32 revision)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdates(Guid orgId, String orgUniqueName, OrganizationOperationType operationType)
       at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
       at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
       at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
       at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
       at Microsoft.Crm.Tools.Admin.OrganizationDatabaseHotFixer.Execute()
       at Microsoft.Crm.Tools.Admin.ApplyDatabaseHotFixInstaller.ApplyDatabaseHotFix(IApplyDatabaseHotFixInfo applyDatabaseHotFixInfo)
    23:10:26|   Info| GetDBUpdateRevisionThresholdForServer(): Threshold = 3448.

    Any idea?

    I tried to create the directory that seems to be missing and run the Org Update again. I get the same exception, but the update program can't find  the file, instead of the path.

    How come this path C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install or file C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install\patch_newimport.xml' are not there???

    Thank you, 

    Éric

    Wednesday, June 26, 2013 3:16 AM

All replies

  • Have you received a resolution to this? We are having the same problem.

    Thursday, September 12, 2013 4:48 PM
  • All I did was copy the contents of Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Slipstream\Actions_Org\Install into Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install and then was able to update the database.


    Tuesday, October 29, 2013 6:32 AM