Failed to update the cached element for folder..

Ask general questions here.
f.chiari
Posts: 6
Joined: Mon Feb 25, 2019 11:58 am

Failed to update the cached element for folder..

Post by f.chiari » Mon Feb 25, 2019 12:41 pm

Hi,
I need a help. With the latest version of Ranorex (9.0), any time a test suite runs (test suites of different projects), in the log file, after every action/item, it appears this warning: 'Failed to update the cached element for folder..' . It not used to appear on the past version. I read on the forum that it was a sort of Ranorex 'bug' on the oldest versions of the software, and now it's returned. It's so annoying for me and our company because we export the log files generated by Ranorex in Jenkins to verify immediately where test failed, but now we have 'dirty' files full of this warnings. Is there a way to manage this warnings?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5052
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Failed to update the cached element for folder..

Post by odklizec » Tue Feb 26, 2019 12:36 pm

Hi,

Have you tried to change the Report level to something else? Could you please upload a screenshot of the error (as shown in the report)? Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

f.chiari
Posts: 6
Joined: Mon Feb 25, 2019 11:58 am

Re: Failed to update the cached element for folder..

Post by f.chiari » Fri Mar 01, 2019 10:47 am

Hi,
firts of all, thanks for your reply. These are the screenshots of the report.
Here it is the link of the other topic about this issue:
5-4-6-failed-to-update-the-cached-eleme ... t9300.html
As you can see, it's a problem emerged again from a past version.
Attachments
Report.PNG
Report.PNG (36.91 KiB) Viewed 300 times
Report Warnings.PNG
Report Warnings.PNG (88.07 KiB) Viewed 300 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5052
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Failed to update the cached element for folder..

Post by odklizec » Fri Mar 01, 2019 10:54 am

Hi,

In this case, I would suggest to do what the error says ;) Simply contact support (via support form), and send them what the error requests, i.e. report, snapshot and repository (ideally, entire solution).
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

f.chiari
Posts: 6
Joined: Mon Feb 25, 2019 11:58 am

Re: Failed to update the cached element for folder..

Post by f.chiari » Fri Mar 01, 2019 12:44 pm

Hi,
ok, I'll do it. I've just tried to keep a fast solution, if anyone had noticed the same problem :D Thank you so much!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11957
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Failed to update the cached element for folder..

Post by Support Team » Fri Mar 01, 2019 9:00 pm

Hi f.chiari,

This is likely caused by a known issue with the new JS-based RanoreXPath evaluation feature introduced in Ranorex 9.0. Since it is only a warning, you can disregard it or disable the setting to remove the warnings. Disabling the option will not break your test, just a slight performance decrease.
1.png
1.png (22.55 KiB) Viewed 291 times
Cheers,
Ned
.
Image

Trillian6
Posts: 1
Joined: Tue Apr 10, 2018 4:23 pm

Re: Failed to update the cached element for folder..

Post by Trillian6 » Thu Mar 14, 2019 5:00 pm

Hi, I had experienced the same warning since upgrading to 9.0.

I changed the settings as suggested and the warning dissappeared.

Thanks for bringing this up f.chiari, and posting a solution Ned.
:D

f.chiari
Posts: 6
Joined: Mon Feb 25, 2019 11:58 am

Re: Failed to update the cached element for folder..

Post by f.chiari » Fri Apr 12, 2019 8:59 am

Thanks Ned!!!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5052
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Failed to update the cached element for folder..

Post by odklizec » Fri Apr 12, 2019 9:07 am

Hi,

There is a new Ranorex 9.0.1 available, which fixes many "JS-based xpath" option bugs (and many other bugs too)! So you should definitely try 9.0.1.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration