[Solved] Selector Issues dynamics empire unable to select a specific row

Hello everyone,

I have a task to fill 18 empty rows (BAS to BAS18) with values in Dynamics Empire. However, every time I open a new address on the Dynamics Empire website, the parent ID of the column seems to be dynamic and different. This causes an issue with my ‘type into activity’ because it is unable to select the row whenever I open a new address. Situation:
![dynamics Empire

I recently discovered that the page generates a parent ID that the rows under the header carry with them. I am wondering if there is a way to use this parent ID to select the right BAS row in a reliable way (see: Parentid=‘b249’). Tips and tricks are welcome!

Please see the attached images for a better understanding of the situation.

Thank you!

@uiStijn

Use get attribute on the header and get the prent id…then you can use it in the next selector by adding it as a variable and make the selector dynamic…then rest all is same

Cheers

@Anil_G

Thanks for your reply i’m stil stuck :frowning: I managed to find two column headers using the get attribute activity (column_header_b75t and column_header_b75q).

id3

My strict selector without a variable (column_header_b75t):

Strict selector with a variable(only thing that changed in this selector is my correctly found attribute id):

It says the var is not defined in the current scope.

Type into is still unable to find the ui element because it’s invalid.

Any tips?
Thanks!

it is normal that the validation gives an error as the variable is empty because the project is not at runtime

1 Like

@uiStijn

Please check the variable you selected is correct…did you type the variable name?

cheers

1 Like

Hey Anil, the variable seems to be correct the strict selector validates correctly.

As soon if i run my workflow, it loses the ui element and throws an error.

@uiStijn

If you have typed the variable even the case of the variable is different then it would not recognize… Check the same

ANd if you use a hardcoded selector in workflow is it working?

Alternately did you try using for each ui element activity?

cheers

Hey Anil,

Hardcoded selectors without variables do work. But only when i’m not running the workflow, else it breaks.

I am trying to use the for each UI elements now! If i select the first row column in dynamics it will only select one row:


but if i select the row and target one lower or higher it will grab the whole column correctly:

@uiStijn

So the For each ui element works right…except for the first row

Try including any other rows from the selector editor in the ui explorer…may be the path to the row is not being identified I guess

Or the selector is changing during runtime …check using ui explorer while running as well to know the different without stopping the bot…

cheers

@Anil_G
Thanks for your reply, as long as it fills a single row it is doing well. As soon as the next row is made active it crashes. Perhaps the selector in dynamics empire 365 changes when a row is selected?

@uiStijn

Yes the count that you are using or something might be changing…would suggest run the bot in debug mode…and keep ui explorer open and when error occurs try finding the difference and use that as your logic to get next item

cheers

1 Like

Thanks for your time and help Anil.

We finally found the fix this morning: When dealing with Dynamics Empire 365 if you want to fill a row and columns you first need to put a click activity with a strict selector on the line you want to fill. And then put a type into activity with a strict selector on the field you want to fill.

1 Like

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