Error During File Upload - Fille Cannot Be Found in Temporary Folder

Description

The error might appear when an email is being uploaded to the server.

The error log contains:

--- [HASH: 855A9FB1180185845DB87C130F2B513E]---
Synchronization failed
eWay.Core.Exceptions.StoreException: Uploading of items failed. ---> System.InvalidOperationException: Item with GUID 'c2cfd8b5-6738-11e7-8112-005056a14770' was not found in 'C:\Users\username\AppData\Roaming\Memos\eWay\Email\c2cfd8b5-6738-11e7-8112-005056a14770.msg'
v eWay.Core.CachedDataInterface.Triggers.CheckBinaryDataBeforeMetadataUpload.CheckFileInTemp()
v eWay.Core.CachedDataInterface.Triggers.CheckBinaryDataBeforeMetadataUpload.Execute()
v eWay.Core.CachedDataInterface.CachedItemStore.ExecuteTriggers(Dictionary`2 triggers, OutlookItem diItem, Application olApplication, Nullable`1 serverItem, Object[] additionalParameters)
v eWay.Core.CachedDataInterface.CachedItemStore.ExecuteBeforeSaveToRemoteTriggers(OutlookItem remoteItem, Application olApplication)
v eWay.Core.CachedDataInterface.CachedItemStore.SaveLocalItemToRemoteStore(Application application, SynchronizationItem synchronizationSetting, OutlookItem localItem)
v eWay.Core.CachedDataInterface.CachedItemStore.UploadItem(Application application, ItemVersion item, Boolean remove)
--- End of inner exception stack trace ---
v eWay.Core.CachedDataInterface.CachedItemStore.UploadItem(Application application, ItemVersion item, Boolean remove)
v eWay.StandardEdition.Synchronization.SynchronizeThread.<>c__DisplayClass66_0.b__0()
v eWay.Core.Data.TransactionRepeater.RunInTransaction(Func`1 transactionCommands, Boolean allowBulkInsert)
v eWay.StandardEdition.Synchronization.SynchronizeThread.UploadItem(Boolean& synchronizationOK, Boolean& newData, DateTime till, Application outlookApplication)
v eWay.StandardEdition.Synchronization.SynchronizeThread.TryUploadItem(Boolean& synchronizationOK, Boolean& newData, DateTime start, Application outlookApplication)
v eWay.StandardEdition.Synchronization.SynchronizeThread.UploadItems(Boolean& synchronizationOK, Boolean& newData, List`1 lastUploadedItems, Application outlookApplication)
--- END TRACE ---

Version

All versions of eWay-CRM

Difficulty

Low

Resolution

The error is caused by the missing file in %USERPROFILE%\.eWay-CRM\Upload and %USERPROFILE%\.eWay-CRM\Email (former %APPDATA%\Memos\eWay\Upload (folder was called Temp previously) and %APPDATA%\Memos\eWay\Email).

eWay-CRM creates temporary files in %USERPROFILE%\.eWay-CRM\Upload before they are uploaded to the server. It may happen that some tools delete temporary files to free up disk space before eWay-CRM finishes their upload to the server. It may also happen that OUTLOOK.EXE process is killed by the user before the e-mail is stored into those folders. Emails will not be saved nor in %APPDATA%\Memos\eWay\Upload or %APPDATA%\Memos\eWay\Email and cannot be uploaded to server.

Resolution:

  1. Find email by its GUID in Emails list - see How to Search Using Unique Identifier (GUID) in eWay-CRM.
  2. Delete email from eWay-CRM and save it again.