uiAutomation.Open error 'Object reference not set to an instance of an object' in coded workflow

Hi,

I tried to run the code from the link below:

Unfortunately, when I try to execute this line:
var AcmeLoginScreen = uiAutomation.Open(AcmeApp.LoginScreen);
I get the error: System.NullREferenceException: ‘Object reference not set to an instance of an object’.
I tried using this code using other libraries with UI Descriptors, but the result is the same.
Do you have any ideas on how to deal with this problem?

@adpe88

Did you have the application and screen name created with same names in object repo?

cheers

No.
In the case of the example from the UiPath documentation, the application name is ‘Acme’, the screen name is ‘LoginScreen’. Similarly, when I used other Ui libraries, the names were also different.