# Trying to sync optional tag

**URL:** <https://community.ankihub.net/t/trying-to-sync-optional-tag/165741>\
**Category:** 🐛 Bug\
**Tags:** add-on-error\
**Created:** [February 7, 2024, 3:59am UTC](https://community.ankihub.net/t/trying-to-sync-optional-tag/165741 "2024-02-07T03:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sydneyfleishman](https://community.ankihub.net/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@sydneyfleishman](https://community.ankihub.net/u/sydneyfleishman)\
**Post date:** [February 7, 2024, 3:59am UTC](https://community.ankihub.net/t/trying-to-sync-optional-tag/165741/1 "2024-02-07T03:59:34Z")

</div>

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

> **Error message (don't change this)**
>
> ```auto
> Anki 23.12.1 (1a1d4d54) (ao)
> Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
> Platform: macOS-13.2.1-arm64-arm-64bit
> 
> Traceback (most recent call last):
> 
> File "aqt.taskman", line 142, in _on_closures_pending
> 
> File "aqt.taskman", line 86, in <lambda>
> 
> File "aqt.taskman", line 106, in wrapped_done
> 
> File "/Users/sydneyfleishman/Library/Application Support/Anki2/addons21/1322529746/gui/browser/browser.py", line 513, in on_done
> 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 "/Users/sydneyfleishman/Library/Application Support/Anki2/addons21/1322529746/gui/browser/browser.py", line 521, in <lambda>
> task=lambda: _reset_optional_tag_group(extension_id=extension_id),
> 
> File "/Users/sydneyfleishman/Library/Application Support/Anki2/addons21/1322529746/gui/browser/browser.py", line 529, in _reset_optional_tag_group
> _remove_optional_tags_of_extension(extension_config)
> 
> File "/Users/sydneyfleishman/Library/Application Support/Anki2/addons21/1322529746/gui/browser/browser.py", line 548, in _remove_optional_tags_of_extension
> aqt.mw.col.tags.bulk_remove(note_ids=nids, tags=" ".join(tags_for_tag_group))
> 
> File "anki.tags", line 67, in bulk_remove
> 
> File "anki._backend_generated", line 2117, in remove_note_tags
> 
> File "anki._backend", line 166, in _run_command
> 
> anki.errors.InvalidInput: <pre>Compiled regex exceeds size limit of 10485760 bytes.</pre>
> 
> ```

[Sentry link (for developers)](https://ankihub.sentry.io/issues/?project=6546414&query=id:b6d4169e4c36482195cae046573d3481)

---

<div class="post-metadata">

**Author:** ![abdo.nh](https://community.ankihub.net/user_avatar/community.ankihub.net/abdo.nh/32/14_2.png) [@abdo.nh](https://community.ankihub.net/u/abdo.nh)\
**Post date:** [February 7, 2024, 11:08am UTC](https://community.ankihub.net/t/trying-to-sync-optional-tag/165741/2 "2024-02-07T11:08:51Z")

</div>

We’re aware of this issue and the fix will be out soon:

> [@My optional tag group wont sync](https://community.ankihub.net/t/my-optional-tag-group-wont-sync/148666):
>
> Before the error happened, I was… [Replace this text.] 
> 
> > **Error message (don't change this)**
> >
> > Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 5.14.2 PyQt 5.14.1 Platform: macOS-14.1-x86\_64-i386-64bit Flags: frz=True ao=True sv=3 Add-ons, last update check: 2024-01-10 17:53:46 Traceback (most recent call last): File "aqt.taskman", line 122, in \_on\_closures\_pending File "aqt.taskman", line 71, in \<lambda\> File "aqt.taskman", line 90, in wrapped\_done File &q…
