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

Unable to use Out_arguments of Mail activity(O365 activity)

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. If we output that from the main workflow, it would be sent to the robot service and to the orchestrator and the output cannot be handled.

Workaround:

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