Remote Server returned '554 5.2.0 STOREDRV.Deliver.Exception:

I had a 2013 database in "dirty shutdown" state and had to perform a repair since then none of the users can send internal or external emails, I get the following error...

Remote Server returned '554 5.2.0 STOREDRV.Deliver.Exception:StoragePermanentException.MapiExceptionDatabaseError; Failed to process message due to a permanent exception with message Cannot complete delivery-time processing. ..., 20.52176:000F4F8320000010F1030000, 20.50032:000F4F8390174021000F4F83, 255.23226:000F4F83, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:07000000, 16.55847:8E000000, 17.43559:540400001201000000000000BE02000000000000, 4.32881:54040000, 0.50035:00000000, 4.64625:54040000, 20.52176:000F4F832000F01F000F4F83, 20.50032:000F4F839017001049520000, 0.50128:00000000, 255.1494:0F010480, 4.65304:0F010480, 4.65480:BBF9FFFF, 8.41344:327E8B742616074593A9A6EEE440DE0376040000, 1.35200:244C0000, 1.63456:E0B70000, 8.41344:327E8B742616074593A9A6EEE440DE0305000780, 1.35200:244C0000, 8.41344:327E8B742616074593A9A6EEE440DE0393A9A6EE, 1.35200:244C0000, 4.64456:54040000, 0.50784:54040000, 255.1750:00000000, 255.1494:0F010480, 4.65304:0F010480, 4.65480:BBF9FFFF, 8.41344:327E8B742616074593A9A6EEE440DE0376040000, 1.35200:244C0000, 1.63456:E0B70000, 8.41344:327E8B742616074593A9A6EEE440DE0305000780, 1.35200:244C0000, 8.41344:327E8B742616074593A9A6EEE440DE0393A9A6EE, 1.35200:244C0000, 4.64456:54040000, 0.50784:54040000, 255.1750:00000000, 0.50288:54040000, 4.23354:54040000, 0.25913:00000000, 255.21817:54040000 [Stage: Delivery]'

I can't find a fix that works. help
SIM-PSAsked:
Who is Participating?
 
SIM-PSConnect With a Mentor Author Commented:
Fixed my problem by creating NEW mail database and transferred all users from one database to the other. works!
0
 
Zephyr ICTCloud ArchitectCommented:
Did you try a mailboxrepair for a user?

Something like:

New-MailboxRepairRequest -Mailbox <mbxname> -CorruptionType SearchFolder,AggregateCounts,ProvisionedFolder,FolderView 

Open in new window

0
 
R--RCommented:
Please check the eventviewer if there is any error event.
Check all the services.
0
 
SIM-PSAuthor Commented:
I've restarted the server and I get the following event ID error
1002, 1046,2006 repeatedly

(1002)
Unhandled exception (Microsoft.Exchange.Server.Storage.Common.DuplicateKeyException: JetTableOperator.Insert ---> Microsoft.Isam.Esent.Interop.EsentKeyDuplicateException: Illegal duplicate key
   at Microsoft.Isam.Esent.Interop.Server2003.Server2003Api.JetUpdate2(JET_SESID sesid, JET_TABLEID tableid, Byte[] bookmark, Int32 bookmarkSize, Int32& actualBookmarkSize, UpdateGrbit grbit)
   at Microsoft.Exchange.Server.Storage.PhysicalAccessJet.JetTableOperator.Insert(IList`1 columns, IList`1 values, Column identityColumnToFetch, Boolean unversioned, Boolean ignoreDuplicateKey, Object& identityValue)
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Server.Storage.PhysicalAccessJet.JetTableOperator.Insert(IList`1 columns, IList`1 values, Column identityColumnToFetch, Boolean unversioned, Boolean ignoreDuplicateKey, Object& identityValue)
   at Microsoft.Exchange.Server.Storage.PhysicalAccessJet.JetInsertOperator.ExecuteScalar()
   at Microsoft.Exchange.Server.Storage.PhysicalAccess.DataRow.Insert(IConnectionProvider connectionProvider)
   at Microsoft.Exchange.Server.Storage.StoreCommonServices.ObjectPropertyBag.Flush(Context context)
   at Microsoft.Exchange.Server.Storage.LogicalDataModel.Item.Flush(Context context)
   at Microsoft.Exchange.Server.Storage.LogicalDataModel.Message.Flush(Context context)
   at Microsoft.Exchange.Server.Storage.LogicalDataModel.Message.SaveChanges(Context context)
   at Microsoft.Exchange.Server.Storage.LogicalDataModel.TopMessage.SaveChanges(Context context, SaveMessageChangesFlags flags)
   at Microsoft.Exchange.Protocols.MAPI.MapiMessage.SaveChangesInternal(MapiContext context, MapiSaveMessageChangesFlags saveFlags, ExchangeId& newMid)
   at Microsoft.Exchange.Protocols.MAPI.MapiMessage.SaveChanges(MapiContext context, MapiSaveMessageChangesFlags saveFlags, ExchangeId& newMid)
   at Microsoft.Exchange.Protocols.MAPI.MapiMessage.Deliver(MapiContext context, RecipientType recipientType, ExchangeId& mid)
   at Microsoft.Exchange.Server.Storage.MapiDisp.RopHandler.TransportDeliverMessage2(MapiContext context, MapiMessage message, TransportRecipientType transportRecipientType, TransportDeliverMessage2ResultFactory resultFactory)
   at Microsoft.Exchange.Server.Storage.MapiDisp.RopHandlerBase.TransportDeliverMessage2(IServerObject serverObject, TransportRecipientType recipientType, TransportDeliverMessage2ResultFactory resultFactory)
   at Microsoft.Exchange.RpcClientAccess.Parser.RopTransportDeliverMessage2.InternalExecute(IServerObject serverObject, IRopHandler ropHandler, ArraySegment`1 outputBuffer)
   at Microsoft.Exchange.RpcClientAccess.Parser.InputRop.Execute(IConnectionInformation connection, IRopDriver ropDriver, ServerObjectHandleTable handleTable, ArraySegment`1 outputBuffer)
   at Microsoft.Exchange.RpcClientAccess.Parser.RopDriver.ExecuteRops(List`1 inputArraySegmentList, ServerObjectHandleTable serverObjectHandleTable, ArraySegment`1 outputBuffer, Int32 outputIndex, Int32 maxOutputSize, Boolean isOutputBufferMaxSize, Int32& outputSize, AuxiliaryData auxiliaryData, Boolean isFake, Byte[]& fakeOut)
   at Microsoft.Exchange.RpcClientAccess.Parser.RopDriver.Execute(IList`1 inputBufferArray, ArraySegment`1 outputBuffer, Int32& outputSize, AuxiliaryData auxiliaryData, Boolean isFake, Byte[]& fakeOut)
   at Microsoft.Exchange.Server.Storage.MapiDisp.MapiRpc.<>c__DisplayClass9.<DoRpc>b__6(MapiContext operationContext, MapiSession& session, Boolean& deregisterSession, AuxiliaryData auxiliaryData)
   at Microsoft.Exchange.Server.Storage.MapiDisp.MapiRpc.Execute(IExecutionDiagnostics executionDiagnostics, MapiContext outerContext, String functionName, Boolean isRpc, IntPtr& contextHandle, Boolean tryLockSession, String userDn, Int32 sizeInMegabytes, ArraySegment`1 auxIn, ArraySegment`1 auxOut, Int32& sizeAuxOut, ExecuteDelegate executeDelegate)).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.