My flow suddenly started throwing an error “Invalid UI node”
It shows no other information besides the error message.
Everything worked fine last week, now every single UI selector inside my target application throws this error.
Hi,
May i know which browser are you using.
Hi,
It’s not in a browser but a locally installed application.
if it is internal application we have to check like is there any security policy in your organization that is not allowing us to get the properties. dud you try use developer tools to get the properties/selectors from your internal applications.
I did some more troubleshooting and it appears other elements do not have the issue the error element has.
The element has a “wait for ready” COMPLETE Target, but throws the error immediately after the previous activity.
See screenshot attached for the UI Explorer settings of the activity.
Anyone can help?
My Issue is also not in a browser but a locally installed application like vnoteboom said. Do you have any suggestions?
@Denislav_Vladimirov Since the selectors are not working, why don’t go for image automation
Hi @ushu
I have a lot of completed transaction(that tells me my selectors works fine), but some of transaction throws this error “Invalid UI node”. And I don’t know when and why this happened(my system error screenshots are my desktop). Do you know when and why this happened? If you know that maybe will help me to figure out what to do
@Denislav_Vladimirov You mentioned that error screenshots were desktop. Did you check also in that screenshot the application was opened or closed
@ushu
I think somehow the app has been terminated. I wonder why this happened. Manually the app never has been terminated by itself.
@Denislav_Vladimirov Application terminating in the middle is what causing that issue.
Approach 1 : Now, you have to investigate can the application terminate by itself after some time and then making code changes accordingly
Approach 2: whenever you get exception (Invalid UI node) try to re-login to the application
Thank you for you suggestions! I understand the termination is the problem, but why there is termination in the first place? I hope to find an answer why this termination happened? Is Uipath too fast for the application or something else? What I have to do to avoid this in the future?
The application doesn’t terminate by itself after some time. I mark as System exception the transaction and then re-login to the app after this error and get next transaction, but I can’t try the transaction again, because this transaction with the error can be on page 3 or page 5 or page 99 when I re-login to the app(is dynamic). That’s why I have to avoid this error…
Hello!
I had the exact problem on my flow where I automate UI interactions on excel and I solved it.
TLDR; I separated the Attach Window activities.
My problem and solution:
In my case I am downloading an XLSM file from a company system and I needed to automate the excel window like a UI browser. When I open the excel my robot needs to click the first label under privacy yellow warning named “Enable Editing” then comes the “Enable content” label very similar to the prior one. Then a custom window pops up to enter credentials etc.
My first intuition was to use a single Attach Window (classic) activity and do these three UI interactions but I was getting “invalid UI node” error on my second click. When I would stop my debugging and go into the selectors of my Click activity I could highlight and find the element that has this error.
Then I seperated the flow into three Attach Window activities, first Attach window contains the Click “Enable editing” activity then couple of seconds of Delay then second Attach Window and it contains Click “Enable content” activity then again couple of seconds of Delay then last attach window activity that contains the rest of my UI interactions.
Hope you solved it and maybe this helps future readers.
Best wishes
Baris