Anki Forums

Invalid data found - please use Check Database to fix the problem

Here is the image from the Stats menu:


Typing an invalid search term will show this persistent error. It would not go away by clicking Enter. It would only disappear if you press "OK" using your mouse.

I don’t think any damage was done as I checked the database and all is clear.

Perhaps provide a more ‘friendly’ message? Something like the one found in the Browser:

Invalid search - please check for typing mistakes.
image


What do you think?

EDIT: btw checking database doesn’t fix the issue

1 Like

Maybe this will be difficult to achieve? Because the Browser doesn’t function the same way as Stats? I’m not sure…

Either way, the error is harmless.

It’s just assuming any failed search is due to a DB error, when it shouldn’t be.

1 Like