How to Resolve UI-DBP-006 and what is top leave selector

I have getting Error UI-DBP-006 Container Usage Top level selector used outside scoped containers in activities Element Exists ‘WindowsForms10.Window.8…’ Click ‘WindowsForms10.Window.8…’. Main.xaml
Recommendation
Using scopes such as Open Browser and Application gives a level of reusability in selectors. Try to use scopes instead of direct UI Activities. Learn more.

Please help me

@Ankit_shukla

  1. usee appropriate scoped container for each activity. Scoped containers can include activities like Open Browser, Attach Browser, or Attach Window, which provide a container for other activities within their scope.
  2. Move the activities causing the error inside the appropriate scoped containers.
  3. Update the selectors of the moved activities to make them relative to the scoped container. You can use the UiExplorer tool to find reliable and dynamic selectors.
  4. Validate and test the updated workflow to ensure that the error no longer occurs

@Ankit_shukla
can you show us your workflow?

Hi @Ankit_shukla

I think you haven’t used any activity to indicate the web browser or desktop application like Attach window, open browser in classic activities or use application\browser activity in modern design experience.
It was asking for the root node of selectors, root node means indication of web browser or desktop application.

If you show your workflow in Main xaml it was better for us to understand.

Hope it helps!!

I am use activity this is my old robot it running my client system but suddenly given that error

I have 2 system i run same robot both system In the 1st is running proper but in 2nd system is given error

Main.xaml (239.7 KB)

@Ankit_shukla
Check Database Connectivity: Ensure that the database server is running and accessible. Verify the connection details provided in UiPath Orchestrator’s web.config file (located in the installation folder) to confirm they are accurate.

Verify Database Permissions: Ensure that the user account used to connect to the Orchestrator database has the necessary permissions. The account should have appropriate read/write privileges to perform database operations.

Regarding the “top leave selector” in UiPath, it seems there might be a confusion or a typo in the term you provided. However, assuming you meant “top-level selector,” it refers to the selector used to identify the top-level container or main window of an application in UiPath Studio. This selector helps UiPath interact with the main window of an application, allowing automation activities to be performed within that window.

Sir i have 2 server both server connect same database and In the 1st server same robot running proper but in 2nd server getting error

@Ankit_shukla

This is a workflow analyzer tule and this rule would come into picture when you use multiple activities with window selector also included in the activity instead of using a use application/browser or attach browser…(the first row whoch says <wnd app='.. />)

You can either disable workflow analyzer check in yhe settings from the studio main home page so yhat this would not pop up…or you can use a attach browser activity and keep all your subsequent activities inside it so that this error is mitigated

Reference

https://docs.uipath.com/activities/other/latest/ui-automation/ui-dbp-006

Cheers

I using open browser and all activities inside open broswer

@Ankit_shukla

Not only using that activity…the selector which are used inside the elements in open browser should not include full selectors that is the first wnd line should not be present…only the element level selector value must be present

For example if a click is used inside open browser then the selector of click should not start from wnd line instead should start from webctrl and wnd line would be automatically taken from the open browser selector

Cheers

ok thank @Anil_G I am try

1 Like

image

this is my select what is top select in this

@Ankit_shukla

Basic rule

Whatever line you give in Open or attach browser activity should not be given in individual ones

If you have given all 3 rows in attach then dont give them here

I believe you have only one line in your attach/open activity

Cheers

you means say that i use one line in edit selector

Problem has been resolved after Update UiPath.system.activites (22.10.3) instead of 23.4.3 package

Thank you all

1 Like

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