# Error when Running fish code (created in Flac3D V5) with Flac3D V7

**URL:** <https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633>\
**Category:** FLAC3D\
**Created:** [August 15, 2024, 8:03pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633 "2024-08-15T20:03:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yperalta](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yperalta](https://forum.itascainternational.com/u/yperalta)\
**Post date:** [August 15, 2024, 8:03pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633/1 "2024-08-15T20:03:20Z")

</div>

Hi  
I am getting the following error when Running fish code (created in Flac3D V5) with Flac3D V7 : “Unrecognized word. You cannot create a new symbol except as part of a direct assignment.  
Make certain the variable name is correct.  
You can use the GLOBAL statement to explicitly declare a variable if you are certain it will be assigned a value before use.”

Have someone encountered the same error?. Do you know how could I fix it?.

Thank you in advance.

Yessica

---

<div class="post-metadata">

**Author:** ![ddegagne](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/ddegagne/32/55_2.png) [@ddegagne](https://forum.itascainternational.com/u/ddegagne)\
**Post date:** [August 15, 2024, 9:05pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633/2 "2024-08-15T21:05:16Z")

</div>

Hi Yessica,

In v7 we started differentiating between local and global variables. See: [Global — FLAC3D 7.0 documentation](https://docs.itascacg.com/flac3d700/common/docproject/source/manual/scripting/fish_scripting/statements/global.html?highlight=global).

Note that there is an automatic data file “converto” tool in v7.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/2X/7/7961a2118bf31d2447697019f1238baf04e433aa.png)

This is a 3DEC reference, but it works the same in FLAC3D: [3DEC 7 for 3DEC 5.2 Users — FLAC3D 7.0 documentation](https://docs.itascacg.com/flac3d700/3dec/docproject/source/3dec7for52ers.html?node7929#conversion-of-5-2-and-older-data-files).

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![yperalta](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yperalta](https://forum.itascainternational.com/u/yperalta)\
**Post date:** [August 15, 2024, 9:20pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633/3 "2024-08-15T21:20:44Z")

</div>

Thank you for your response. I did click FLAC3D command Conversion but it did not work because it showed 13 errors

---

<div class="post-metadata">

**Author:** ![ddegagne](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/ddegagne/32/55_2.png) [@ddegagne](https://forum.itascainternational.com/u/ddegagne)\
**Post date:** [August 15, 2024, 9:31pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633/4 "2024-08-15T21:31:16Z")

</div>

Were most of the errors associated with commands related to setting constitutive models or properties?

This is quite common as some of the property names aren’t unique and the conversion is unsure what the correct name is. In that case, it’s usually just a matter of tidying up the orange warning text by removing all the possible property names aren’t needed.

---

<div class="post-metadata">

**Author:** ![yperalta](https://avatars.discourse-cdn.com/v4/letter/y/73ab20/32.png) [@yperalta](https://forum.itascainternational.com/u/yperalta)\
**Post date:** [August 15, 2024, 9:46pm UTC](https://forum.itascainternational.com/t/error-when-running-fish-code-created-in-flac3d-v5-with-flac3d-v7/1633/5 "2024-08-15T21:46:30Z")

</div>

I am not able to see where the errors are. This is an example of my code:  
set fish call 0 @\_zonebased\_bd\_flac3d  
set @\_zonebased\_bd\_flag = 1 ; set \_zonebased\_bd\_flag = 1 to update bd at the first step of any sequence of cycles // set \_zonebased\_bd\_flag = 0 to NOT update bd  
set @\_zonebased\_ptgc\_flag = 1; set \_zonebased\_pt\_flag = 1 to update pp and temperature at the first

then when the .fis file is getting the error at line in if \_zonebased\_bd\_flag = 1:  
fish define \_zonebased\_bd\_flac3d  
;  
if \_zonebased\_bd\_flag = 1  
;  
if \_aa\_flag = 0
