# Sometimes state files do not read the specific paths they have been given?

**URL:** https://discourse.paraview.org/t/sometimes-state-files-do-not-read-the-specific-paths-they-have-been-given/5862
**Category:** ParaView Support
**Created:** [November 21, 2020, 7:22pm UTC](https://discourse.paraview.org/t/sometimes-state-files-do-not-read-the-specific-paths-they-have-been-given/5862 "2020-11-21T19:22:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AhmedSalih3d](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ahmedsalih3d/32/14109_2.png) [@AhmedSalih3d](https://discourse.paraview.org/u/AhmedSalih3d)
#### Post date: [November 21, 2020, 7:22pm UTC](https://discourse.paraview.org/t/sometimes-state-files-do-not-read-the-specific-paths-they-have-been-given/5862/1 "2020-11-21T19:22:50Z")

</div>

How come that in some cases when I specify a statefile with a list of files I know exist and have verified, it still defaults to only reading the files which are stated in it initially?

It works so fine when I do it through the gui, but the moment I try to call it programmatically it keeps sticking with the initial files. How to solve this?

---

<div class="post-metadata">

### Author: ![AhmedSalih3d](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ahmedsalih3d/32/14109_2.png) [@AhmedSalih3d](https://discourse.paraview.org/u/AhmedSalih3d)
#### Post date: [November 21, 2020, 10:19pm UTC](https://discourse.paraview.org/t/sometimes-state-files-do-not-read-the-specific-paths-they-have-been-given/5862/2 "2020-11-21T22:19:44Z")

</div>

```
LoadStateDataFileOptions='Choose File Names'

```

You have to add this line to your “LoadState” functionality, else it will not behave properly. This can sometimes happen if you in your state file select stuff from different folders when making it initially.
