System.Exception: Could not retrieve the result of the job execution. This might be because a message was too large to process

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.

5 Likes

Hello @yaniketz,

Can you share your workflow?

Hope this could help you:

Best Regards,
Susana

3 Likes

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.

4 Likes

Susana, thanks for your willingness to help!

1 Like

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.

5 Likes

It works, I had a browser argument “Out” unnecessarily. Thank you!

Even any arguments is not setting, same error still happened.

1 Like

image

Someone can help me with this issue as well. I’m using HttpClient activity to GET request and deserialize Output result using DeserializeJson activity

1 Like

Hi, @kulasinghasampath , did you find a solution?

Hey Hi, did issue get resolved?