# ROOT error: "name" not found

**URL:** <https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894>\
**Category:** Software Support\
**Tags:** root\
**Created:** [May 7, 2021, 9:45am UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894 "2021-05-07T09:45:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukezw](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lukezw](https://community.naturalcapitalalliance.org/u/lukezw)\
**Post date:** [May 7, 2021, 9:45am UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/1 "2021-05-07T09:45:00Z")

</div>

Hello  
I have encountered some immediate trouble trying to run ROOT. I am getting the Required Field: ““name” not found” error. However, the name field is present in the csv and I cannot detect any spaces or other potential issues.

I upload an example here of the impact potential raster table csv where ROOT is not recognising the name field.

[impact\_potential.csv](https://community.naturalcapitalalliance.org/uploads/short-url/3FzSDV7nneYJtEep5V7KGLChx8g.csv) (128 Bytes)

As a side note, I see ROOT is running on Invest version 3.3.3. I presume this is the latest version of ROOT since I recently downloaded it from the Nat Cap website?

Thanks in advance for any help.

Luke

---

<div class="post-metadata">

**Author:** ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)\
**Post date:** [May 7, 2021, 8:32pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/2 "2021-05-07T20:32:42Z")

</div>

Hi @lukezw,

Are you sure that the error is referring to the Impact Potential Raster Table and not one of the others (Spatial Weight Maps Table, Composite Factors Table, Objectives Table, or Targets Table)? They all require a column labeled “name”.

The build that’s [downloadable from here](https://naturalcapitalproject.stanford.edu/software/root) is the latest version.

-Jesse

---

<div class="post-metadata">

**Author:** ![lukezw](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lukezw](https://community.naturalcapitalalliance.org/u/lukezw)\
**Post date:** [May 10, 2021, 1:52pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/3 "2021-05-10T13:52:05Z")

</div>

Hi Jesse

Thanks for the response.

The error seemed to be something to with the .csv files having UTF-8 with BOM encoding. After ensuring all the files were just UTF-8, I was able to get to a point where the UI accepted all my inputs and I was able to hit run.

However, the model is throwing up an error straight away and again is saying KeyError: ‘name’. I have attached the log as well as all the .csv files as I cannot determine the cause of the issue.

[root-log-2021-05-10–15\_10\_35.txt](https://community.naturalcapitalalliance.org/uploads/short-url/bHLl3ZT4ozT9kghuGLNvvGq498R.txt) (4.5 KB)  
[composite\_factors.csv](https://community.naturalcapitalalliance.org/uploads/short-url/ipbmthJebw0ST8IEQTmUvJQgnUh.csv) (55 Bytes)  
[impact\_potential.csv](https://community.naturalcapitalalliance.org/uploads/short-url/qlZmi4idhB6VjQSfcJb8KBVTIcZ.csv) (131 Bytes)  
[objectives.csv](https://community.naturalcapitalalliance.org/uploads/short-url/qwewhEbLcNLdE0oGKDxFeBrJa7K.csv) (46 Bytes)  
[spatial\_weights.csv](https://community.naturalcapitalalliance.org/uploads/short-url/2yRAhVcXTF4jPX4miDfgKsH0FCE.csv) (79 Bytes)  
[targets.csv](https://community.naturalcapitalalliance.org/uploads/short-url/4UaxfBBE408sZoezpENXz8J3RZG.csv) (40 Bytes)

---

<div class="post-metadata">

**Author:** ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)\
**Post date:** [May 10, 2021, 5:31pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/4 "2021-05-10T17:31:56Z")

</div>

Thanks for providing your input tables and log file @lukezw. Yes, the CSV files need to be [ASCII, UTF-8, or Signed UTF-8 encoded](http://releases.naturalcapitalproject.org/invest-userguide/latest/getting_started.html?highlight=utf#formatting-your-data).  
I see that your Objectives Table “objectives.csv” does not include the required column header “name”. Instead, the first column is labeled “objective”. Please try adjusting that and let us know if it solved the issue or not.

-Jesse

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [May 10, 2021, 5:55pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/5 "2021-05-10T17:55:25Z")

</div>

Just to clarify about the table encoding, @lukezw if you’re running the version of ROOT that’s built using InVEST 3.3.3, it’ll be safest to save your table as ASCII. The UTF-8 BOM isn’t handled correctly until a much later version of InVEST. This will likely be resolved in a future version of ROOT.

---

<div class="post-metadata">

**Author:** ![lukezw](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lukezw](https://community.naturalcapitalalliance.org/u/lukezw)\
**Post date:** [May 10, 2021, 7:06pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/6 "2021-05-10T19:06:18Z")

</div>

Thanks both for your helpful responses.

I thought I had converted everything to UTF-8 but I see I had missed one or 2 of the csv’s. I will try the ASCII route to be safest when back at work.

Jesse I saw the user guide calls for “name” to be used in the first column of the Objectives Table. However the GUI would not accept this when I was specifying model inputs and instead gave an error saying the column “Objective” wasn’t found. This confused me but the only way I could get the GUI to accept the table was by changing the “name” column to “Objective”.

---

<div class="post-metadata">

**Author:** ![lukezw](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lukezw](https://community.naturalcapitalalliance.org/u/lukezw)\
**Post date:** [May 11, 2021, 12:13pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/7 "2021-05-11T12:13:35Z")

</div>

Update I have managed to get the model to run further after fixing the encoding.

**NB:** I did have to use ‘objective’ rather than ‘name’ in the header of the first column of the objective table, contrary to what the user guide says.

The model ran for several minutes before throwing up the following error: ValueError encountered: total size of new array must be unchanged (see link to Google Drive link to large log file).

Sorry if it’s something obvious but I can’t figure out the problem. Based on the user guide, I do see that my number of SDUs is quite large at just under 4000 but I’m not sure whether this would be the issue.

[https://drive.google.com/file/d/1V8P6E\_PL\_n9h1rMpgoMAH4HE36sXOrdK/view?usp=sharing](https://drive.google.com/file/d/1V8P6E_PL_n9h1rMpgoMAH4HE36sXOrdK/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)\
**Post date:** [May 11, 2021, 8:53pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/8 "2021-05-11T20:53:22Z")

</div>

@lukezw thanks for letting us know that you had to label the column “objective” instead of “name”. @jdouglass is this a bug or should the UG be updated accordingly?

@lukezw, I’m glad that changing the encoding of the CSVs allowed the model to run further. Unfortunately, I am unfamiliar with the new error you’re receiving, but hopefully someone with more experience using ROOT can assist you further if needed.

Do all of your spatial inputs (rasters and vectors) have the same projection? Do all rasters (the mask and each impact potential raster) have identical extents and cell sizes?

-Jesse

---

<div class="post-metadata">

**Author:** ![lukezw](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lukezw](https://community.naturalcapitalalliance.org/u/lukezw)\
**Post date:** [May 12, 2021, 11:42am UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/9 "2021-05-12T11:42:40Z")

</div>

Hello Jesse

Turns out increasing the SDU size allowed the model to run successfully (still while using “objective” instead of “name” in the objective table). Thanks for all your pointers along the way.

Luke

---

<div class="post-metadata">

**Author:** ![Yongxiu](https://avatars.discourse-cdn.com/v4/letter/y/6f9a4e/32.png) [@Yongxiu](https://community.naturalcapitalalliance.org/u/Yongxiu)\
**Post date:** [August 10, 2021, 5:01pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/10 "2021-08-10T17:01:44Z")

</div>

Hello, do you encounter this question? Thank you

 ![微信图片_20210811004824](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/a/a4879643f464481611d9f6f5c1b7f85cc445b107.png)

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [August 11, 2021, 1:50pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/11 "2021-08-11T13:50:20Z")

</div>

HI @Yongxiu ,

This looks like a different issue related to ROOT than what was posted in this thread. Would you mind posting again your issue in a new thread? Thanks.

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [August 11, 2021, 1:50pm UTC](https://community.naturalcapitalalliance.org/t/root-error-name-not-found/1894/12 "2021-08-11T13:50:34Z")

</div>

Closed on August 11, 2021, 1:50pm UTC


