You are here: Home / FAQ / Database / The file XXX.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.

The file XXX.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.

Description

This error will appear:

The file XXX.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.

XXX is a name of the file that is different for each user.

The error can look like this:

HASH: 549E2FA81C5DE0B6E42E62022B07DE32
Synchronization failed
System.Runtime.InteropServices.COMException (0x8004011D): Error in IMAPISession::OpenMsgStore: MAPI_E_FAILONEPROVIDER
ulVersion: 0
Error: The file C:\Users\Asia-pc\AppData\Local\Microsoft\Outlook\XXX.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer.
Component: Outlook Data File
ulLowLevelError: 2147747893
ulContext: 268828930
   at Interop.eWayRedemption.RDOStoreClass.GetDefaultFolder(rdoDefaultFolders FolderType)
   at eWay.Core.OutlookAccess.Helpers.MailboxHelper.GetDefaultFolderDefinedByOutlook(RDOStore mailbox, OlDefaultFolders folderType)
   at eWay.Core.OutlookAccess.Helpers.MailboxHelper.GetDefaultFolders(OlDefaultFolders folderType)
   at eWay.Core.OutlookAccess.Application.GetDefaultFolders(String folderName)
   at eWay.Core.OutlookAccess.Application.GetItemByGuid(String itemId, String folderName)
   at eWay.Core.OutlookAccess.Application.GetItemByDescription(OutlookItemDescriptor descriptor)
   at eWay.Core.OutlookAccess.ApplicationWrapper.GetItemByDescription(OutlookItemDescriptor descriptor)
   at eWay.Core.OutlookAccess.Library.ShouldSynchronizeWithOutlook(String itemId, String folderName, IApplication olApplication, ILocalItemStore itemStore, Boolean delete)
   at eWay.Core.CachedDataInterface.CachedItemStore.SaveToOutlook(OutlookItem diItem, IApplication olApplication, Nullable`1 serverItem)
   at eWay.Core.CachedDataInterface.CachedItemStore.SaveRemoteItemToLocalStore(OutlookItem remoteItem, Application olApplication, Boolean& isNew)
   at eWay.Core.CachedDataInterface.CachedItemStore.DownloadItemUsingItemChanges(Application application, SynchronizationSettings synchronizationSettings, SynchronizationItem syncItem, ItemVersion[] items, Dictionary`2 newDownloadedItems)
   at eWay.StandardEdition.Synchronization.SynchronizeThread.SynchronizeChanges(Application application, SynchronizationSettings synchronizationSettings, List`1 lastUploadedItems, Dictionary`2 newDownloadedItems, Boolean& newData, Int64& localLastChange, Int64 serverLastChange, SynchronizationOfChangesStateUpdater stateUpdater)
   at eWay.StandardEdition.Synchronization.SynchronizeThread.SynchronizeChanges(Boolean& synchronizationOK, List`1 lastUploadedItems, Boolean& newData, Int64& lastChange)
--- END TRACE ---

The error can appear in various situations and not only during work with eWay-CRM:

  • During opening MSG file
  • During saving a contact to eWay-CRM
  • During synchronization of eWay-CRM with server if there was a contact change

Version

All versions of eWay-CRM

Difficulty

Medium

Resolution

Option 1: Restart

At first, try to restart Microsoft Outlook. The error could be caused by minor malfunction.

In the case that the restart of Microsoft Outlook is not helping, try to restart your computer. The new launch of all applications can resolve the issue.

Option 2: Subsequent procedure (restart isn't working)

In the case that restart of Microsoft Outlook or restart of your computer won't help, you need to follow these steps:

  1. Check whether there are multiple Office versions installed, e.g. Office 2013 and Office 365. In such case one of the versions has to be uninstalled and PC has to be restarted.
  2. Check whether you have installed all updates of MS Office. If you have Office 365 Click-to-Run, update is not reachable through Windows Update, but right in MS Office (e.g. in main menu of MS Outlook).
  3. If you have Microsoft Lync installed, check, whether background processes Communicator.exe or ucMapi.exe are not running.
  4. Launch Microsoft Office Repair in Windows Control Panel.