Hello I get this exception after the program has completed its work.
System.Exception: Could not retrieve the result of the job execution. This might be because a message was too large to process. I see that the program has completed all the steps successfully.
What i am doing? after hours of debugging i understand that i get this when iterate List
using for each activity and then pass each MailMessage to another activity.
Even if do not have any logic inside for/each activity, just iterate - i receive this error.
Where is the mistake?
Thank you/
UPD
I found why i get this exception.
in Arguments, i declare that value allMessages has direction “In/Out” but then i change my logic and never use “out” direction.
I am sure that this will help someone else.
in Arguments, i declare that value allMessages has direction “In/Out” but then i change my logic and never use “out” direction.
I am sure that this will help someone else.
When the error message happens when all steps are completed in the state machine, if could be because you have put some Arguments of direction “Out” in the state machine. All of them should be direction “in” unless you need to Transfer some Information back to the orchestrator.