Since the issue only appears in TestComplete IDE and not in TestExecute, it may be related to a corrupted IDE/script compilation cache.
You could try fully clearing the TestComplete user cache to see if it resolves the random “Undeclared identifier: CreateAdoQuery” error:
- Close TestComplete completely
- Make sure no TestComplete.exe processes remain in Task Manager
- Delete the folder:
%LOCALAPPDATA%\SmartBear\TestComplete\15.0
- Reopen TestComplete and reload the project
If the problem disappears afterward, it was likely a cache/compilation state issue in the IDE. If it returns, it may be worth opening a support ticket with SmartBear, especially since it does not reproduce in TestExecute.
🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution