Batch screen resolution issue: LogonConsole = True => Error running in orchestrator => logon session does not exist



When running a job via the orchestrator, by default it will use a resolution of 800x600.
As I’m using citrix application I need a better resolution to interact with “pictures”.
So I setup resolutions as explained in
in UIPath.settings:
“LoginToConsole”: false,
“ResolutionWidth”: 1920,
“ResolutionHeight”: 1080,
“ResolutionDepth”: 32,

When I do that and run a job in the orchestrator, it doesn’t disconnect my current session on the robot machine as it usualy does with “LoginToConsole”: true.
If I disconnect manually my current session, it shows an error message:
Executor start process failed, reason System.Runtime.InteropServices.COMException (0x80070520): A specified logon session does not exist. It may already have been terminated.

If I setup “LoginToConsole”: true, it execute the robot without needing a session to be open, but the screen resolution is not as expected.

Do you have any solution to run the robot with a specific resolution via the orchestrator without the need of a windows session open already?