# Error exporting .SFV

**URL:** https://community.mp3tag.de/t/error-exporting-sfv/18325
**Category:** Export
**Created:** [October 13, 2016, 10:44am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325 "2016-10-13T10:44:25Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 13, 2016, 10:44am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/1 "2016-10-13T10:44:25Z")

</div>

I am getting this error,  
 ![](http://s10.postimg.org/v60oslky1/screenshot_1448.png)

Trying it in folder containing .m4b files.  
Please help.

---

<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 13, 2016, 12:14pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/2 "2016-10-13T12:14:02Z")

</div>

Looks like an authorization error.  
Check actual owner of the file and access permissions to folder and files.

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 13, 2016, 3:18pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/3 "2016-10-13T15:18:27Z")

</div>

> [@ohrenkino](#):
>
> Looks like an authorization error.  
> Check actual owner of the file and access permissions to folder and files.

Hi, thanks for your time.  
I ran the application as admin, and having full rights to edit the files in that folder.

---

<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 13, 2016, 3:27pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/4 "2016-10-13T15:27:01Z")

</div>

> [@vvikkass](#):
>
> Hi, thanks for your time.  
> I ran the application as admin, and having full rights to edit the files in that folder.

So you are not the owner?!  
To my experience, it is not enough to be admin, you either have to be the owner or full access has to be granted to everybody.

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 13, 2016, 5:36pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/5 "2016-10-13T17:36:45Z")

</div>

> [@ohrenkino](#):
>
> So you are not the owner?!  
> To my experience, it is not enough to be admin, you either have to be the owner or full access has to be granted to everybody.

Ohh I see, contacting my VPS person.

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 13, 2016, 7:20pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/6 "2016-10-13T19:20:20Z")

</div>

OK so I have finally worked with sfv, but now there seems another problem. I am using these placeholders in the file,

```
%_filename_ext% %_file_size% %_crc%

```

....and it outputs only a checksum data for single .m4b file. Can you help sir?

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 13, 2016, 7:52pm UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/7 "2016-10-13T19:52:15Z")

</div>

ok I did this and it worked.

```
$loop(%_filename_ext%)%_filename_ext% $loop(%_file_size%)%_file_size% $loop(%_crc%)%_crc%
$loopend()$loopend()$loopend()

```

Now can I add %\_crc% value in the end of filename? for example like this:  
001-chaosmage-7639b96d.m4b

---

<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 14, 2016, 7:14am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/8 "2016-10-14T07:14:05Z")

</div>

QUOTE (vvikkass @ Oct 13 2016, 23:52) \<{POST\_SNAPBACK}\>

ok I did this and it worked.

```
$loop(%_filename_ext%)%_filename_ext% $loop(%_file_size%)%_file_size% $loop(%_crc%)%_crc%
$loopend()$loopend()$loopend()

```

....

  
I get a little dizzy from all these loops.  
IMHO the inner loops are not necessary as you get only one file size and only one crc value per file, there is nothing to loop.  
So,  
$loop(%\_filename\_ext%)%\_filename\_ext%,%\_file\_size%, %\_crc%  
$loopend()  
should do just fine.

You could export the result to batch file instead of a simple text file and then execute the batch file.  
The batch file would use command shell commands to rename.  
$loop(%\_filename\_ext%)ren %\_filename%.mp4 %\_filename%-%\_crc%.mp4  
$loopend()  
Or you import the data from the text file into the mp4 file again into a user-defined field and then rename the file with the convert function Tag-Filename or an action of the type Format value.

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 14, 2016, 9:00am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/9 "2016-10-14T09:00:34Z")

</div>

> [@ohrenkino](#):
>
> I get a little dizzy from all these loops.  
> IMHO the inner loops are not necessary as you get only one file size and only one crc value per file, there is nothing to loop.  
> So,  
> $loop(%\_filename\_ext%)%\_filename\_ext%,%\_file\_size%, %\_crc%  
> $loopend()  
> should do just fine.
> 
> You could export the result to batch file instead of a simple text file and then execute the batch file.  
> The batch file would use command shell commands to rename.  
> $loop(%\_filename\_ext%)ren %\_filename%.mp4 %\_filename%-%\_crc%.mp4  
> $loopend()  
> Or you import the data from the text file into the mp4 file again into a user-defined field and then rename the file with the convert function Tag-Filename or an action of the type Format value.

THanks a lot, you sir are a genius. 😃

One thing I want to ask, can MP3TAG run .bat file or will I have to run it manually? Also is their a way to save that batfile outside the audio folder. Enjoining it with %\_foldername% is saving it inside the folder.

Thanks for all the help.

---

<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 14, 2016, 9:09am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/10 "2016-10-14T09:09:04Z")

</div>

> [@vvikkass](#):
>
> THanks a lot, you sir are a genius. 😃
> 
> One thing I want to ask, can MP3TAG run .bat file or will I have to run it manually? Also is their a way to save that batfile outside the audio folder. Enjoining it with %\_foldername% is saving it inside the folder.
> 
> Thanks for all the help.

If you save it somewhere else than the current folder, you have to add the path to the file. Otherwise it will not work.  
If the file has always the same name, you can add it as a tool ...

So I would prefer the data re-import into the tags and then rename the file with the Convert function or an action.

---

<div class="post-metadata">

### Author: ![vvikkass](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/d26b3c/32.png) [@vvikkass](https://community.mp3tag.de/u/vvikkass)
#### Post date: [October 14, 2016, 9:37am UTC](https://community.mp3tag.de/t/error-exporting-sfv/18325/11 "2016-10-14T09:37:08Z")

</div>

> [@ohrenkino](#):
>
> If you save it somewhere else than the current folder, you have to add the path to the file. Otherwise it will not work.  
> If the file has always the same name, you can add it as a tool ...
> 
> So I would prefer the data re-import into the tags and then rename the file with the Convert function or an action.

Thanks a lot sir, I am having new issue while saving cover. Will open a new thread about it.

Thanks a lot again for your precious time. Most of the things got resolved.
