Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [error-000539]

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

0
votes
0answers
39 views

ModelBuilder and Raster Calculator Error 000539?

I'm currently working in ModelBuilder trying to use the Raster Calculator and I keep getting the error message 000539. The error according to ESRI says it's an invalid pathway. What I have circled ...
0
votes
2answers
72 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('!...
0
votes
2answers
118 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
1answer
45 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 ...
1
vote
1answer
282 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. ...
0
votes
1answer
91 views

ExecuteError: ERROR 000539: Error 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: ...
0
votes
0answers
163 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" + "...
0
votes
1answer
46 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 '...
0
votes
1answer
227 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 ...
1
vote
1answer
55 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 ...
1
vote
1answer
50 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 ...
5
votes
1answer
201 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 ...
-1
votes
1answer
149 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 ...
1
vote
1answer
246 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 ...
1
vote
0answers
76 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 ...
1
vote
1answer
209 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\...
2
votes
0answers
159 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) ...
1
vote
0answers
203 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 ...
2
votes
1answer
91 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 ...
2
votes
2answers
2k 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 ...
0
votes
1answer
237 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 ...
1
vote
1answer
551 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 ...
0
votes
1answer
100 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 ...
3
votes
1answer
537 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")...
1
vote
1answer
340 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&...
1
vote
1answer
413 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")) ...
1
vote
0answers
236 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 ...
1
vote
0answers
385 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, ...
3
votes
1answer
335 views

Get multiple values from summary tables in Model builder

I working with ModelBuilder and I have two summary statistics tools, with 'case fields' that have multiple sum values, I want to use these sum values from one table and divide the sum values from ...
1
vote
1answer
217 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
0answers
394 views

Dividing the values of one rasters on a cell-by-cell basis

I have been trying to divide an ArcGIS (ver 10.5) generated raster layer by a constant and continue to receive errors (Error - 000539). My first attempt was to simply divide the raster by my ...
0
votes
1answer
94 views

Using ouput data variables in subsequent calculation within ArcGIS ModelBuilder?

Using ArcGIS Desktop 10.3.1, I have two simple polygon shapefiles, each with just a single feature. I'm new at ModelBuilder, and have 2 tasks: calculate the acreage within each of the two shapefiles,...
2
votes
1answer
1k views

Calculating centroids of polygon using ArcPy?

I am trying to calculate the centroids of a polygon and add the x- and y-coordinate to their respective fields: arcpy.env.workspace = r"C:/..." input_fc = "shapefiles/precincts_v.shp" arcpy....
1
vote
1answer
122 views

If/Then python script in Field Calculator not working

I'm working in Modelbuilder. I have a polygon in which I calculate the shape centroid in decimal coordinates (field called LONG_CENTR). Then I add a field (called FAJA) and I want to use a Field ...
3
votes
2answers
297 views

Python script in ArcMap Field Calculator giving Error 000539: SyntaxError: Invalid Syntax?

I've been trying to calculate this expression for a field in an attribute table in ArcMap 10.4.1, and keep getting the following error: Error 000539: SyntaxError: invalid syntax (expression, line ...
1
vote
1answer
90 views

Radiance to reflectance error ArcMap

I have been trying and failing for some time to convert the radiance to refectance by following step 4 in this tutorial I have tried everything I can think of but my knowledge is limited. Would ...
4
votes
1answer
254 views

arcpy.CalculateField_management doesn't recognize variable in code block

I found a useful field calculator code block that I'm trying to add to a custom python tool. It works great in the manual field calculator; however, when inserted into the code block text to be used ...
1
vote
2answers
154 views

Printing name of field with highest value?

I am trying to find the field with highest area value in each row of the 5 fields. Now I have found the highest value. But it doesn't really do me any good if I couldn't find which field is that max. ...
3
votes
1answer
86 views

Python parser of ArcGIS Field calculator returns ERROR 000539: Error running expression?

I like field calculator and use it often, however found something very disturbing today when attempted to do this on a table of 3D feature class. def abc(shp,id): return shp.length -----------------...
1
vote
1answer
187 views

Correct expression syntax for filling field with string in calculate field in ArcPy?

I am attempting to populate fields on two different feature classes with different strings that I have stored in a list. I would like to just put the strings and feature classes into a for loop, but ...
2
votes
1answer
542 views

ArcGIS raster calculator: ERROR 000539: Error running expression: rcexec() <type 'exceptions.ImportError'>: No module named collections

My raster is in the GRID format, source type is continuous and pixel type is floating point (32bit). If i use the raster calculator ("dem" *1000 or "dem >= 2m" (to highlight certain heights) it ...
2
votes
1answer
84 views

ArcGIS Field Editor if/else syntax with python

I am just starting with Python and ArcGIs so here is my question: I have the column "DB_Low" (Type "Long") and want to fill a new column by changing values. The new column will be a Float-Type field. ...
4
votes
2answers
551 views

ERROR 000539: Error running expression

I am trying to calculate my End_Streets field within two joined tables. I want to remove the redundant SECONDARYN value from the STREETS field. " & ".join(!IntersectAndEnds2.Streets!.split(" &...
0
votes
1answer
75 views

Implementing output file extension considering type of workspace in ModelBuilder?

In Modelbuilder, I am trying to implement a condition regarding the type of workspace: if this is a GDB, the output FC should not have an Extension (%Scratch%\Nodes_%NameFC%) If this is a Folder, ...
3
votes
3answers
819 views

Replace occasional Space with Underscore using Python parser of ArcGIS Field Calculator?

I am creating a model which will give me two string values, one which reads exactly what is in a field and another which automatically replaces any Space with an "_". I have used Calculate Value tool, ...
2
votes
1answer
2k 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. ...
2
votes
1answer
561 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
1answer
55 views

Adding field with prices based on ground use using ArcGIS Spatial Analyst?

I need to calculate the least cost path for a water pipe. The layers I have now are land use, slope, soil type and protected natural parks. Now my teacher has given me the prices of building a water ...
1
vote
1answer
579 views

Meaning of ERROR 000539: Error running expression: rcexec() <type 'exceptions.ImportError'>: No module named os?

In Raster Calculator using: (FocalSt_meanDEMtif5-FocalSt_minDEMtif1) / (FocalSt_maxDEMtif2-FocalSt_minDEMtif1) What is the meaning of ERROR 000539: Error running expression: rcexec() : No module ...
11
votes
1answer
2k views

Using ArcPy with ArcGIS Pro and ArcGIS Desktop on same machine?

I'm just trying out ArcGIS Pro for the first time and I had to change my PYTHONPATH to python34 ArcGIS Pro is now working without crashing every time I open the Analysis tab... However now when I try ...