Could not retrieve the result of the job execution - but finishes succesfully

Hello

I have a Workflow (Library) that is designed to open Outlook and handle the popups that might occur (new profile, login etc.).

The file runs succesfully to the end, and does what it is designed to do, but I get this error message afterwards:



Any ideas as to why this is happening and how to solve it?

I am using UiPath Studio 2024.10.8

Regards
Soren

@SorenB

Do you have any out arguments configured?

If yea then the value of that out argument might be very huge…try to save it else where instead of sending as out argument

Cheers

Hello @Anil_G

The only out-argument is the UiElement of the Outlook application.

Hello,

If you are sure that no large arguments are being passed between workflows, the issue might be that the UiElement becomes invalid by the time it is returned. This can happen if the Outlook application is closed or its state changes during execution. To verify this, add a Log Message activity near the end of the workflow to log the UiElement.Selector or a property like UiElement.GetType() to confirm that it is still valid.

@SorenB

To verify if uielement is causing issue …try to remove the argument and check if the flow works without error

Cheers