'Set Text' action on a web-element intermittently generates TYPE_021 error

1.2k views Asked by At

I intermittently run into a TYPE_021 error when I perform a 'Set Text' action on a web-element that would be used as a drop-down in a manual flow, but simply inputting a value is legal.

I chose a 'Set Text' versus a Click command followed by a Keystrokes command because 'Set Text' seems more stable. Also, I did not attempt the obvious flow of selecting from the dropdown because the necessary value is not available in the dropdown.

What would cause a TYPE_021 error?

1

There are 1 answers

2
de.vina On BEST ANSWER

I agree with the availability of user guides for Automation Anywhere.. which is frustrating. I'm also not familiar with those type of errors but I would suggest the following methods:

  1. Enclose Set Text command with Error Handling so that the whole task would not fail if the drop-down value is not available, then have If/Else commands after to check if it is valid or not.

Error Handling (Action: Continue; Task Status: Pass; Variable Operation = "True")

  1. Move the drop-down selection part at the latter part of the task. Maybe the page was not fully loaded yet which causes failure.
  2. Use Click command to select the value. Click the drop-down button then click the value. Modify the properties to insert the value required, maybe on HTML Value or HTML InnerText. You may enclose it with Error Handling if needed.