Bot unable to check the checkboxes when it is running in the closed interface (background) in my VM

I have an excel sheet in which data is populated. The RPA is supposed to match the value in the excel sheet to the value in the application, and if there is a match, it is suppose to check the corresponding checkbox. So far what I have done is as follows:
I used an if activity to check if the excel data contains the data in the application. After this I used a check/uncheck activity to check the checkboxes for the rows in the application which meet the condition. Image below:

This logic happens to work when it triggers manually or with I keep the UI element (application) open. But it does not work in the closed interface (background).

Any suggestions?

Hi, @cmadhanmohan

Welcome to Community. :slight_smile:
Did you try element exist? And also use simulate activity

Hi, Please refer my Check/uncheck properties.

Have you followed the documentation on UI automation with background automations?

I’ve tried the following solutions:

Used the “Check App State” activity instead of element exisist (modern UiPath)
Set timeout seconds max (30 seconds)
Re Validated the selector.
Used the “Simulate Click” activity as input mode
I tried using ore than 1 anchor as well
Despite these efforts, the checkbox is skipped, and the remaining activities are executed. Interestingly, the same logic works perfectly when triggered manually or when the VM is open but fails when the VM interface is closed.

I also tried setting “Continue On Error” to False for the click activity, but the flow still proceeds with other steps even though it cannot detect the checkbox.