This is the error i got after switching to new profile

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.02.7 (1b882285)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "C:\Users\rajiv\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 239, in _on_clear_unused_tags_done
    changes: OpChangesWithCount = future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "anki.tags", line 54, in clear_unused_tags

  File "anki._backend_generated", line 2136, in clear_unused_tags

  File "anki._backend", line 172, in _run_command

anki.errors.InvalidInput: CollectionNotOpen

Sentry link (for developers)

Hello,

It’s possible the error was just a one-time glitch that occurred during the profile switch. However, to make sure everything is working correctly, please try the following steps:

  1. Update the AnkiHub add-on: Go to Tools > Add-ons > Check for Updates on your Anki main screen.
  2. Restart Anki: Close Anki completely and then re-open it.

After doing that, please try switching profiles again and let us know if the error happens again! :blush: