How to fix this "Set Device Orientation" activity error

Using “Set Device Orientation” activity to change mobile to landscape but failed

Below was the error message

Set Device Orientation: {“$id”:“1”,“$type”:“UiPath.MobileAutomation.Exceptions.ExceptionMessage, UiPath.MobileAutomation”,“Message”:“Screen rotation cannot be changed to ROTATION_90 after 2000ms. Is it locked programmatically?”,“FaultCode”:“InvalidElementStateException”}

How to fix this?

Hey,

This looks interesting
Though I haven’t tried with this activity just a suggestion based on the error message u shared

Check if the device is locked in portrait mode programmatically
And try again after restarting the mobile

Cheers @mlellison