Upgrading to V2 Scheduler Error

When I try to update to the V2 scheduler, I get this 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.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2023-08-11 15:18:35

Caught exception:
Traceback (most recent call last):
File “aqt.webview”, line 46, in cmd
File “aqt.webview”, line 153, in _onCmd
File “aqt.webview”, line 662, in _onBridgeCmd
File “aqt.deckbrowser”, line 118, in _linkHandler
File “aqt.deckbrowser”, line 392, in _confirm_upgrade
File “anki.collection”, line 210, in upgrade_to_v2_scheduler
File “anki._backend_generated”, line 290, in upgrade_scheduler
File “anki._backend”, line 156, in _run_command
anki.errors.DBError: DbError { info: “InvalidColumnType(10, "factor", Real)”, kind: Other }

I did try “check database” and “check media” and nothing resolved the error.

Possibly noteworthy is the fact I haven’t used Anki desktop in a long time; I’ve been using Ankidroid every day, but it asked me to update to V2 also and is giving me a similar error.

When I entered the code into the debug console, I got the following:

>>> mw.col.db.execute("update cards set factor=round(factor)")
... mw.col.modSchema(False)
<string>:2:modSchema is deprecated: please use 'mod_schema'

But it still fully solved my issue. Ankidroid works again too. Thanks so much!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.