# Failure to load project in FB 8.0.0.1221 due to StringPos action persistence

**URL:** https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601
**Category:** Bugs
**Created:** [October 6, 2015, 10:28am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601 "2015-10-06T10:28:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [October 6, 2015, 10:28am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/1 "2015-10-06T10:28:54Z")

</div>

I created a small utility FB8 project and when reloading the next day it failed. The issue was with the line marked below:  
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action.string.pos  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; actiontypeid = {163622B4-B7EE-4045-B1AA-B97DF9DB0BE0}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; customactionname = “String Pos”  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabletimeout = false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = {CADA547F-C160-44D0-8C82-2C3B54FB92AA}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; impersonateusenetcredonly = false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; impersonateuser = false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; terminateontimeout = true  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeoutlength = 2  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.inputvariable = ListItem  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.usinginputvariable = True  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.outputvariable = SepPos  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.firstindexof = True  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.searchstring = = &nbsp; **&nbsp;\<\<\<\<\<\<\<\< This caused the failure due to no quotes**  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.startindex = 0  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.failifnotfound = True  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.casesensitive = True  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as.autodescription = “Find first position of ‘=’ in the variable ‘%ListItem%’”  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end  
  
A quick edit to add quotes and it was loading again.

---

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [October 6, 2015, 10:44am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/2 "2015-10-06T10:44:13Z")

</div>

Just found another example of a non quoted string, this time in an ini read action:  
  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action.ini.read  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; defaultvalue = \> &nbsp; &nbsp; **\<\<\<\< &nbsp;Needs quotes**  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description = “Read registry import suffix”  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; expandvariablesinvalue = false  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id = {D63F5D22-0FEE-4A9A-9003-864934DE7A79}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inifile = %MO\_IniFile%

---

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [October 6, 2015, 11:09am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/3 "2015-10-06T11:09:48Z")

</div>

and another example, this time in comment actions:  
  
&nbsp; &nbsp; &nbsp; action.comment  
&nbsp; &nbsp; &nbsp; begin  
&nbsp; &nbsp; &nbsp; &nbsp; actiontextcolor = 16711680  
&nbsp; &nbsp; &nbsp; &nbsp; description = ======== **&nbsp;\<\<\<\< Here&nbsp;**  
&nbsp; &nbsp; &nbsp; &nbsp; id = {CA17E900-F9CC-4AC0-9EBA-4DA7C9604AEB}  
&nbsp; &nbsp; &nbsp; end

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 6, 2015, 11:30am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/4 "2015-10-06T11:30:02Z")

</div>

Ouch, looking into it.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 7, 2015, 4:38am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/5 "2015-10-07T04:38:25Z")

</div>

Hi Simon   
  
 Thanks for reporting this, I was able to reproduce it. The problem is we should have been escaping =   
  
 This build has the fix :   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_1242.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_1242.exe)   
  
 As you have already discovered, you can fix your project file by putting quotes around the value (the parse then treats it as a quoted string which is fine), or you can escape the = using =   
  
 We’ll have an official update out early next week, but if you are able to test the above build and confirm you are able to save/load (after fixing) your projects that would be appreciated.

---

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [October 7, 2015, 12:38pm UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/6 "2015-10-07T12:38:29Z")

</div>

Thanks for the fast turnaround.   
  
That fixes two of my example issues, but not the one with a “\>”:  
  
&nbsp; &nbsp; action.ini.read  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; defaultvalue = \> &nbsp; &nbsp;&nbsp; **\<\<\<\< &nbsp;Needs escaping**  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description = “Read registry import suffix”  
&nbsp; &nbsp;&nbsp;  
As with the equals sign this appears to affect anywhere its used in a string field or variable.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 7, 2015, 3:57am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/7 "2015-10-07T03:57:27Z")

</div>

Hi Simon   
  
 Can’t believe I missed that one! I added some comments to the lexer code to remind myself (and the other devs) to ensure the escaping code is kept in sync.   
  
 This build will deal with the \>   
 [http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_1244.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_1244.exe)

---

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [October 7, 2015, 4:53am UTC](https://www.finalbuilder.com/forums/t/failure-to-load-project-in-fb-8-0-0-1221-due-to-stringpos-action-persistence/3601/8 "2015-10-07T04:53:30Z")

</div>

Hi Vincent,  
  
Thanks - that fixed it.&nbsp;  
  
Regards,  
  
Simon
