# Trouble loading vff file

**URL:** <https://discourse.slicer.org/t/trouble-loading-vff-file/35608>\
**Category:** Support\
**Tags:** slicerrt\
**Created:** [April 19, 2024, 2:08am UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608 "2024-04-19T02:08:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [April 19, 2024, 2:08am UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608/1 "2024-04-19T02:08:43Z")

</div>

When I try to import my vff file into 3D slicer, I get the following error message:

- LoadVffFile: The values for the origin must each be greater than or equal to 0.
- LoadVffFile: Incorrect parameters or required parameters that were not set, vff file failed to load. The required parameters are: rank, type, format, bits, bands, size, spacing, origin, rawsize, data scale, data offset, and title.
- Warning: In C:\D\N\S462-E-b\SlicerRT\VffFileReader\Logic\vtkSlicerVffFileReaderLogic.cxx, line 104
- vtkSlicerVffFileReaderLogic (000001E09458D120): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘batch’
- Warning: In C:\D\N\S462-E-b\SlicerRT\VffFileReader\Logic\vtkSlicerVffFileReaderLogic.cxx, line 104
- vtkSlicerVffFileReaderLogic (000001E09458D120): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘gel’
- Warning: In C:\D\N\S462-E-b\SlicerRT\VffFileReader\Logic\vtkSlicerVffFileReaderLogic.cxx, line 104
- vtkSlicerVffFileReaderLogic (000001E09458D120): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘modification\_history’

In order to resolve these errors, I got rid of the headers (batch, gel, and history) and manually put the origin to 0 0 0 since in the original vff file, the origin was -79.75 -79.75 -79.75. However, when I do this, I get the following error message:

- LoadVffFile: The end of the file was reached earlier than specified.

And my vff file looks like the below image, which is not what it’s supposed to look like.

 ![vff screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/a/6a6f7b0f6bf678c5623258a982cc8012f6c53771.png)

I’ve also tried setting the origin to 79.75 79.75 79.75 and got the same result.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 22, 2024, 12:53pm UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608/2 "2024-04-22T12:53:15Z")

</div>

I think you use an old version of Slicer, because I fixed this error in January, see

> [@Unable to open vff file](https://discourse.slicer.org/t/unable-to-open-vff-file/34265):
>
> I have Slicer 5.6.1, but I’m unable to open the vff file despite having the SlicerRT extension installed. The following is the error log: LoadVffFile: The values for the origin must each be greater than or equal to 0. LoadVffFile: Incorrect parameters or required parameters that were not set, vff file failed to load. The required parameters are: rank, type, format, bits, bands, size, spacing, origin, rawsize, data scale, data offset, and title. Warning: In vtkSlicerVffFileReaderLogic.cxx, lin…

Please update to the latest version and try again. Let is know how it goes.

---

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [April 23, 2024, 6:18pm UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608/3 "2024-04-23T18:18:10Z")

</div>

Yes, I’m using an older version of Slicer because when I use the latest version, I am unable to perform registration. I’ve also posted a [link](https://discourse.slicer.org/t/unable-to-open-vff-file/34265) about this.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 29, 2024, 11:00am UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608/4 "2024-04-29T11:00:49Z")

</div>

The link you posted seems to be the VFF file loading issue, which has been fixed.

If your main problem now is about registration, please let us know about that in a different thread.

---

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [April 29, 2024, 5:39pm UTC](https://discourse.slicer.org/t/trouble-loading-vff-file/35608/5 "2024-04-29T17:39:40Z")

</div>

It seems like I posted the incorrect link.  
I’ve already posted on the forum regarding the errors I’ve been having when performing registration [here](https://discourse.slicer.org/t/error-when-performing-registration-in-slicelets-gel-dosimetry-analysis/35478)
