Empty data in excel when running a selenium automation

So there is a python robot in robocorp which opens a browser in VM and export the data as excel,
the problem here is when the VM is connected to RDP client while running the process, the data being exported correctly, whereas when the server is not connected to RDP it exports the empty data.
in both the scenario the python robot is triggered in the control room