# Problem in persistence of variables when using 'include project'

**URL:** https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568
**Category:** Discussion
**Created:** [September 5, 2017, 5:55am UTC](https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568 "2017-09-05T05:55:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![atraversi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b9e5f3/32.png) [@atraversi](https://www.finalbuilder.com/forums/u/atraversi)
#### Post date: [September 5, 2017, 5:55am UTC](https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568/1 "2017-09-05T05:55:58Z")

</div>

Hello  
I see a problem in FB 8 regarding the persistence of the variables.  
I have project A with a variable that autoincrements and persists. Each time I run A, the variable is OK.  
But I also have project B, which invokes A with “Include Project” and it happens that the variable of A is never recorded, it always has the same value. Viewing the output, the variable autoincrement but the persistence is not done, then in the following execution always has the same value.  
  
I saw reports of this problem in very old versions, like 4.  
  
I am using FinalBuilder 8.0.0.2268 on Windows 10.  
  
Regards,  
Angel

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 6, 2017, 3:48am UTC](https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568/2 "2017-09-06T03:48:26Z")

</div>

Hi Angel,   
  
 We have located the issue and are addressing it. The error was different to the one in previous version of FinalBuilder. The issue here seems to be the project information file was not being correctly re-read on run of the projects. It was only being read once on load. We will have a build for you very soon.

---

<div class="post-metadata">

### Author: ![atraversi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b9e5f3/32.png) [@atraversi](https://www.finalbuilder.com/forums/u/atraversi)
#### Post date: [September 6, 2017, 2:42am UTC](https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568/3 "2017-09-06T02:42:03Z")

</div>

> Posted By [Jason Smith](https://www.finalbuilder.com/users/jason-duffy-smith) on 05 Sep 2017 08:48 PM  
> Hi Angel,   
>   
> We have located the issue and are addressing it. The error was different to the one in previous version of FinalBuilder. The issue here seems to be the project information file was not being correctly re-read on run of the projects. It was only being read once on load. We will have a build for you very soon.

  
  
Great Jason!  
&nbsp;  
Thank you very much,  
Angel

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 6, 2017, 11:11am UTC](https://www.finalbuilder.com/forums/t/problem-in-persistence-of-variables-when-using-include-project/2568/4 "2017-09-06T11:11:30Z")

</div>

Hi Angel,   
  
As promised, the installer below has the persistent variable functionality for included projects corrected.   
  
[http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2283.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2283.exe)   
  
Please note that if your sharing variable namespaces, and the parent project has a variable of the same name as the persisted variable in the included project the persisted value will not be loaded. This is so that variable overloading will still work as intended.   
  
- Parent Project   
- var persistantVar = 20   
---- Child Project   
---- var persistantVar \<= this variable will be given 20 when namespaces are shared. It will load its persisted value when they are not shared.

```
[http://downloads.finalbuilder.com/d…0\_2283.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2283.exe)
```
