# The export tags feature fails for 55k files

**URL:** https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809
**Category:** Support
**Created:** [April 12, 2021, 6:34pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809 "2021-04-12T18:34:15Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 6:34pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/1 "2021-04-12T18:34:15Z")

</div>

Hello, I'm not sure what's going on here, the script I created to export metadata was working in the beginning to export ~ 55k files, but after a while it broke beyond repair.

Edit: It doesn't seem to work correctly for a smaller number of files either.

Can you please help me to debug this? I've attached the export code I created. Any tips on how this can be fixed are greatly appreciated.

$filename(csv,utf-16)Location$char(9)Art$char(9)Title$char(9)AA$char(9)Album$char(9)MyAA$char(9)MyAlb$char(9)MyAA\_VA$char(9)MyAlb\_VA$char(9)Length$char(9)Genre$char(9)Year$char(9)Bitrate$char(9)File\_Size$char(9)Covers$char(9)Cover\_Size$char(9)Hei$char(9)Wid$char(9)Cover\_Mime\_Type$char(9)Cover\_Type$char(9)Grouping$char(9)ContentGroup$char(9)Art\_Sort$char(9)AA\_Sort$char(9)Album\_Sort$char(9)Last\_Modif  
$loop(%\_filename\_ext%)%\_folderpath%%\_filename\_ext%$char(9)$meta\_sep(artist,\)$char(9)$meta\_sep(title,\)$char(9)$meta\_sep(albumartist,\)$char(9)$meta\_sep(album,\)$char(9)%MyAA%$char(9)%MyAlb%$char(9)%MyAA\_VA%$char(9)%MyAlb\_VA%$char(9)$if($grtr(%\_length\_seconds%,0),%\_length\_seconds%,0)$char(9)$meta\_sep(Genre,\)$char(9)$meta\_sep(Year,\)$char(9)%\_bitrate%$char(9)$if($grtr(%\_file\_size\_bytes%,0),%\_file\_size\_bytes%,0)$char(9)$if($grtr(%\_covers%,0),%\_covers%,0)$char(9)$if($grtr(%\_cover\_size%,0),%\_cover\_size%,0)$char(9)$if($grtr(%\_cover\_width%,0),%\_cover\_width%,0)$char(9)$if($grtr(%\_cover\_height%,0),%\_cover\_height%,0)$char(9)%\_cover\_mimetype%$char(9)%\_cover\_type%$char(9)$meta\_sep(Grouping,\)$char(9)$meta\_sep(ContentGroup,\)$char(9)%artistsort%$char(9)%albumartistsort%$char(9)%albumsort%$char(9)%\_file\_mod\_date%  
$loopend()

---

<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: [April 12, 2021, 6:45pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/2 "2021-04-12T18:45:29Z")

</div>

have you got the library switched on?  
have you checked those files for consistency where the crash happened?

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:02pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/3 "2021-04-12T19:02:35Z")

</div>

Well, the script worked at the very first time, now it's erratic. I notice as it scans through the 55k files, the created file size goes up and down, it's crazy.

What do you mean got the library switched on? How do I do that?

---

<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: [April 12, 2021, 7:05pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/4 "2021-04-12T19:05:15Z")

</div>

> [@jrsousa2](#):
>
> What do you mean got the library switched on?

See File\>Options\>Library

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:06pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/5 "2021-04-12T19:06:59Z")

</div>

I think that is disabled, yes. Let me put it back on and see what happens.  
Thank you

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:09pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/6 "2021-04-12T19:09:01Z")

</div>

Btw, what does turning on the library does? Now I recall that I had never changed that setting, it'd been always that way.

---

<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: [April 12, 2021, 7:11pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/7 "2021-04-12T19:11:21Z")

</div>

The library helps MP3tag to handle large amounts of files.  
55k could be close to the limit of the available address space if kept in the RAM.  
Sorting a lot of files could also eat up the available RAM. So the library could help with it.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:13pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/8 "2021-04-12T19:13:28Z")

</div>

That makes sense. it was hard to figure out what was going on here, but now I think I know.

It seems that after the first crash, all other attempts also fail, even if I select a smaller subset of the files. Other than that, I see no other explanation for the erratic behavior.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:19pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/9 "2021-04-12T19:19:09Z")

</div>

I closed and reopen mp3tag.

Still not working, it's only exported 125 files out of 7k that I attempted. Perhaps a computer restart is needed?

---

<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: [April 12, 2021, 7:21pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/10 "2021-04-12T19:21:29Z")

</div>

Yes, try whatever you think is useful to get a clean system.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 12, 2021, 7:23pm UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/11 "2021-04-12T19:23:49Z")

</div>

However I wonder why it worked once, and now it's not.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 14, 2021, 1:46am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/12 "2021-04-14T01:46:05Z")

</div>

It totally stopped working. It doesn't work after rebooting, it doesn't work with fewer files, it doesn't work enabling the library.  
It seems it broke beyond repair.

I shouldn't have upgraded, this had never happened in the previous version, even with lots of files.

---

<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: [April 14, 2021, 4:41am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/13 "2021-04-14T04:41:00Z")

</div>

What has changed since you ran the script successfully, the last time?  
Did you check the files for consistency?  
Did you check your file system?  
Do you have other programs that access the selected files at the same time?

I ask all these questions because I cannot reproduce the failure, I just tried your script successfully with 26857 files.  
What I see is the "Exporting Tag Information" dialogue which sits there for some 15 seconds) and then the progress bar shows the current state.  
So: apparently, MP3tag even with 3.06d runs your script, it works with a bigger quantity of files, it produces an output.  
That is why I assume it has something to do with your local environment and it would be nice if you could supply some more evidence on top of

> [@jrsousa2](#):
>
> It totally stopped working

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 15, 2021, 4:59am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/14 "2021-04-15T04:59:29Z")

</div>

Omg, I know right? I have no idea why it stopped working, and now even some basic Vbscript (that i created within SAS to execute with cscript and itunes) are failing, not sure if the problem is related.  
I have no idea what causes these things to break, and am in the process of setting up a VM running Windows 10 and an older version of iTunes just to see if it would work, as the script is pretty simple.

I will keep trying and if I find the answer I will post an update here, it must be my environment, I already checked for viruses (but windows 10 is rare to get viruses.)

---

<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: [April 15, 2021, 5:06am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/15 "2021-04-15T05:06:49Z")

</div>

If it worked before and now it does not ... what has changed in the meantime?  
I would still check the files for problems.  
Here is [a list of such tools](https://community.mp3tag.de/t/how-to-check-files-for-errors/44633).

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 15, 2021, 5:17am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/16 "2021-04-15T05:17:41Z")

</div>

Good point, I will try this for sure, who knows some rogue tag is making the whole thing crash. I have been replacing some non western characters (such as Cyrillic) from the file names since they don't work with ANSI encoded Vb scripts. There must be something to it.

On my environment nothing has really changed right before this export script started to fail (and the VB runs fine in iTunes, only it's not doing what it HAS to do, which is crazy.)

I just checked my programs list, and can see that I installed iTunes Folder Watch (an app that adds new files placed in a given folder to iTunes), and just before that, on april-9 I had installed version 3.06a of mp3tag.

There are no other major changes, just those. But let me run the integrity check on the tags, who knows.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 15, 2021, 5:22am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/17 "2021-04-15T05:22:47Z")

</div>

I just learned how to use Mp3val, will run this on my entire library (55k, now 57k, thanks Vuze).  
I just did a test on some files that don't play correctly, and found 3 of 27 have problems!

Thanks so much for this, it's very late, I will report my findings here tomorrow.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 17, 2021, 12:31am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/18 "2021-04-17T00:31:10Z")

</div>

It didn't work. Circa 10% of my tracks (10k) had their tags fixed, however, that still didn't fix the issue with the export script, which continues to be erratic.

Also, my Vb scripts in itunes continue to fail (they run, but the expected actions don't happen, and this is the very first time I had this issue in a long time I've been using Vb scripts with itunes).

Another super annoying issue in itunes that might be related to this issue (just a guess though), is that when I close the pest, the pest reopens. I have to close it multiple times for the pest to stay put. How I hate Apple!!! Not saying everything is their fault, but iTunes for windows is simply a garbage, maybe their excuse is that Windows is not their cup of tea. But still, iTunes is the only program that hangs or crashes in Windows 10, no other program will crash and close (since the XP version, no program does that anymore).

I wonder what happened, the only possible explanation is the installation of iTunes folder watch.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [April 17, 2021, 12:34am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/19 "2021-04-17T00:34:59Z")

</div>

I have a question, if I downgrade mp3tag to the previous version, would I lose all of the formulas that i built in the latest version?

---

<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: [April 17, 2021, 5:10am UTC](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809/20 "2021-04-17T05:10:23Z")

</div>

No. Settings, actions, exports and so on are kept.  
But I doubt that going back to an older version of mp3tag will solve your problem.  
But by returning to an older version, where the export still worked, you could at least rule out Mp3Tag as a possible cause of the changed behavior.

[Next page](https://community.mp3tag.de/t/the-export-tags-feature-fails-for-55k-files/52809.md?page=2)
