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
0 votes
0 answers
20 views

Failing to correctly refer to raster layer in Raster calculator (ERROR 000539) using ArcGIS Pro

Here is my function in Raster Calculator: Tan((Raster("MCE: TWI\Slope"))*1,570796/90) MCE: TWI\Slope is the location for my Slope-layer. Looks simple, but I keep getting the error 000539. It ...
user avatar
  • 57
3 votes
3 answers
85 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 (...
user avatar
  • 754
0 votes
0 answers
71 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,...
user avatar
  • 107
1 vote
1 answer
184 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, ...
user avatar
  • 91
3 votes
1 answer
32 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 ...
user avatar
1 vote
1 answer
110 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?
user avatar
2 votes
1 answer
132 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, ...
user avatar
2 votes
2 answers
198 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 ...
user avatar
  • 45
2 votes
1 answer
109 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. ...
user avatar
1 vote
1 answer
68 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 ...
user avatar
0 votes
0 answers
29 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) ...
user avatar
  • 21
6 votes
1 answer
339 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 ...
user avatar
  • 61
0 votes
1 answer
216 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" - &...
user avatar
  • 1
1 vote
1 answer
107 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/...
user avatar
2 votes
1 answer
124 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 ...
user avatar
  • 63
-1 votes
1 answer
116 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 ...
user avatar
1 vote
1 answer
315 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 ...
user avatar
  • 13
1 vote
1 answer
456 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 ...
user avatar
0 votes
1 answer
152 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 :...
user avatar
1 vote
1 answer
88 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 ...
user avatar
1 vote
1 answer
570 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 ...
user avatar
  • 65
0 votes
0 answers
56 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 ...
user avatar
  • 9
0 votes
2 answers
58 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 ...
user avatar
  • 33
0 votes
2 answers
196 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('!...
user avatar
  • 3
0 votes
2 answers
324 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 ...
user avatar
0 votes
1 answer
77 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 ...
user avatar
1 vote
1 answer
1k 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. ...
user avatar
  • 69
1 vote
2 answers
533 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: ...
user avatar
  • 11
0 votes
0 answers
373 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" + "...
user avatar
0 votes
1 answer
106 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 '...
user avatar
0 votes
1 answer
267 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 ...
user avatar
  • 125
1 vote
1 answer
111 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 ...
user avatar
1 vote
1 answer
122 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 ...
user avatar
  • 301
5 votes
1 answer
560 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 ...
user avatar
  • 710
-1 votes
1 answer
335 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 ...
user avatar
1 vote
1 answer
883 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 ...
user avatar
  • 13
1 vote
0 answers
140 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 ...
user avatar
1 vote
1 answer
944 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\...
user avatar
  • 173
3 votes
0 answers
304 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) ...
user avatar
  • 173
1 vote
0 answers
355 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 ...
user avatar
2 votes
1 answer
186 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 ...
user avatar
3 votes
3 answers
3k 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 ...
user avatar
  • 621
0 votes
1 answer
404 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 ...
user avatar
  • 4,065
1 vote
1 answer
1k 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 ...
user avatar
  • 941
3 votes
2 answers
321 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 ...
user avatar
0 votes
1 answer
201 views

Calculating Field Chosen by arcpy.GetParameterAsText(1) gives ERROR 000539?

I add a parameter CampoConfere = arcpy.GetParameterAsText(1) which get a field from Tabela_Base to calculate in the next steps from the code. The Scripts works well until the Calculate Field Step when ...
user avatar
3 votes
1 answer
1k views

Replacing multiple characters at once

I have a problem with replacing in field calculator. For some reason my Python parser is not working. So I'm going to use VB and having tonns of this Replace([field],"x","y") Replace([field],"z","a")...
user avatar
  • 33
1 vote
1 answer
668 views

Embedded quotes in arcpy.CalculateField_management expression

I'm using arcpy.CalculateField_management to populate a field. The expression: "'https://anystate.gov/someportal/DisplayQueryResults.aspx?Prompts=Spill%20Number="!ID!"&Database=OfficeDocs&...
user avatar
  • 23
1 vote
1 answer
530 views

ERROR 00539: Error running expression:rcexec()

I'm trying to run a batch operation on raster calculator. The expression I use is this: (Float("92011033_B2.tif") - Float("92011033_B5.tif")) / (Float("92011033_B2.tif") + Float("92011033_B5.tif")) ...
user avatar
1 vote
1 answer
288 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 ...
user avatar