# ValueError: Values in the LULC raster were found that are not represented in the Carbon Pools table

**URL:** <https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437>\
**Category:** Software Support\
**Tags:** carbon\
**Created:** [January 24, 2024, 1:54am UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437 "2024-01-24T01:54:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![17387825736](https://avatars.discourse-cdn.com/v4/letter/1/d78d45/32.png) [@17387825736](https://community.naturalcapitalalliance.org/u/17387825736)\
**Post date:** [January 24, 2024, 1:54am UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/1 "2024-01-24T01:54:54Z")

</div>

#### Hello, I have a problem running the carbon model.The error message for the model starts here"01/24/2024 09:18:54 pygeoprocessing.geoprocessing ERROR exception encountered in raster\_calculator Traceback (most recent call last):"

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [January 24, 2024, 1:13pm UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/2 "2024-01-24T13:13:48Z")

</div>

Hello @17387825736, and welcome!

Please provide the entire log file (.txt format) that the model creates in your Workspace, which provides us with more information to help debug - thanks!

~ Staci

---

<div class="post-metadata">

**Author:** ![17387825736](https://avatars.discourse-cdn.com/v4/letter/1/d78d45/32.png) [@17387825736](https://community.naturalcapitalalliance.org/u/17387825736)\
**Post date:** [January 25, 2024, 4:59am UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/3 "2024-01-25T04:59:53Z")

</div>

Hello, the model running results and process are as follows,Could you please show me what the mistake is  
[invest.txt](https://community.naturalcapitalalliance.org/uploads/short-url/rraUYdsO7QSQnOXwskOyn9kRp4g.txt) (5.4 KB)

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [January 25, 2024, 1:22pm UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/4 "2024-01-25T13:22:07Z")

</div>

Thanks for posting your log file. Here is the error:

> ValueError: Values in the LULC raster were found that are not represented under the ‘lucode’ column of the Carbon Pools table. The missing values found in the LULC raster but not the table are: [-9999].

This error has been discussed many times on this forum, so [please use the Search function](https://community.naturalcapitalalliance.org/search?q=Values%20in%20the%20LULC%20raster%20were%20found%20that%20are%20not%20represented%20under%20the%20%27lucode%27%20column) to look at these posts, and if they do not solve your issue, let us know.

~ Stacie

---

<div class="post-metadata">

**Author:** ![17387825736](https://avatars.discourse-cdn.com/v4/letter/1/d78d45/32.png) [@17387825736](https://community.naturalcapitalalliance.org/u/17387825736)\
**Post date:** [January 27, 2024, 6:24am UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/5 "2024-01-27T06:24:30Z")

</div>

I’m sorry, but I still don’t understand how to solve this problem. My data was extracted by creating fishing nets on arcgis, and then the future land use was run by flus model. However, such problems arose when I added the invest model

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [January 29, 2024, 1:21pm UTC](https://community.naturalcapitalalliance.org/t/valueerror-values-in-the-lulc-raster-were-found-that-are-not-represented-in-the-carbon-pools-table/4437/6 "2024-01-29T13:21:21Z")

</div>

@17387825736 this error indicates that your land use map has some pixels with a value of -9999, but that value does not appear in the carbon pool table’s “lucode” column. I’m guessing that the value -9999 is not a valid land use code, but is supposed to be your NoData value. If this is the case, then you’ll need to reclassify -9999 to represent NoData, then try running the model again.

If this does not help, please post your carbon pool table and land use raster and we’ll take a look.

~ Stacie
