Coded Workflow: 'Descriptor' does not contain a definition for 'xxx'

Hi, I’m currently trying to learn coded workflows and specifically trying to recreate the example in this course: UiPath Academy . Now I have the problem that when I try to call the Object Repository elements with the dot notation as in the example, i.e. “uiAutomation.Open(BlankProcess2.ObjectRepository.Descriptors.xxx);” I get the error that is in the title: “‘Descriptor’ does not contain a definition for ‘xxx’”. But if I try to call the descriptor like this: “uiAutomation.Open(”xxx“);” everything works without any problems. Can anyone help me with this?
Here a screenshot of the file:

If it is needed, I hope I can provide a screenshot of my object repository later, since I am a new account I can’t insert it directly

@Lizzey

Welcome to the community

Export the Object repo as library

The screenshot shows the 'Descriptors' tab of an application interface with a 'NewApplication 1.0.0' listed, and a specific icon highlighted in yellow on the right side. (Captioned by AI)

Then open the descriptor project and publish it as a library

then come back to the project where you want to use it and go to manage packages and install the descriptor package. Now you can see the descriptor library and screens as you need

Hope this helps

cheers

1 Like

Thanks a lot that worked. Then I am just curious why this isn’t mentioned and they explain it like you can use dot access when you add them local into the object repository

1 Like

@Lizzey

A little documentation issue …can be submitted as feedback in the course …it would be taken forward

Happy Automation

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.