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.
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.
Move the activities causing the error inside the appropriate scoped containers.
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.
Validate and test the updated workflow to ensure that the error no longer occurs
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.
@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.
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
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