Ranorex 10 version is used.
For tests with the exact work flow, ranorex spy is sometimes able to find the element and the other times it only keeps searching and the script gets timed out.
Tried providing the whole path instead of just the automation id, it didn't work.
Can anything else be done?
Do you try to test a desktop app or a webbrowser app?
Without further information it is difficult to examine the problem, unfortunately.
But it can be helpful checking following things:

For a webbrowser app, please check the ranorex browser extension
please check your root path (of the element). maybe for some reasons it changes from time to time and the element cannot be found. Try to make the path more unspecific
Check your whitelist in ranorex
Finding elements using Ranorex spy is inconsistent