Select to view content in your preferred language

Compute Accuracy for Pixel Classification Error 002517

689
4
11-11-2025 11:11 AM
Ed_
by MVP Regular Contributor
MVP Regular Contributor

I am getting this error while the tool on a single classification 

ERROR 002517: This thematic raster has pixel values which are not in the attribute table.

However the pixel values are the same as the attribute table 

Ed__0-1762888111407.pngEd__1-1762888138637.png

 

This error does not occur when running the tool on a multiclass prediction raster for example when the Class Name and Class Value are NWL and WL and 1 and 2 respectively. 

 

How can this this be fixed? Is the tool not designed for single class predictions?

Question | Analyze | Visualize
0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

What is your nodata value?

Your question/post and this

BUG-000139826 for ArcGIS Pro

are the only two links that come up with reference to the error and the tool being used.


... sort of retired...
0 Kudos
Ed_
by MVP Regular Contributor
MVP Regular Contributor

Hi Dan, hope all is well and thank you for response, so the no data value was empty, so I changed it to 255 as mentioned in the bug. However, the error still persists.

Interestingly though, in this case as mentioned in the post (This error does not occur when running the tool on a multiclass prediction raster for example when the Class Name and Class Value are NWL and WL and 1 and 2 respectively.), the raster has empty no data value as well, but the tool runs fine with no such error. 

This tells me, there might be some other bug in the tool. 

Question | Analyze | Visualize
0 Kudos
DanPatterson
MVP Esteemed Contributor

Tech Support is your best bet.

Although I can see how a multiclass prediction woud work for an input with a single class since there is nothing to assess the results of the prediction (eg mis-classifications etc)


... sort of retired...
PavanYadav
Esri Regular Contributor

hi @Ed_ 

This error typically occurs because the accuracy assessment process requires a comparison between at least two classes to build a confusion matrix. If the raster is 'constant' (only contains one value) or contains background pixels not defined in the attribute table, the tool won't have the data it needs to complete the math. Adding a background class to your data might resolve the error and allow the tool to run as intended

Pavan Yadav
Product Engineer at Esri
AI for Imagery
Connect with me on LinkedIn!
Contact Esri Support Services
0 Kudos