# Text file to TAG

**URL:** <https://community.mp3tag.de/t/text-file-to-tag/16422>\
**Category:** Support\
**Created:** [December 17, 2014, 5:57pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422 "2014-12-17T17:57:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![skpManiac](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@skpManiac](https://community.mp3tag.de/u/skpManiac)\
**Post date:** [December 17, 2014, 5:57pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/1 "2014-12-17T17:57:46Z")

</div>

Hi there, I am trying to convert a text file to TAGS - done it before but maybe 2 years ago, and now when I try I get this error:

Cannot parse line 1.  
Cannot parse line 2.  
Cannot parse line 3.  
Cannot parse line 4.  
Cannot parse line 5.  
Cannot parse line 6.  
Cannot parse line 7.  
Cannot parse line 8.  
Cannot parse line 9.  
Cannot parse line 10.  
Cannot parse line 11.  
Cannot parse line 12.  
Cannot parse line 13.  
Cannot parse line 14.  
Cannot parse line 15.  
Cannot parse line 16.  
Cannot parse line 17.  
Cannot parse line 18.  
Cannot parse line 19.  
Cannot parse line 20.  
Cannot parse line 21.  
Cannot parse line 22.  
Cannot parse line 23.  
Cannot parse line 24.  
Cannot parse line 25.

Imported tags from "I:\Mastermix\Film Set Take 1\cd1.txt" to 25 of 25 files.

Any ideas?

Thank you

I did search but because I can only search 3 letters or more the more query TEXT TAGS brought up 28 pages of results, so I did not look at everything 😕

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 17, 2014, 7:21pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/2 "2014-12-17T19:21:40Z")

</div>

If you want to import data from a text file then the structure of data in the file must match the mask you enter in the Convert function.  
e.g. if the text file has  
Beatles;A Hard days night

then the mask for import looks like this:  
%artist%;%title%

---

<div class="post-metadata">

**Author:** ![skpManiac](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@skpManiac](https://community.mp3tag.de/u/skpManiac)\
**Post date:** [December 17, 2014, 9:55pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/3 "2014-12-17T21:55:55Z")

</div>

Hi

the text file reads thus:

1. Seattle Symphony Orchestra - 2001 A Space Odyssey
2. Madonna - Beautiful Stranger
3. Seal - Kiss From A Rose
4. Matt Monro - Born Free

etc

I used the format as shown in pic and gAttachment 5812 not found.et that error - I am sure this exactly how I used to do it 😛

 ![](https://community.mp3tag.de/uploads/default/original/2X/8/8151094bd9f908d953bdd0bf9f73e3d29d1ac31c.PNG)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 18, 2014, 5:48am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/4 "2014-12-18T05:48:10Z")

</div>

> [@skpManiac](#):
>
> Hi
> 
> the text file reads thus:
> 
> 1. Seattle Symphony Orchestra - 2001 A Space Odyssey
> 2. Madonna - Beautiful Stranger
> 3. Seal - Kiss From A Rose
> 4. Matt Monro - Born Free
> 
> etc
> 
> I used the format as shown in pic and gAttachment 5812 not found.et that error - I am sure this exactly how I used to do it 😛

If I try it with the data you supplied, then I get this preview:  
"E:\xxx\yyy\69 Eyes\2004 - Sweet Nothing Play Hard\416 5 Conspiracy Theories \_ Sweet Nothing Play Hard \_ 001 \_ Lost Boys.mp3" -\>  
track: 1  
artist: Seattle Symphony Orchestra  
title: 2001 A Space Odyssey

The mask I used spells like this:  
%track%%artist%%title%

If you are not sure that the data complies with the mask, then try to get a unique separator between the fields like the underscore, so that  
"1. Seattle Symphony Orchestra - 2001 A Space Odyssey "  
becomes  
"1\_Seattle Symphony Orchestra\_2001 A Space Odyssey"

---

<div class="post-metadata">

**Author:** ![Stem75](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stem75/32/5007_2.png) [@Stem75](https://community.mp3tag.de/u/Stem75)\
**Post date:** [March 31, 2016, 6:26pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/5 "2016-03-31T18:26:25Z")

</div>

in my case the export file ( .csv ) had a lot of blank lines at the end of the script.  
Deleting those lines did the job.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [April 1, 2016, 4:03am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/6 "2016-04-01T04:03:29Z")

</div>

> [@Stem75](#):
>
> in my case the export file ( .csv ) had a lot of blank lines at the end of the script.Deleting those lines did the job.

About what job are you talking about?  
Did you really get "Cannot parse line" messages for trailing blank lines?

DD.20160401.0803.CEST

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 10:14am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/7 "2019-11-11T10:14:42Z")

</div>

I cant make this work

I have a text file of Matrix Numbers I want to input into %setsubtitle% of each track.

One is on each line.

Can someone please provide me with step by step info on how to do this with either text files or csv because I just don't get it

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 11, 2019, 10:57am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/8 "2019-11-11T10:57:05Z")

</div>

> [@johnmillsjr](#):
>
> I have a text file of Matrix Numbers I want to input into %setsubtitle% of each track.
> 
> One is on each line.

Sort all files in the according sequence to your textfile.  
Mark all your files.  
Take the Converter:  
Textfile-\>Tag or ALT-4  
In "Filename" navigate to your Textfile.  
As "Formatstring" write: %setsubtitle%

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 10:59am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/9 "2019-11-11T10:59:00Z")

</div>

Cannot parse line 1.  
Cannot parse line 2.  
Cannot parse line 3.  
Cannot parse line 4.  
Cannot parse line 5.  
Cannot parse line 6.  
Cannot parse line 7.  
Cannot parse line 8.  
Cannot parse line 9.  
Cannot parse line 10.  
Cannot parse line 11.  
Cannot parse line 12.  
Cannot parse line 13.  
Cannot parse line 14.  
Cannot parse line 15.  
Cannot parse line 16.  
Cannot parse line 17.  
Cannot parse line 18.  
Cannot parse line 19.  
Cannot parse line 20.  
Cannot parse line 21.  
Cannot parse line 22....

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 11, 2019, 11:10am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/10 "2019-11-11T11:10:16Z")

</div>

"Cannot parse" would to be expected if there were more files than textlines for the surplus files. But as your error-messages start with "line1" I don't know what's wrong.  
How does your textfile look like?  
Is there an CR/LF after each line?

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 11:14am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/11 "2019-11-11T11:14:20Z")

</div>

There's no blank lines in the file- and there are 96 lines for 96 files

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 11:28am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/12 "2019-11-11T11:28:06Z")

</div>

I think I found the issue, how do I fix this?

 ![Screenshot_3](https://community.mp3tag.de/uploads/default/original/2X/b/b9bcbd1c665ee808aaf51ef2651d11fe05365e04.jpeg)

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 11, 2019, 11:29am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/13 "2019-11-11T11:29:42Z")

</div>

> [@johnmillsjr](#):
>
> There's no blank lines in the file- and there are 96 lines for 96 files

I just verified my description here and it works as expected.  
Did you really write `%setsubtitle%`? The percent symbol has to be written too.

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 11:31am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/14 "2019-11-11T11:31:08Z")

</div>

Yes I did, also please see my previous post you may have missed as we replied at the same time

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 11, 2019, 11:36am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/15 "2019-11-11T11:36:00Z")

</div>

> [@johnmillsjr](#):
>
> I think I found the issue, how do I fix this?

I cannot see an issue.🧐  
What do you view as issue?

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 11:39am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/16 "2019-11-11T11:39:37Z")

</div>

Is the CL/RF meant to be there? if so then I haven't ;-;

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [November 11, 2019, 11:47am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/17 "2019-11-11T11:47:02Z")

</div>

Upload the text file.

---

<div class="post-metadata">

**Author:** ![johnmillsjr](https://community.mp3tag.de/user_avatar/community.mp3tag.de/johnmillsjr/32/6945_2.png) [@johnmillsjr](https://community.mp3tag.de/u/johnmillsjr)\
**Post date:** [November 11, 2019, 11:51am UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/18 "2019-11-11T11:51:41Z")

</div>

[Duke Ellington Capitol Recordings Matrix 1953-55.log](https://community.mp3tag.de/uploads/short-url/7IxsWbQfGfiWyr59uIOMWO2hqKw.log) (872 Bytes) had to change ext to .log to upload

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 11, 2019, 12:10pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/19 "2019-11-11T12:10:31Z")

</div>

> [@johnmillsjr](#):
>
> Duke Ellington Capitol Recordings Matrix 1953-55.log

Works here without any problem.

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [November 11, 2019, 12:11pm UTC](https://community.mp3tag.de/t/text-file-to-tag/16422/20 "2019-11-11T12:11:24Z")

</div>

I changed .log back to txt.  
The file worked OK for me.  
Sorry, but I see no problem.

[Next page](https://community.mp3tag.de/t/text-file-to-tag/16422.md?page=2)
