Exporting an item returns the error "Exception: already exists. (Exception from HRESULT: 0x80030050 (STG_E_FILEALREADYEXISTS)"

book

Article ID: 100001972

calendar_today

Updated On:

Description

Error Message

A dtrace of the AcceleratorService process on the DA server recorded at the time the item is attempted to be exported will contain entries similar to the following for this error:

(AcceleratorService) EV-M {EVSTORAGEONLINE.EN_US} Exception:  already exists. (Exception from HRESULT: 0x80030050 (STG_E_FILEALREADYEXISTS)) Info:{C20.EN_US} GetOnlineAttachment: Failed to get item directly from storage. Maybe cached object is stale? We'll try again with a fresh storage object. Diag:HRESULT: 80030050 Type:System.Runtime.InteropServices.COMException ST:   at IStorageOnline.GetOnlineAttachment(String SavesetID, String VaultID, String AttachmentNum, String Format, String reserved, Object& Bytes, Object& MimeTag, Object& Extension, Object& Title, Object& MsgStructure, Object& LargeFileSize)|   at KVS.Accelerator.Common.EVStorageOnline.GetOnlineAttachment(String savesetId, String vaultId, String attachmentNum, String format, Object& oBytes, Object& oMimeTag, Object& oExtension, Object& oTitle, Object& oMsgStructure, Object& oLargeFileSize)
AcceleratorService) EV-H {-} Exception: Error VaultItem_ItemGet2 Info:{ACCELERATOREVENT.EN_US} {C20.EN_US} An Error has occured when retrieving Item|SaveSetID: 171000000000000~200006081718240000~0~78D70544FE354A1B9C4E4E25C3201B3|VaultID: 116BC6BA5C4DE8AD46AAA707462D916CFF1110000EVSite|Format: MSG:U|sAttachmentID: 0.|System.Runtime.InteropServices.COMException (0x80030050):  already exists. (Exception from HRESULT: 0x80030050 (STG_E_FILEALREADYEXISTS))|   at IStorageOnline.GetOnlineAttachment(String SavesetID, String VaultID, String AttachmentNum, String Format, String reserved, Object& Bytes, Object& MimeTag, Object& Extension, Object& Title, Object& MsgStructure, Object& LargeFileSize)|   at KVS.Accelerator.Common.EVStorageOnline.GetOnlineAttachment(String savesetId, String vaultId, String attachmentNum, String format, Object& oBytes, Object& oMimeTag, Object& oExtension, Object& oTitle, Object& oMsgStructure, Object& oLargeFileSize)|   at KVS.Common.VaultItem.Item.GetOnlineAttachment(String sSaveSetID, String sAttachmentID, String sFormat, String sVaultID, Object& oBytes, Object& oMimetag, Object& oExtension, Object& oTitle, Object& oStructure, Object& oLargeFileSize)|   at KVS.Common.VaultItem.Item.GetItemFromSTGOnline(String itemID, String sSaveSetID, String sAttachmentID, String sFormat, String sVaultID, MessageType msgType) Diag: Type:System.Exception ST:
(AcceleratorService) EV-M {PRODUCTIONITEM.EN_US} Exception:  already exists. (Exception from HRESULT: 0x80030050 (STG_E_FILEALREADYEXISTS)) Info:{C20.EN_US}  Diag:HRESULT: 80030050 Type:System.Runtime.InteropServices.COMException ST:   at KVS.Common.VaultItem.Item.GetItemFromSTGOnline(String itemID, String sSaveSetID, String sAttachmentID, String sFormat, String sVaultID, MessageType msgType)|   at KVS.Common.VaultItem.Item.WriteItemToDisk(String vaultID, String savesetID, String format, String destFileName)|   at KVS.Accelerator.Production.ProductionItem.Export(Int32 ProductionItemID)


A dtrace of the StorageOnlineOpns process on the EV Storage Server and recorded at the same time as the AcceleratorService dtrace will contain entries similar to the following lines related to the error:

(StorageOnlineOpns) <10740> EV:L CStorageOnline::LoadSavesetFromNTFS (Entry) |
(StorageOnlineOpns) <10740> EV:M CStorageOnline::LoadSavesetFromNTFS|Open file for shared read. E:\Vault Store\Partition1\2000\06\08\17\171000000000000~200006081718240000~0.DVS CreateFileSuccess  [0]
(StorageOnlineOpns) <10740> EV:M CStorageOnline::LoadSavesetFromNTFS|MapViewOfFile E:\Vault Store\Partition1\2000\06\08\17\171000000000000~200006081718240000~0.DVSSuccess  [0]
(StorageOnlineOpns) <10740> EV:M CSaveset2::Load (Entry)
(StorageOnlineOpns) <10740> EV:M CSavesetPersist::Load Mem:0x2330000 size: 40807
(StorageOnlineOpns) <10740> EV:L CSavesetPersist::ResetStorage LB: 0 Stg(LB): 0 Stg(doc): 0 File: (null)
(StorageOnlineOpns) <10740> EV:M CSavesetPersist::UnpackSavesetBytes Completed decompression step. hr=Success  [0]|Compressed size:24 Uncompressed size: 0 Elapsed:0.00 (secs)
(StorageOnlineOpns) <10740> EV:H CSaveset2::Load _com_error exception. hr=%1 already exists.  [0x80030050]
(StorageOnlineOpns) <10740> EV:M CSaveset2::Load (Exit). hr=%1 already exists.  [0x80030050]
(StorageOnlineOpns) <10740> EV:M CStorageOnline::LoadSavesetFromNTFS|IPersistMemory::Load E:\Vault Store\Partition1\2000\06\08\17\171000000000000~200006081718240000~0.DVS%1 already exists.  [0x80030050]
(StorageOnlineOpns) <10740> EV:M CStorageOnline::LoadSavesetFromNTFS (Exit) |%1 already exists.  [0x80030050] |
(StorageOnlineOpns) <10740> EV:M CStorageOnline::GetOnlineAttachment (Exit) |%1 already exists.  [0x80030050] |

Resolution

The DVS file has become corrupted and cannot be exported.  To prove this, follow these steps:

  1. Locate the physical DVS file in the Vault Store using the path specified in the dtrace of the StorageOnlineOpns process (NTFS type storage), or save a copy of it using the EVSVR utility (EMC Centera storage)
     
  2. Attempt to open the item in an Outlook profile
     
  3. If the attempt to open in Outlook returns an error, the file is corrupt.
     
  4. Checking the DVS file in a hex editor may show the file is only 0's.
     
  5. Check the properties of the DVS file to see if there is a difference between the create date and the modified date to attempt to determine when the corruption occurred.
     
  6. The export should complete without the failed item(s).
 

 

Issue/Introduction

When exporting items in Enterprise Vault (EV) Discovery Accelerator (DA), issues can occur when an item fails to export. Each export failure is noted in the export details with an error. One such error is noted above.