I'm getting an error as "Main.xaml: "UI Elements settings" field is required."

When im trying to execute the automation, it is throwing an error as Main.xaml: “UI Elements settings” field is required. But previously the same package was working properly, now it unable to detect the table loaded. Can anyone help what is stopping in it.

@pooja.das

Can you please show the properties of failing activity

cheers


Here is the image with the properties.

Hi @pooja.das

Might be this error occurs when the UI descriptor is missing or no longer valid; re-indicate the target element because the selector changed after an update or application layout change.

or try to pdate the UI Automation package to the latest stable version so selectors and activities stay fully supported.

If helpful, mark as solution. Happy automation with UiPath

Hi @prashant1603765 ,

I have updated the UI Path Automation Activities, then I have observed a little change in the UI, but before updating also the issue persists “For Each UI Element ‘For Each UI Element’: Error HRESULT E_FAIL has been returned from a call to a COM component.”.
Even when i tried to indicate the element in the browser, then after selecting the same target it was throwing an popup like “make sure the target screen is enables” and then it unable to collect the target data.

ok @pooja.das

try to Re‑install the browser extension, ensure the window is enabled, and re‑indicate selectors after updating the package. This usually resolves the HRESULT and make sure the target screen is enabled pop‑ups. debug manually and figure out the error / selector.
Or try with different browser. Might be it’ll helpful.

Happy Automation

Hi @prashant1603765 ,

I have reinstalled the browser extension again and then I tried to edit the target where i was getting the selector issue in the For Each UI Element, but in the below image it is unable to extract the selector and when I try to and find the UI elements to create new UI Elements in the selector.