Martin Holmes
asked on
EWS email move stopped working
We currently use EWS to move emails from the inbox of one mailbox to the inbox on another mailbox based on specified criteria. The code is as follows:
private void MoveEmailToAttacherMailbox (string id, string attacherMailbox)
{
DocStore.Logger.Info(strin g.Format(" {0} id: {1} To attacherMailbox: {2}", (object) nameof (MoveEmailToAttacherMailbo x), (object) id, (object) attacherMailbox));
try
{
Item.Bind(this.exchangeSer vice, (ItemId) id).Move(new FolderId(WellKnownFolderNa me.Inbox, (Mailbox) attacherMailbox));
}
catch (Exception ex)
{
ProjectData.SetProjectErro r(ex);
Exception exception = ex;
DocStore.Logger.WarnExcept ion(nameof (MoveEmailToAttacherMailbo x), exception);
ProjectData.ClearProjectEr ror();
}
Unfortunately since 29th November we have been getting an error: "MoveEmailToAttacherMailbo x Microsoft.Exchange.WebServ ices.Data. ServiceRes ponseExcep tion: The move or copy operation failed."
No permissions have changed and the mailbox we are moving from has full delegate permissions to the mailbox we are moving to. Any assistance will be greatly appreciated.
private void MoveEmailToAttacherMailbox
{
DocStore.Logger.Info(strin
try
{
Item.Bind(this.exchangeSer
}
catch (Exception ex)
{
ProjectData.SetProjectErro
Exception exception = ex;
DocStore.Logger.WarnExcept
ProjectData.ClearProjectEr
}
Unfortunately since 29th November we have been getting an error: "MoveEmailToAttacherMailbo
No permissions have changed and the mailbox we are moving from has full delegate permissions to the mailbox we are moving to. Any assistance will be greatly appreciated.
I advise you to check iis logs, look for error code for both accounts, it can help you to find the cause, you can also restart iis or server and check again. Lot of time simple restart fixes several issues.
ASKER
Hi, we use O365 so do not have access to IIS logs. Will there be any logs anywhere in the O365 admin portal i can check?
Open case with office 365 team.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.