Async connection is working fine and master data is getting synced without any issue. But the sales pulling is not working as packets are getting created in the working folder, but not getting processed in AX. Issue is affecting only one store that was closed for a year and re-opened.

Below error in event viewer in Async Server in HQ:

Failed to upload session data of uploadSessionId 53812 for DataStore with name : XXXX due to Exception. Error Detail: System.IO.IOException: The process cannot access the file '\\YYYY\Retail-WF\Upload\XXXX\XXXX-53812-R.rpf' because it is being used by another process.
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, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.Dynamics.Retail.SynchService.DataManager.UploadSessionDataManager.UploadSessionData(String dataStoreName, Int64 uploadSessionId, Byte[] data)System.IO.IOException: The process cannot access the file '\\YYYY\Retail-WF\Upload\XXXX\XXXX-53812-R.rpf' because it is being used by another process.
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, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.Dynamics.Retail.SynchService.DataManager.UploadSessionDataManager.UploadSessionData(String dataStoreName, Int64 uploadSessionId, Byte[] data)