# Help with Export Configuration

**URL:** <https://community.mp3tag.de/t/help-with-export-configuration/47216>\
**Category:** Support\
**Created:** [December 2, 2019, 8:56pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216 "2019-12-02T20:56:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 8:56pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/1 "2019-12-02T20:56:57Z")

</div>

Hi,

I'm very new to MP3 Tag and am really enjoying it so far - so much more flexible than other programmes I have looked at. However, I have hit a brick wall with the Export Configuration and have spent the whole day trying to work this out to no avail (a programmer I am not!)...

What I'm trying to do is create a personalised Export Configuration to include some new Custom field as well as standard fields not already included in the basic templates.

If I take the csv Export template, which is:

$filename(csv,utf-16)Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;  
$loop(%\_filename\_ext%)%title%;%artist%;%album%;%track%;%year%;%\_length\_seconds%;%\_file\_size%;%\_file\_mod\_date%;%\_folderpath%;%\_filename\_ext%;  
$loopend()build on %\_date% with %\_app% - the universal Tag editor - [http://www.mp3tag.de/en/](http://www.mp3tag.de/en/)

and create a new template and add just one new field for ISRC to create the following command:

$filename(csv,utf-16)Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;ISRC  
$loop(%\_filename\_ext%)%title%;%artist%;%album%;%track%;%year%;%\_length\_seconds%;%\_file\_size%;%\_file\_mod\_date%;%\_folderpath%;%\_filename\_ext%;%isrc%,  
$loopend()build on %\_date% with %\_app% - the universal Tag editor - [http://www.mp3tag.de/en/](http://www.mp3tag.de/en/)

When I run the new template I get the following error message:

"$filename only allowed at the beginning of export configuration"

The weird thing is if I then go back and re-edit my new template to be the same as the original programme eplate file, I get the same error message…

All help very grateful appreciated as it is driving me crazy...

Thanks,

Mark

---

<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 2, 2019, 9:01pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/2 "2019-12-02T21:01:09Z")

</div>

> [@markvdb](#):
>
> $filename(csv,utf-16)Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;ISRC  
> $loop(%\_filename\_ext%)%title%;%artist%;%album%;%track%;%year%;%\_length\_seconds%;%\_file\_size%;%\_file\_mod\_date%;%\_folderpath%;%\_filename\_ext%;%isrc%,  
> $loopend()

This works OK over here.  
Is this an accurate copy or did you insert somewhere a $filename instead of a plain Filename or %\_filename\_ext%?

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 9:07pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/3 "2019-12-02T21:07:21Z")

</div>

WOW - thanks for getting back to me so quickly...

This is an accurate copy of the code from the mte file...

I have just noticed something though - the is a , instead of a ; after %isrc% - let me try see what happens if I change this...

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 9:09pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/4 "2019-12-02T21:09:59Z")

</div>

Just tried changing the , to ; and no help I'm afraid...

---

<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 2, 2019, 9:12pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/5 "2019-12-02T21:12:40Z")

</div>

This is the output I get for a single file:  
Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;ISRC  
Sky never die;Fresh Moods;Ambient Diary.One;002;1997;465;17,79 MB;19.10.2019;C:\Music\Ambient Diary.One - 1997;Ambient Diary.One \_ 002 \_

looks OK to me

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 9:34pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/6 "2019-12-02T21:34:19Z")

</div>

Still not working for me - I've tried moving the file source folder to the desktop to simplify the path, moved the ISRC field into the middle, tried using a standard field (Comment) instead of the custom ISRC field - completely baffled???

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 10:23pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/7 "2019-12-02T22:23:11Z")

</div>

The weirdest thing is if I then go back and copy and paste the template code into my newly created template so they are exactly the same, when I try and run my new template I still get the same error message, which is:

$filename only allowed at the beginning of export configuration

---

<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:** [December 2, 2019, 10:30pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/8 "2019-12-02T22:30:33Z")

</div>

Instead of copying and pasting code to the forum, upload the complete MTE file for the export that fails, found here: "%APPDATA%\Mp3tag\export\Your Failed Export.mte"

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 10:38pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/9 "2019-12-02T22:38:36Z")

</div>

OK -thanks for your help...

The file that works is "csv"  
The file that doesn't work is "csvtest"

As you will see they are now both exactly the same as I have copied and pasted the data from "csv" into "csvtest". I can run "csv" with no problem but "csvtest" gives me the error message

$filename only allowed at the beginning of export configuration

[csv.mte](https://community.mp3tag.de/uploads/short-url/dcbKcVvJOLcRRUwbnM2ILopXkUS.mte) (327 Bytes) [csvtest.mte](https://community.mp3tag.de/uploads/short-url/vhpHqA5zwNTnrqDrnYKZXX89nDi.mte) (331 Bytes)

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 10:41pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/10 "2019-12-02T22:41:55Z")

</div>

PS Using PC running Windows 10 with Office 365

---

<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:** [December 2, 2019, 10:47pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/11 "2019-12-02T22:47:37Z")

</div>

> [@markvdb](#):
>
> As you will see they are now both exactly the same

No, they are **not** exactly the same.  
The first line of csvtest.mte has double quotes around the first line: csv.mte does not.

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 10:55pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/12 "2019-12-02T22:55:01Z")

</div>

Hi,

I'm sorry but I don't understan =d as the first line/cell still look the exact same to me and this is what I see:

csv  
$filename(csv,utf-16)Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;

csvtest  
$filename(csv,utf-16)Title;Artist;Album;Track;Year;Length;Size;Last Modified;Path;Filename;

Can you be kind enough to please point out to me where the double quotes are?

Many thanks,

Mark

---

<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:** [December 2, 2019, 11:00pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/13 "2019-12-02T23:00:22Z")

</div>

Here is what I see when "csvtest.mte" is opened with Notepad:

 ![csvtest%20opened%20with%20notepad](https://community.mp3tag.de/uploads/default/original/2X/0/0dd5e5e822f4b5127ba0a809e74b2077db3119fd.jpeg)

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 11:02pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/14 "2019-12-02T23:02:21Z")

</div>

Thanks so much, that's really helpful - let me investigate

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 2, 2019, 11:10pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/15 "2019-12-02T23:10:03Z")

</div>

@ryerman - once again thank you so so much - I have edited the Notepad code to remove the quotation marks and it now works fine. I didn't think to look into opening with Notepad and will remember that for the future. Tomorrow I will try and work out why/how the quotation marks got into the code and repost back as this might help others.

Thanks again - I really appreciated it!

---

<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 3, 2019, 5:20am UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/16 "2019-12-03T05:20:31Z")

</div>

> [@markvdb](#):
>
> I didn't think to look into opening with Notepad and will remember that

That means that you have set a different editor for plain text documents. MP3tag does not do anything but call the default plain text editor when you click on "new" or "Edit" in the export configuration dialogue.

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 4, 2019, 9:23am UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/17 "2019-12-04T09:23:04Z")

</div>

@ohreniko - thanks very much - I must have reset this the first time I opened the document as I checked and Notepad is set as my default plain text editor?? I will remember to keep an eye on this in the future.

I have one more question please? When I save the data, how do I specify the file extension for the data file please?

Many thanks for your help - it is really appreciated!

---

<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 4, 2019, 10:07am UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/18 "2019-12-04T10:07:43Z")

</div>

> [@markvdb](#):
>
> how do I specify the file extension for the data file please?

See the help on Export:

> **[Exporting Tag and File Information – Mp3tag Documentation](https://docs.mp3tag.de/export/#export-scripting-functions)**
>
> Documentation on exporting tag and file information to text-based file formats. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

**Author:** ![markvdb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@markvdb](https://community.mp3tag.de/u/markvdb)\
**Post date:** [December 4, 2019, 4:15pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/19 "2019-12-04T16:15:31Z")

</div>

@ohrenkino - that's great - thanks very much!

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [January 3, 2020, 4:15pm UTC](https://community.mp3tag.de/t/help-with-export-configuration/47216/20 "2020-01-03T16:15:32Z")

</div>

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