Questions tagged [error-000539]

Use this tag for Questions which are related to the "000539" error returned by ArcGIS Desktop and ArcGIS Pro.

Filter by
Sorted by
Tagged with
1 vote
1 answer
580 views

ArcGIS Raster Calculator Error 000539

I am getting the error-000539: Error running expression: rcexec(). I've seen that other people have this same issue but I am not sure how to fix mine. I just want to average the values of 10 rasters, ...
1 vote
1 answer
296 views

Error 000539 in ArcGIS Desktop?

I am using Raster Calculator in ArcGIS 10.4.1 in order to substract two raster surfaces. However, when I substracted the two surfaces an error 000539 was appeared! I tried to adjust the two surfaces ...
0 votes
2 answers
263 views

Iterating through Calculate Field using ArcPy

I have three shapefiles as points that I am trying to create new fields for and fill in the fields with a string descriptor. I am then trying to merge all three point files deleting every field but ...
0 votes
1 answer
169 views

Using Raster calculator gives ERROR 000539

I'm new with ArcGIS. I would like to do a calculate of NDWI. So I'm using Arctoolbox => Spatial analyst tools => Map Algebra => Raster calculator. But when I'm trying to perform it, I get this error :...
1 vote
2 answers
298 views

ERROR 000539: Error running expression:rcexec ()

I have got this error when tried to make slope less than 20 degree through Raster Calculator. One day before I installed Python 2.7.13 and after, this error appeared. When I delete the downloaded ...
1 vote
1 answer
43 views

ArcMap field calculator expression failing with ERROR 000539 [closed]

I am using ArcMap 10.7. I have an attribute table with 6 different columns of short integer data. These columns store the birth day, birth month, and birth year, as well as the death day, death month,...
-1 votes
1 answer
40 views

ERROR 000539 when trying to calculate a field and using code block [closed]

I was given these instructions for an assignment: However when I am trying to calculate the field I keep getting this error: I am trying to calculate the field to get something like this:
0 votes
1 answer
89 views

Not sure why I am getting a raster error (Error 000732) when incorporating parameter weights in my raster calculation?

Not sure if it is an error on my part, or Esri. I am just running a model in ModelBuilder that incorporates the weights for four of the parameters in the raster calculation. It seems to run find ...
1 vote
1 answer
358 views

Calculating field when iterating file geodatabase using "if field exists" statement in ArcMap 10.3

I need to calculate certain field in every feature class within a file geodatabase in case this field exists. If it doesn't, I want iterator to skip appropriate feature class. I'm building a model, ...
-1 votes
1 answer
107 views

Getting failure in Calculate Field

After today's SW update I keep getting this failure, not sure why, but I am thinking it's the expression. I have no idea how to change the expression to something that makes sense if that's the issue. ...
1 vote
1 answer
323 views

Failed to create a Python Toolbox to automate operation in ArcGIS Pro

I wrote my code in Jupyter notebook and it works through the Jupyter environment and as well as on Python terminal inside of the ArcGIS Pro. I am trying to convert it into a toolbox to use it for ...
2 votes
1 answer
5k views

Getting ValueError: max() arg is an empty sequence on a Python Script in the Field Calculator in ArcMap

I have a script that populates a FacilityID Field on a Attribute table in the Field Calculator but when I run the script below I am getting a error. Python Script: def autoInc(): import arcpy, os ...
3 votes
1 answer
53 views

Automating date creation in field calculator

I am trying to calculate a reinspection date for surveys using the field calculator in ArcGIS Pro. I am using a predefined survey date and risk zone for this calculation. The risk zones are LOW, MED ...
3 votes
0 answers
185 views

Arcpy code only works when run in two chunks, not as one piece [closed]

I have a weird thing happening with my script. When I copy/paste it into the python cmd line within ArcMap, I get error messages. However, if I run the first part, then copy in the very last line by ...
3 votes
3 answers
322 views

Use Calculate Field GP tool to update feature coordinates

ArcMap 10.7.1 (Oracle SDE.ST_GEOMETRY): I want to use the Calculate Field GP tool to update the coordinates of a polyline FC's shape column. I have a script that works in a standalone Python IDE (...
0 votes
0 answers
228 views

Syntax for Field Calculator in ModelBuilder of ArcGIS Pro

I'm migrating a legacy ModelBuilder tool that has a VB code block in it to ArcGIS Pro 2.9. It's a straightforward issue: The model runs a Calculate Field process. If the field is not null, do nothing,...
1 vote
4 answers
4k views

Using Raster calculator in Modelbuilder ArcGis 10

I am using Modelbuilder to calculate several rasters with different parameters for each grid cell. One of the final steps is to calculate the log of one of the rasters using Raster calculator. ...
3 votes
2 answers
393 views

Splitting shapefile based on part of field in attribute table using ArcPy?

I'm new to Python and I need a script that can split my huge shapefile based on a certain attribute. SO what I have is a big shapefile (over 3M records) with a field named "NISCODE". In this code are ...
2 votes
1 answer
1k views

Normalizing raster using raster calculator raises TypeError

In ArcGIS 10.1 I'm trying to normalize a section of a DEM (digital elevation model) from original values to values ranging from 0 to 100. First I clipped the raster DEM with an irregulary shaped ...
2 votes
1 answer
138 views

Python codeblock to remove numeric characters from a column not working

I am trying to make use of a codeblock found in this thread: Removing numeric characters from alphanumeric value in field calculation? I put this code into the pre-logic script field of the field ...
6 votes
1 answer
724 views

Defining a Python function to calculate a value using multiple fields

I am using the Calculate Field tool in ArcGIS Pro to get it to calculate fire hydrant flow data. I need data from the table fields PitotPressure, COE, and HydrantOrificeFlowed in an attribute table to ...
1 vote
1 answer
272 views

ArcMap 10.6; ERROR 000539: Error running expression: rcexec()

While running a tool box (connectivity index) I am receiving an error at the end; ERROR 000539: Error running expression: rcexec()!. Can anyone help me with it?
2 votes
1 answer
194 views

Calculating ratio between "rows" in ArcGIS field calculator

I have a problem similar to Dividing two or more rows in single attribute table? but that is for QGIS whereas I have to perform it in ArcGIS. I have to calculate the Ratio between rows (sequentially, ...
2 votes
2 answers
422 views

Calculate field in a joined table in ArcPy

EDIT: I was able to solve the problem with the dictionary approach suggested by @BERA. However, I still don't get why it does not work with the CalculateField method. I'm trying to calculate a field ...
2 votes
1 answer
236 views

Calculating NDVI

I would like to calculate the NDVI for an area to identify vegetation cover over a 32 year period using. However, I am having challenges with the calculations I have attempted with Raster Calculator. ...
1 vote
2 answers
1k views

ExecuteError: ERROR 000539 while running expression rcexec()

from arcpy import * arcpy.CheckOutExtension('Spatial') arcpy.env.workspace=r'D:\work\USA' #pathway to all rasters in workspace directory rasters = arcpy.ListRasters('*.tif') # Local variables: ...
1 vote
1 answer
237 views

Using field calculator to find fields in row that have same value as reference field then return string gives ERROR 000539

I am trying to create a field "conflict", and the condition is when other fields in that row have the same maximum number the function returns "Yes". I am having trouble making ...
2 votes
1 answer
271 views

Using RasterCalculator in ArcGIS Pro ModelBuilder gives ERROR 000539

As part of a larger model for iterating lake bathymetry interpolations, I'm essentially trying to establish the lake altitude as a new base level (Z=0) for the DEM surrounding the lake. (picture below ...
2 votes
1 answer
1k views

ERROR 000539: Invalid Field !FULLNAME

I am very new to Python and my first attempt hasn't gone too well. I'm trying to overwrite a field that is a spatial join of a couple of features in order to, in the end, generate a beginning and ...
0 votes
0 answers
44 views

ArcMap shows error 000539 for NDSI calculation

I want to run Raster Calculator to calculate NDSI from atmospherically corrected Landsat images, but it shows error 000539 and some other errors. I downloaded bulk data (Landsat collection 2 level-2) ...
0 votes
1 answer
667 views

Raster calculator ERROR 000539 when converting values to be from 0-1 using ArcGIS Pro

I am getting this error when trying to make values of GHI from 0-1 I only add a layer then I run the raster calculator as attached. This is my code : ("Global horizontal irradiation" - &...
1 vote
1 answer
2k views

Raster calculation with multiple rasters using ArcGIS Desktop?

I have three rasters: Raster1: resolution 25x25, floating point. Value of "1" when it is true, value of -9999 when it is false (only this two values) Raster2: resolution 25x25, floating point. Only ...
1 vote
1 answer
193 views

Raster Calculator Python Error 00539 for friction surface

I am trying to convert a slope raster to a friction surface with values based on Tobler's Hiking Function in ArcGIS Pro, but I get an error message I am not sure is about the formula syntax or file/...
0 votes
2 answers
76 views

Getting error 000539 when calculating TWI?

I'm trying to calculate the twi from my area using LN((flowaccu+1)*900/Tan(sloperadian). My first result was wrong because my area is an endhoreic basin. So I made a flow accumulation raster based on ...
-1 votes
1 answer
140 views

ArcPy - iteration to calculate the mean of specific fields to use it as input for further calculations in the same feature/table

I am working with ArcPy under Python 2.7. I have a bunch of shapefiles that have the same structure. I want to iterate through all of them to add a field (A1_norm) and filling it with the ...
1 vote
1 answer
1k views

Raster calculator giving error 000539

I'm trying to do Subtraction between two rasters. and I'm getting this error 000539 : Error message from Python. Description The calculation used by the Calculate Field or Calculate Value tool is ...
2 votes
1 answer
5k views

ArcMap raster calculator error 000539

Using ArcMap 10.3, I am trying to perform map algebra on a raster with 2013 annual PRISM precipitation for the U.S. (http://prism.oregonstate.edu/recent/). The raster has 1 band an is floating point. ...
1 vote
2 answers
1k views

ArcGIS Raster Calculator won't work in main model

I've created a sub-model in ArcGIS, which stretches my raster data to new values. The strange thing is, that the model works, if I run it itself - as soon as I implement it in the main model, I get ...
1 vote
1 answer
570 views

ERROR 000539: NameError: name 'prevX' is not defined

I'm trying to use the field calculator to input data into a field that I previously created, but it keeps saying that prevX is not defined in line 9. I'm very new to python and I don't really ...
1 vote
1 answer
155 views

Errors when filling/replacing NoData values with Raster Calculator FocalStatistics

I have the following raster, which has many NoData values. Only the NoData values that are in the ocean need to be filled. I made a seperate raster with all the NoData cells that are in the ocean. I ...
1 vote
1 answer
2k views

Getting Error 000539 from Raster Calculator?

I am new to Arc and 10.2 but can not seem to figure out why this won't work. Executing: RasterCalculator Con(("SLOPE_SLO.tif" >= .015) & ("SLOPE_SLO.tif" <= .15,1,0)) D:\GEOG_480\Final2\...
3 votes
1 answer
12k views

ArcGIS Raster Calculator fails with Error 000539

I have been using Raster Calculator in ArcMap 10.2, today it started returning error 000539 for all actions. Previously it had worked fine. I have not made any change ot my ArcGIS, Python, or Windows ...
1 vote
1 answer
865 views

NameError: name '**' not defined in ModelBuilder Calculate Value

This question follows up on Crianopa's answer https://gis.stackexchange.com/a/107687/126329 - I am attempting to do just this, but my model fails at the Calculate value stage. Using the expression ...
0 votes
0 answers
63 views

Getting ERROR 000539 running Raster Calculator in ModelBuilder?

I am trying to run Raster Calculator in ModelBuilder, however I am getting what looks like two errors after my model reaches a certain step: ERROR 000539: Error running I'm not sure if it is a ...
3 votes
3 answers
4k views

Concatenating strings from two fields using Python in ArcMap Field Calculator?

I'm new to Python scripting and I don't understand what is wrong with this code. I want to concatenate the string values from GRID1MIL and GRID100K. I've created a text column MGRS to begin with. I ...
1 vote
4 answers
370 views

Calculations in if statement

I want to perform a simple calculation with the Field Calculator using this piece of script (note that all the elif statements are attempts for another syntax and non of the worked): def change(...
0 votes
2 answers
363 views

Concatenate fields (double and string) to create address using arcpy

fields: STNUM = double STRDIR = string STRNAME = string STRTYPE = string Tuple and s.format I have tried: arcpy.CalculateField_management (newparcelsUTM, "SiteAddress","{0} {1} {2} {3} ".format('!...
2 votes
1 answer
2k views

if/then with VBScript in ArcGIS Field Calculator giving Error 000539: SyntaxError: invalid syntax?

What is wrong with this VBscript in the field calculator? ColumnC= if [ColumnB] > 0 then [ColumnC] = [ColumnA] / [ColumnB] endif Each time I receive this syntax error message: Error ...
0 votes
2 answers
365 views

Error 000539 running multiple con expressions in raster calculator in ModelBuilder?

I am using Raster Calcuator in ModelBuilder with ArcMap 10.5. I used Get Raster Properties to extract Standard Deviation and Mean from a previously calculated raster. I would like to use Raster ...
0 votes
1 answer
86 views

Getting Python Script Error 000539?

I'm attempting to create a tool that gives me the next available manhole number in a particular system. The manhole numbering structure looks like 1124-060E and therefore is a string field. Since ...