# Error: Corrupted note

**URL:** <https://forums.ankiweb.net/t/error-corrupted-note/10976>\
**Category:** Help\
**Created:** [June 22, 2021, 4:40pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976 "2021-06-22T16:40:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutf0005](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@gutf0005](https://forums.ankiweb.net/u/gutf0005)\
**Post date:** [June 22, 2021, 4:40pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/1 "2021-06-22T16:40:12Z")

</div>

Some of my cards on one of my notes seems to be corrupted. Whenever I attempt to view, edit, or delete the card I get the following error (see below), or (in the case of Anki Mobile) the app crashes.

This problem occurs both on Anki Desktop and Mobile. The note is a cloze deletion note with a high number of cards associated with it. The error only occurs when the card is empty. However, all attempts to delete the empty cards or entire note (via the “empty notes” option, manually through the browser, etc.) have failed.

As the problem was going on for some time and was only recently discovered, reverting to a backup version of the deck is not possible.

Any suggestions in how to proceed would be greatly appreciated.

Anki Version  
Version ⁨2.1.44 (b2b3275f)⁩  
Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Operating Systems:  
Anki Desktop: Windows 10  
Anki Mobile: Android

Error  
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.  
If the issue only occurs when add-ons are enabled, please use the Tools \> Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.  
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.  
Debug info:  
Anki 2.1.44 (b2b3275f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
Platform: Windows 10  
Flags: frz=True ao=True sv=2  
Add-ons, last update check: 2021-06-22 06:40:09

Caught exception:  
Traceback (most recent call last):  
File “aqt\taskman.py”, line 88, in \_on\_closures\_pending  
File “aqt\taskman.py”, line 59, in   
File “aqt\emptycards.py”, line 82, in on\_done  
File “concurrent\futures\_base.py”, line 432, in result  
File “concurrent\futures\_base.py”, line 388, in \_\_get\_result  
File “concurrent\futures\thread.py”, line 57, in run  
File “aqt\emptycards.py”, line 77, in delete  
File “aqt\emptycards.py”, line 100, in _delete\_cards  
File “anki\collection.py”, line 402, in remove\_cards\_and\_orphaned\_notes  
File “anki\_backend\generated.py”, line 407, in remove\_cards  
File "anki\_backend\_init_.py", line 106, in \_run\_command  
anki.errors.DBError: DBError { info: “IntegralValueOutOfRange(3, 66111)”, kind: Other }

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 23, 2021, 11:30pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/2 "2021-06-23T23:30:19Z")

</div>

[https://faqs.ankiweb.net/when-problems-occur.html](https://faqs.ankiweb.net/when-problems-occur.html)

---

<div class="post-metadata">

**Author:** ![gutf0005](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@gutf0005](https://forums.ankiweb.net/u/gutf0005)\
**Post date:** [June 26, 2021, 7:26pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/3 "2021-06-26T19:26:30Z")

</div>

I´ve followed the step listed in the link, and still I am having problems. When I attempt to delete the empty cards via “empty cards” option, I get the following error.

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.44 (b2b3275f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
Platform: Windows 10  
Flags: frz=True ao=False sv=2  
Add-ons, last update check: 2021-06-26 08:36:17

Caught exception:  
Traceback (most recent call last):  
File “aqt\taskman.py”, line 88, in \_on\_closures\_pending  
File “aqt\taskman.py”, line 59, in   
File “aqt\emptycards.py”, line 82, in on\_done  
File “concurrent\futures\_base.py”, line 432, in result  
File “concurrent\futures\_base.py”, line 388, in \_\_get\_result  
File “concurrent\futures\thread.py”, line 57, in run  
File “aqt\emptycards.py”, line 77, in delete  
File “aqt\emptycards.py”, line 100, in _delete\_cards  
File “anki\collection.py”, line 402, in remove\_cards\_and\_orphaned\_notes  
File “anki\_backend\generated.py”, line 407, in remove\_cards  
File "anki\_backend\_init_.py", line 106, in \_run\_command  
anki.errors.DBError: DBError { info: “IntegralValueOutOfRange(3, 66111)”, kind: Other }

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [June 26, 2021, 7:42pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/4 "2021-06-26T19:42:16Z")

</div>

Did you try Tools \> Check Database?

---

<div class="post-metadata">

**Author:** ![gutf0005](https://avatars.discourse-cdn.com/v4/letter/g/d26b3c/32.png) [@gutf0005](https://forums.ankiweb.net/u/gutf0005)\
**Post date:** [June 26, 2021, 8:00pm UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/5 "2021-06-26T20:00:35Z")

</div>

Yes, but it didn´t solve the problem.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 28, 2021, 9:05am UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/6 "2021-06-28T09:05:22Z")

</div>

Thank you for the report, the next beta should handle this in the DB check.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:00am UTC](https://forums.ankiweb.net/t/error-corrupted-note/10976/7 "2023-05-01T05:00:28Z")

</div>

Closed on May 1, 2023, 5:00am UTC


