Failed to move messages between public folders

Hello,

Our system has a function to auto move emails into categorized folders. The function has been working just fine for a long time until yesterday when it started to error out with the following message:

AsposeInvalidOperationException: Item move failed: The move or copy operation failed.

No code update has been made on our end prior to the occurrence of this error and we are using Aspose.Email version 21.9.0. The code for MoveItem function looks like below:

IEWSClient.MoveItem(exchangeMessageInfo.UniqueUri, exchangeFolderInfo.Uri);

Please review and advise if there’s any update in Aspose.Email library that might have caused the MoveItem to behave differently.

Looking forward to hearing from you.
Thanks,

Trinh

Hello @trinhlp,

Welcome to the Aspose.Email support forum!

Am I correct to assume you have not updated the library?
If so, there may be server-side issues. Does the error occur for all folders?

Thank you.

Hi @margarita.samodurova,

You were correct, we have not updated the library, and yes, the error occurred to all public folders.

@margarita.samodurova

Also, a few days before the “Item move failed” error occurred, the below error started showing up on our log, could these 2 errors be related?

System.FormatException: The specified string is not in the form required for an e-mail address.
at Aspose.Email.MailAddress.#=z_bBAm2AF01CtppHqWYjexxg=(String #=zxA4bnlk=)
at Aspose.Email.MailAddress.#=znGuIJhY=(String #=zi7cr_9Q=, Boolean #=zqzWxUVPOtmalqGSeuw==)
at Aspose.Email.MailAddress…ctor(String address, String displayName, Encoding displayNameEncoding, Boolean ignoreSmtpCheck)
at Aspose.Email.MailAddress…ctor(String address, String displayName, Boolean ignoreSmtpCheck)
at #=z59FR9EVW5_PdyTyl2BGNIvXocO8xwX1GCGNxa18=.#=zO5NrUOcw5JPW(MessageType #=zj_iAoyo=, #=zP3fazHodfKOM85Y28YX_Cro0DJ8XAnvCXsLOmhM= #=zA882ogA=)
at #=z59FR9EVW5_PdyTyl2BGNIvXocO8xwX1GCGNxa18=.#=zjtPhSjHTPuPS(ItemType #=zm1PHjz8=, String #=zXCaNjWvPP9CmRptDKA==)
at #=zuH4ejxPQcihc8t9yH0k0nei98RhTOeZW$hisDzuOaXpy2ROOrk2JuH0=.#=zBF5aFHpHNohgKWLwng==(ItemType #=zPrgZBHU=)
at #=zPAA16MmCkWEO0369AWCfmEr5ZiFH8eIbr5OkPcn5d85d.#=zFj4SLdmbzezs.get_Current()
at #=zbxHM7jnIz6yVe4qIrZ_4VmFbx3NEXp$TKA==.#=zlcQVcy8=[T](Collection1 #=zGT2mXJ4=, IEnumerable1 #=zLw1ab9g=)
at #=zuH4ejxPQcihc8t9yH0k0nei98RhTOeZW$hisDzuOaXpy2ROOrk2JuH0=.#=zgfwdSoE=()
at #=zRbDOjPTypUd0NzyNY51gHm__bp59ApBoDiotn73g0OVrdDLTKQ==.#=zIbhRPrR8DBYk(List1 #=zLw1ab9g=, IEnumerable1 #=z24JIjMQ=)
at #=zRbDOjPTypUd0NzyNY51gHm__bp59ApBoDiotn73g0OVrdDLTKQ==.#=zi8FCPuk=(String #=zqru4_O$Tz88C, String #=z6vpb8A4=, Int32 #=zhNEYEYMKDkr_, MailQuery #=zBeFr6y8=, Boolean #=zckBiiiQ=, IEnumerable1 #=z24JIjMQ=) at #=zjJnCF1e1gr8_MCp_Kn2S5E8RH$0KjWbGYdA_yaqzcCRw.#=zTmvV$bM=(String #=zqru4_O$Tz88C, String #=z6vpb8A4=, Int32 #=zhNEYEYMKDkr_, MailQuery #=zBeFr6y8=, Boolean #=zckBiiiQ=, IEnumerable1 #=z24JIjMQ=)
at #=zjJnCF1e1gr8_MCp_Kn2S5E8RH$0KjWbGYdA_yaqzcCRw.ListMessages(String #=z6vpb8A4=, Int32 #=zhNEYEYMKDkr_, ExchangeListMessagesOptions #=zRhBs3zU=)
at #=zjJnCF1e1gr8_MCp_Kn2S5E8RH$0KjWbGYdA_yaqzcCRw.ListMessages(String #=z6vpb8A4=, Int32 #=zhNEYEYMKDkr_)

@trinhlp ,

It’s hard to say, but these exceptions don’t seem to have any relation to each other.

Can you please add Activity Logging to your project and provide a log file to us?

How to add activity logging is described in the following article.

Hi @margarita.samodurova, this is the log we got for the error:

AsposeInvalidOperationException: Item move failed: The move or copy operation failed.
at #=z6u7RbvNkb24I1d6qzQiTlIXppM6oReONwQEcDHy33i7iRYxYfA==.#=zB8XYjxSSrOcu(MoveItemResponseType #=z5PT8clY=)
at #=z6u7RbvNkb24I1d6qzQiTlIXppM6oReONwQEcDHy33i7iRYxYfA==.#=zSIGKxYo=(String #=zEvxnPGE=, String #=zUF64CIwToVfv)
at #=zjJnCF1e1gr8_MCp_Kn2S5E8RH$0KjWbGYdA_yaqzcCRw.MoveItem(String #=zEvxnPGE=, String #=zUF64CIwToVfv)

Hello @trinhlp,

Sorry, but it’s a stack trace, which doesn’t give detailed information about the error.
Can you add activity logging as described above in the previous comment?

Thanks.

Hi @margarita.samodurova,

I’ve setup the activity log following instructions in your comment, attached is the log when the error occurred.
Aspose.Email.EWS.zip (1.3 KB)

Thanks,
Trinh

@trinhlp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41245

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @margarita.samodurova,

Have you got any news on the error? Both our code and the Aspose.Email lib version has not been changed for a long time, any idea why the lib suddenly stopped working?

Thanks,
Trinh

Hi @trinhlp ,

The error might occur due to one of the two reasons: either something has changed on the server or the error is due to some specific Item you are trying to move. The library is not the reason for the error, as it has not been changed.

Hi @margarita.samodurova, thanks for the update.

We noticed the subscription expiry date has passed (see screen shot) but all functions from the lib are still working as normal except for the MoveItem function. Could this expiry date be the reason for our issue?

image.png (9.8 KB)

Hi @trinhlp ,

The subscription expiry date does not affect the exception, besides you are using an earlier version of the product.
Can you provide us with a test account to access your server and a code sample so that we could investigate the cause of the error on our side?
To keep sensitive information safe, we will make this topic private.