O365 Move Email Activity - Bad Request Error

Unable to move email from one folder to another in Outlook throwing bad request error?

Identify Error Source:

  • The reported error, "bad request," is a response received from the O365 server.
Server Response Variance:
  • Mostly It has been observed that the O365 server responds differently to the same request.

Resolution:

  • Issue lies with the O365 server.
  • To address this, it is recommended to implement a retry mechanism around the "Get Mail" activity to handle variations in server responses effectively.


Implementation Steps:

  1. Wrap "Get Mail" Activity: Surround the "Get Mail" activity with a retry mechanism.
  2. Behavioral Check: Execute the workflow with the retry mechanism and observe the system's behavior.


Conclusion:

  • Given the identified server-side issue with O365, incorporating a retry mechanism within the workflow enhances its resilience against the "bad request" error.
  • In the event of inconsistent server responses, the implemented retry mechanism, enclosed within a try-catch block, ensures a more robust and reliable solution.