Could Not Retrieve The Result Of The Job Execution Because A Message Was Too Large to Process (Mail Activity Of O365 Activity)

Unable to use Out_arguments of Mail activity(O365 activity).

Error Message: Getting error "Could not retrieve the result of the job execution. This might be because a message was too large to process" while using (Mail activity of O365 activity).

If the Output is provided for the "Get mail activity",

  • as Out_Argument, The process is getting failed with "Could not retrieve the result of the job execution. This might be because a message was too large to process."
  • as In_Argument / Variable, The process is running as expected.

Explanation: The output of the GetMail activity is an array of mail objects. From the main workflow, if the output is obtained, it would be sent to the Robot service and to the Orchestrator and the output cannot be handled.


Root Cause: Added the Get Mail activity with the out_argument in the Main.xaml file (or any other .xaml file from the project marked as main entry point).

Workaround:

  1. Use the Out_Argument as output for "Get mail activity" and Invoke the Workflow in the Parent workflow
  2. To use the library, Publish the library with Out_argument to the Orchestrator and use the same in the Code.