A colleague had a problem when attempting a restore a mailbox, this error was generated:
Error: MapiExceptionInvalidParameter: Unable to modify table. (hr=0x80070057, ec=-2147024809)
Diagnostic context:
Lid: 55847 EMSMDBPOOL.EcPoolSessionDoRpc called [length=228]
Lid: 43559 EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=348][latency=15]
Lid: 23226 — ROP Parse Start —
Lid: 27962 ROP: ropModifyRules [65]
Lid: 17082 ROP Error: 0x80070057
Lid: 27745
Lid: 21921 StoreEc: 0x80070057
Lid: 27962 ROP: ropExtendedError [250]
To resolve this you need to restore as follows by adding in the “-AssociatedMessagesCopyOption copy” argument, for example the below:
New-MailboxRestoreRequest -SourceDatabase MBX1 -SourceStoreMailbox “Fred Blogs” -TargetMailbox RST1 -AllowLegacyDNMismatch -ExcludeDumpster -BadItemLimit 100 -AcceptLargeDataLoss -AssociatedMessagesCopyOption copy -IncludeFolders “#Inbox#”
This additional argument specifies that the hidden associated messages such as those used for rules, views and forms should also be copied. Doing this should resolve this “ROP Error.”
https://technet.microsoft.com/en-us/library/ff829875(v=exchg.160).aspx