Error 000539: Error running expression: rcexec()

1422
3
01-31-2021 08:41 PM
oscar_duran
New Contributor

Hello,

I am having this issue when I try to run the raster calculator using the following syntax" Con("%Road_Dist.tif%"<=150,0,1)

I believe it has to do with python, but I can't figure the issue. Thanks in advance.

 

oscar_duran_0-1612154213456.png

 

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

your error messages has references to python 2.7 and python 3.7. 

Are you running this in arcmap or arcgis pro?

Did you type in the calculation for the raster calculator or validate otherwise?

 


... sort of retired...
0 Kudos
oscar_duran
New Contributor

I installed ArcGIS Desktop, but I also had the option to install ArcGIS Pro. This issue took place as I was running ArcMap.

I used the calculator in the raster calculator for the expressions, I only typed the commas. I don't know how to validate.

Thanks.

0 Kudos
RachelGomez
New Contributor II

Solution 
Ensure or modify the Python expression in the Calculate Field pane to have the correct field name(s) before clicking Run. In this example, the expression references the correct field name of "Number_of_Interns", instead of the misspelled "Number_of_Intern".

Regards,

Rachel Gomez

0 Kudos