# Error Importing tags from file

**URL:** <https://community.mp3tag.de/t/error-importing-tags-from-file/46775>\
**Category:** Support\
**Created:** [October 17, 2019, 4:12pm UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775 "2019-10-17T16:12:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![franco](https://community.mp3tag.de/user_avatar/community.mp3tag.de/franco/32/6905_2.png) [@franco](https://community.mp3tag.de/u/franco)\
**Post date:** [October 17, 2019, 4:12pm UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/1 "2019-10-17T16:12:49Z")

</div>

Hello,  
I'm trying to import from the filename to tag:  
02 Canto Extranjero (Canto Straniero) (1981)

with this string  
%track% %title% (%title%) (%year%)

but the result is :  
(track) 02  
Canto Extranjero Canto Straniero  
year 1981

how do I get this result:  
(track) 02  
(title) Canto Extranjero (Canto Straniero)  
year 1981

Thanks in advance (and sorry for my bad english)

Franco

---

<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:** [October 17, 2019, 4:19pm UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/2 "2019-10-17T16:19:44Z")

</div>

> [@franco](#):
>
> %track% %title% (%title%) (%year%)

What about  
%track% %title%) (%year%)  
You loose the closing bracket in the title but that should easily be added.

---

<div class="post-metadata">

**Author:** ![franco](https://community.mp3tag.de/user_avatar/community.mp3tag.de/franco/32/6905_2.png) [@franco](https://community.mp3tag.de/u/franco)\
**Post date:** [October 18, 2019, 8:22am UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/3 "2019-10-18T08:22:04Z")

</div>

Yes, playing with brackets and spaces I saw that I could achieve this.  
But that's not what I wanted so badly...

---

<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:** [October 18, 2019, 8:56am UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/4 "2019-10-18T08:56:53Z")

</div>

You could import everything into just title (including the year)  
then copy all of TITLE into YEAR,  
leave only the 4 digits in YEAR  
remove the 4 digits and the brackets in TITLE

- many more steps than just use the converter filename-tag  
and then the converter tag-tag with  
Format string: %title%)

The problem with the original filename is that the separator in one case can be omitted while in the other case should be included in the data.

---

<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:** [October 19, 2019, 12:03am UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/5 "2019-10-19T00:03:43Z")

</div>

> [@franco](#):
>
> Yes, playing with brackets and spaces I saw that I could achieve this.  
> But that's not what I wanted so badly...

Try an Action Group made up of these 3 actions:

Action type: Format value  
Field: TRACK  
Format string: `$regexp(%_filename%,^(\d\d)(.+)\((\d\d\d\d)\)$,$1)`

Action type: Format value  
Field: TITLE  
Format string: `$trim($regexp(%_filename%,^(\d\d)(.+)\((\d\d\d\d)\)$,$2))`

Action type: Format value  
Field: YEAR  
Format string: `$regexp(%_filename%,^(\d\d)(.+)\((\d\d\d\d)\)$,$3)`

---

<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:** [February 9, 2026, 12:28pm UTC](https://community.mp3tag.de/t/error-importing-tags-from-file/46775/6 "2026-02-09T12:28:18Z")

</div>


