Trying to export decks, but keep getting an error

I’m trying to export decks I’m not actively using, to slim down my account, so the media on my account will all fit on my tablet.

I want to keep these decks that I’m trying export.

When trying to export these decks, it appears files are made, but I’m not sure they’re good quality because I’m getting these error messages.

After getting the error message, I opened Anki holding shift, to disable extensions (I think?). Got the error again.

I tried “Check Database”. It did its thing without any messages. I tried exporting again, and got 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.49 (dc80804a) 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: 2022-01-08 16:09:31

Caught exception:
Traceback (most recent call last):
File “aqt\exporting.py”, line 156, in accept
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:/Users/Sanjay/Desktop/000. INBOX/Anki Languages/Languages__Hindi.apkg’

Any suggestions on how to proceed, to export these decks?

Thanks!

UPDATE:

It looks like this is happening only on certain decks.

I’ve exported about 5 decks, with no issues.

Then, trying to export another one, Morse, I got a similar error to the Hindi deck (the error message posted above).

Here’s the error message trying to export the Morse deck:

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.49 (dc80804a) 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: 2022-01-08 16:09:31

Caught exception:
Traceback (most recent call last):
File “aqt\taskman.py”, line 101, in _on_closures_pending
File “aqt\taskman.py”, line 71, in
File “aqt\exporting.py”, line 173, 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\exporting.py”, line 167, in do_export
File “anki\exporting.py”, line 342, in exportInto
File “anki\exporting.py”, line 350, in doExport
File “anki\exporting.py”, line 253, in exportInto
File “anki\models.py”, line 539, in update
File “anki_backend\generated.py”, line 450, in add_or_update_notetype
File "anki_backend_init
.py", line 131, in _run_command
anki.errors.TemplateError: Card template ⁨4⁩ in notetype ‘⁨Morse Sound and Light⁩’ has a problem.
The front side is identical to card template ⁨2⁩.

This is probably causing the problem:

“Card template ⁨4⁩ in notetype ‘⁨Morse Sound and Light⁩’ has a problem.
The front side is identical to card template ⁨2⁩”

If you don’t need card template 4, you can try to delete it and try exporting your collection again.

4 Likes