Unable to create custom test

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.43 (0fbae6bc) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2021-06-01 14:08:26

Caught exception:
Traceback (most recent call last):
File “aqt/customstudy.py”, line 216, in accept
File “anki/schedv2.py”, line 1206, in rebuild_filtered_deck
File “anki/_backend/generated.py”, line 176, in rebuild_filtered_deck
File “anki/_backend/init.py”, line 106, in _run_command
anki.errors.DBError: DBError { info: “SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some(“Expression tree is too large (maximum depth 1000)”))”, kind: Other }

What to do?

Did you do what the message says?

It’s always a good idea to do what the message says and let people know what you’ve tried. In this case, however, the problem is probably that you have selected too many tags to in-/exclude in the custom study.

2 Likes