# Sentence adder for any language Error

**URL:** <https://forums.ankiweb.net/t/sentence-adder-for-any-language-error/8556>\
**Category:** Add-ons\
**Created:** [March 21, 2021, 11:24am UTC](https://forums.ankiweb.net/t/sentence-adder-for-any-language-error/8556 "2021-03-21T11:24:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankislacker](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankislacker/32/3571_2.png) [@ankislacker](https://forums.ankiweb.net/u/ankislacker)\
**Post date:** [March 21, 2021, 11:24am UTC](https://forums.ankiweb.net/t/sentence-adder-for-any-language-error/8556/1 "2021-03-21T11:24:25Z")

</div>

Debug info:

Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Mac 10.16

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2021-03-21 11:48:36

Add-ons possibly involved: ⁨ **Sentence adder for any language** ⁩

Caught exception:

Traceback (most recent call last):

File “/Users/user/Library/Application Support/Anki2/addons21/1682655437/ **init**.py”, line 87, in createDB

curs.execute(

sqlite3.OperationalError: table examples already exists

---

<div class="post-metadata">

**Author:** ![krmanik](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@krmanik](https://forums.ankiweb.net/u/krmanik)\
**Post date:** [March 21, 2021, 12:49pm UTC](https://forums.ankiweb.net/t/sentence-adder-for-any-language-error/8556/2 "2021-03-21T12:49:40Z")

</div>

I have checked the error.  
It happens when you recreate the db for same language.  
For e.g. if you have created database for Japanese language from `jpn_sentences.tsv` and again try to create same db for that file then the error shows as it already exists.

To remove error do either of following

1. Rename the tsv file and try again  
For e.g. rename `jpn_sentences.tsv` with `jpn_sentences123.tsv`

or

1. Delete the generated language db from addons folder  
View lang\_db in Sentence adder addons folder in Anki2 directory

In next update I will implement to handle these errors.

---

<div class="post-metadata">

**Author:** ![ankislacker](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankislacker/32/3571_2.png) [@ankislacker](https://forums.ankiweb.net/u/ankislacker)\
**Post date:** [March 21, 2021, 10:09pm UTC](https://forums.ankiweb.net/t/sentence-adder-for-any-language-error/8556/3 "2021-03-21T22:09:06Z")

</div>

Thanks, everything works.
