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
36 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,...
GBG's user avatar
  • 9,207
-1 votes
1 answer
35 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:
Mason's user avatar
  • 17
0 votes
1 answer
81 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 ...
pixidust's user avatar
-1 votes
1 answer
83 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. ...
Matthew Aldrovandi's user avatar
0 votes
2 answers
249 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 ...
rweber's user avatar
  • 51
3 votes
3 answers
309 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 (...
User1974's user avatar
  • 1,114
0 votes
0 answers
217 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,...
MattS's user avatar
  • 117
1 vote
1 answer
323 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, ...
Vadim's user avatar
  • 115
3 votes
1 answer
52 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 ...
Darren De Lange's user avatar
1 vote
1 answer
291 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 ...
Fatih Enes's user avatar
1 vote
1 answer
256 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?
Mr Swagat Kumar Panda's user avatar
2 votes
1 answer
192 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, ...
knickpoint waterfall's user avatar
2 votes
2 answers
397 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 ...
Lara's user avatar
  • 45
2 votes
1 answer
216 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. ...
Latonya Williams's user avatar
1 vote
1 answer
217 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 ...
Jennifer Secker's user avatar
0 votes
0 answers
43 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) ...
Susmita's user avatar
  • 31
6 votes
1 answer
686 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 ...
532's user avatar
  • 61
0 votes
1 answer
632 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" - &...
Leena's user avatar
  • 1
1 vote
1 answer
179 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/...
qu4ntumrush's user avatar
2 votes
1 answer
257 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 ...
gydemov's user avatar
  • 63
-1 votes
1 answer
138 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 ...
Monitotier's user avatar
1 vote
1 answer
533 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 ...
Keelin's user avatar
  • 13
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 ...
יעל לרנרמן's user avatar
0 votes
1 answer
167 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 :...
Paul Colomb's user avatar
1 vote
1 answer
149 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 ...
M.Kroeze's user avatar
1 vote
1 answer
836 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 ...
Anna K's user avatar
  • 65
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 ...
Bedasa's user avatar
  • 9
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 ...
Soof's user avatar
  • 33
0 votes
2 answers
341 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('!...
Gross's user avatar
  • 3
0 votes
2 answers
364 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 ...
Anna Riling's user avatar
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 ...
j.stanfield's user avatar
1 vote
1 answer
2k views

ArcPy Raster Calculator error " 'str' object has no attribute 'save' "

I converted a model into python script and tried to run it. It gave me an error when it gets to the raster calculator process.The message says "str" object has no attribute "save". See picture below. ...
Rachel's user avatar
  • 79
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: ...
Robot's user avatar
  • 11
0 votes
0 answers
478 views

Raster Calculator - Error 000539: Error running expression

I'm trying to simply combine 5 different rasters in raster calculator to do a site suitability analysis using this map algebra expression: "bo_reclasstemph3" + "bo_reclassph" + "bo_raster_precip" + "...
Annab31's user avatar
0 votes
1 answer
161 views

Converting Angles in a File Geodatabase Table - via Field Calculator's Python

In a file geodatabase table, I have an attribute called 'NEAR_ANGLE' created via the "Generate Near Table" tool that I'd like to convert to a 0-360 degrees format. I've created an attribute called '...
ZinogreHunter's user avatar
0 votes
1 answer
273 views

If-then-else Statements and string errors?

I'm defining a string field based on contents of another string field. Simply put, if the contents of field A contain this value, then fill field B with this text. It throws a string related error ...
zemken12's user avatar
  • 157
1 vote
1 answer
140 views

Using ModelBuilder with Field Calculator gives SyntaxError?

I am brand new to coding, have no background at all. Basically I have about 200 tables with the same info listed under slightly different attribute table headings and I am trying to rename them to ...
morenicoles's user avatar
1 vote
1 answer
178 views

CalculateField_management, python Toolbox

I am trying to fill a field and I am using arcpy's CalculateField_management function. I want to fill the new field with the name of the shapefile, so I am using arcpy.Describe. But when I run the ...
MikV89's user avatar
  • 343
5 votes
1 answer
681 views

Calculating Polsby-Popper Score Using ArcGIS Pro Field Calculator gives ERROR 000539?

This operation is using the Field Calculator in ArcGIS Pro 2.1. I am trying to calculate the Polsby-Popper Score for Congressional Districts. I have calculated the Geodesic Area and Geodesic ...
SteveC's user avatar
  • 745
-1 votes
1 answer
364 views

Python Script error in function ERROR 000539: SyntaxError

I am receiving the following error; is it a simple syntax issue with the Calculate field because I'm not seeing anything missing. ExecuteError: ERROR 000539: SyntaxError: unexpected EOF while parsing ...
Purplepeopleeater's user avatar
1 vote
1 answer
1k views

Calculate field Error 000539

I am brand new to the world of GIS and I have never used Python. I tried running a calculate field command within the geoprocessing toolbox (not python) and I got an error. I did a bunch of split ...
J.S.'s user avatar
  • 13
1 vote
0 answers
145 views

Map algebra raster calculator

I am attempting a GIS tutorial on land change analysis between two rasters. I have set the extent and raster analysis to what I have been given and used the expression below. However, it is not ...
Gowri Shanmugam's user avatar
1 vote
1 answer
1k views

Error - Not defined - Arcpy

I'm trying to add a part of my filename into a field that i'd created, but it comes with the following error: Traceback (most recent call last): File "Z:\04 - Temp\Charles\NDVI_tempo\...
Charlera's user avatar
  • 173
3 votes
0 answers
350 views

ERROR 000539 from ModelBuilder with Raster Calculator? [closed]

I'm trying to do a math operation in raster calculator using the rasters from other two raster calculators. My calculation is a simple NDVI formula: (rastcalc4 - rastcalc3)/(rastcalc4 + rastcalc3) ...
Charlera's user avatar
  • 173
1 vote
0 answers
380 views

Using Calculate Field to get acreage in ArcGIS ModelBuilder? [closed]

Update: Problem Solved I fixed it. In the Calculate Field Tool within Model Builder, I entered "!shape.area@acres!" . That resolved the issue and the model now produces the same results as the python ...
xtian_prz's user avatar
2 votes
1 answer
219 views

Exporting attachments from FGDB and populating field with picture path

I am trying to export attachments from fGDB and populate fields with the picture link path. I created a script following these instructions http://support.esri.com/en/technical-article/000014520 ...
Vincent Law's user avatar
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 ...
val's user avatar
  • 631
0 votes
1 answer
475 views

Reclassifying slope using ArcGIS raster calculator?

I have a slope raster in degrees and would like to reclassify it the layer with the raster calculator. my criteria: slope between 15 & 20 receive a 1 slope greater than 20 receive a value of 2 ...
ziggy's user avatar
  • 4,440
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 ...
Vale's user avatar
  • 941
3 votes
2 answers
370 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 ...
Aarjen Peeters's user avatar