# Anki TXT import with Notetype getting ignored?

**URL:** https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689
**Category:** Help
**Created:** [March 22, 2024, 10:00am UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689 "2024-03-22T10:00:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jae-joong](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jae-joong/32/19358_2.png) [@jae-joong](https://forums.ankiweb.net/u/jae-joong)
#### Post date: [March 22, 2024, 10:00am UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/1 "2024-03-22T10:00:20Z")

</div>

I am trying to import a TXT file into Anki with a predefined notetype. I have two text files that correspond to 2 Anki decks, their headers look like this:

TXT File #1:

```auto
#separator:tab			
#html:false			
#guid column:1			
#tags column:4			
#deck:(KR) eohwi			
#notetype:Basic

```

TXT File #2:

```auto
#separator:tab			
#html:false			
#guid column:1			
#tags column:4			
#deck:(FI) Sanasto
#notetype:Basic (type in the answer)	

```

When I import the TXT files in Anki, Anki seems to ignore the #`notetype` header, however, the rest are actually taken into consideration. [The manual does not feature any examples on how the syntax for `#notetype` should look like](https://docs.ankiweb.net/importing/text-files.html#file-headers). Could someone help me specify this?

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [March 22, 2024, 10:28am UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/2 "2024-03-22T10:28:44Z")

</div>

There is no such header. There is only ‘notetype column’, which identifies which column contains the notetype name for each row.

Edit: sorry, that’s wrong - I was looking in the wrong place. The notetype header should adjust the default selection in the importing screen. Does it not for you?

---

<div class="post-metadata">

### Author: ![jae-joong](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jae-joong/32/19358_2.png) [@jae-joong](https://forums.ankiweb.net/u/jae-joong)
#### Post date: [March 22, 2024, 11:13am UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/3 "2024-03-22T11:13:40Z")

</div>

> @dae: The notetype header should adjust the default selection in the importing screen. Does it not for you?

It actually does not, however, I am not sure whether my syntax is correct? [The manual does not feature any examples on how the syntax for `#notetype` should look like](https://docs.ankiweb.net/importing/text-files.html#file-headers).

In any case, when importing TXT File #1, I still get as a n Import option “Basic (type in the answer)”, even though “Basic” was chosen in the TXT file.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/3/b3c3e167eca97582084cca3546083d5d4a159a46.png)

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [March 22, 2024, 11:58am UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/4 "2024-03-22T11:58:10Z")

</div>

Does changing ‘when adding, default to current deck’ in the preferences screen make a difference?

---

<div class="post-metadata">

### Author: ![jae-joong](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jae-joong/32/19358_2.png) [@jae-joong](https://forums.ankiweb.net/u/jae-joong)
#### Post date: [March 22, 2024, 7:49pm UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/5 "2024-03-22T19:49:44Z")

</div>

I couldn’t make it work, so I gave up on it, and instead, started working with the notetype column, which does indeed work.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)
#### Post date: [April 21, 2024, 7:50pm UTC](https://forums.ankiweb.net/t/anki-txt-import-with-notetype-getting-ignored/42689/6 "2024-04-21T19:50:13Z")

</div>

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