Issue:
When migration is configured to run in Transparent mode, SnapShots are created of attached PST files to ensure data consistency and continuity of user experience. Some the SnapShot copy of the file is unable to be deleted due to a file lock or other conditions. When this occurs the following error can be seen in the PST Flight Deck (FD) Admin console.
Migration Agent failed to upload PST Id -XXX: SnapShot Exception FileID=-XXX. Not able to delete SnapShot C:\Users\NNNNN\AppData\Local\Temp\Personal Folders 1.pst in export location. The export can’t continue since the mails could be exported twice to the SnapShot.

Summary:
This issue can happen for a number of reasons. If the issue is isolated to limited users the suggested steps for remediation of the issue will likely address the issue. If the issue is more wide-spread then a further investigation into the root cause of the issue may be required. Frequently the culprit is antivirus software on the client locking the file after the snapshot has been made.
Steps for remediation:
If you see isolated incidents of this from a given user/file/workstation, you may be able to address this issue from the FD Admin Console. As these are agent requests, each step for remediation will take a period greater than the configured Agent polling interval when the user is actively logged into the system.

  1. Request client logs and reset the agent as seen in Figure 1
    • Review logs for examples of the issue as seen below
    • Monitor Event logs for issue recurrence
  2. If the issue recurs, send a request to disconnect the file
    • This action will disconnect the file from Outlook and the user may notice the change. Communicate as is appropriate
    • Monitor for upload

Figure 1

Client logs showing the issue:

2015-06-30T11:22:41.7193845-04:00|Warn|4|ClientCopyCore|MonitorTask.DoPreCheck => PstSnapshotTask.Execute => PstSnapshotTask.DeleteIncompleSnaphost|Not able to delete the incomplete SnapShot System.IO.IOException: The process cannot access the file 'C:\Users\XXXXXXX\AppData\Local\Temp\Personal Folders(1).pst' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at PSTCoreLibrary.Task.PstSnapshotTask.DeleteIncompleSnaphost(String fileName, Int32 timeout)
2015-06-30T11:22:41.7193845-04:00|Error|4|ClientCopyCore|MonitorTask.ProcessFile => MonitorTask.DoPreCheck => PstSnapshotTask.Execute|SnapShot Exception System.Exception: FileID=-424. Not able to delete SnapShot C:\Users\XXXXXX~1\AppData\Local\Temp\Personal Folders(1).pst in export location. The export can't continue, since the mails could be exported twice to the SnapShot.
at PSTCoreLibrary.Task.PstSnapshotTask.Execute(PstFile file)
2015-06-30T11:22:41.8883845-04:00|Info|4|ClientCopyCore|MonitorTask.ProcessFile => MonitorTask.DoPreCheck => PstSnapshotTask.Execute|Deleting incomplete SnapShot of FileID=-424 within next 300 seconds 
2015-06-30T11:23:08.1853845-04:00|Info|1|Task|Program.Main => BaseThreadTask.RunManually => BaseThreadTask.RunProcess|Finalized. 
2015-06-30T11:23:08.5053815-04:00|Fatal|8|ClientCopyCore|Win32Native.SetEvent => ExceptionHandler.ApplicationUnhandledException => ExceptionHandler.LogException|Unhandled exception, is terminating True System.ObjectDisposedException: Safe handle has been closed
at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle)
at System.Threading.EventWaitHandle.Set()
at PSTCoreLibrary.Task.PstSnapshotTask.<>c__DisplayClass10.<Execute>b__4(Object sender, DataReceivedEventArgs e)
at System.Diagnostics.Process.ErrorReadNotifyUser(String data)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
2015-06-30T11:23:08.5053815-04:00|Fatal|7|ClientCopyCore|Win32Native.SetEvent => ExceptionHandler.ApplicationUnhandledException => ExceptionHandler.LogException|Unhandled exception, is terminating True System.ObjectDisposedException: Safe handle has been closed
at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle)
at System.Threading.EventWaitHandle.Set()
at PSTCoreLibrary.Task.PstSnapshotTask.<>c__DisplayClassd.<Execute>b__3(Object sender, DataReceivedEventArgs e)
at System.Diagnostics.Process.OutputReadNotifyUser(String data)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
2015-06-30T11:23:08.6457788-04:00|Info|8|ClientCopyCore|Win32Native.SetEvent => ExceptionHandler.ApplicationUnhandledException => Program.<Main>b__1|Restarting program.
Print Friendly, PDF & Email