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-000989]

Use this tag for Questions which are related to the "000989" error returned by an ESRI software code.

1
vote
0answers
30 views

Field calculator returning ERROR 000989? [closed]

I'm trying to split a field of street addresses (field name "PROP_STREE") so that it returns only the house number (so "123 Main St" would become "123"). Following the solution provided Field ...
0
votes
1answer
499 views

ArcMap field calculator error 000989 indention error?

I'm trying to make a four character output based on concatenating a single character field (in1) with either 1 or 2 zeros, depending on the length of in2, and then concatenating that . I'm getting an ...
0
votes
1answer
104 views

ArcGIS Field Calculator returning error 000989? [duplicate]

I am trying to calculate a percentage of a field based off the value of another field. if damage = x then return the value of field !mrkt_imprv! * y y = percentage value my code is below its ...
0
votes
0answers
49 views

python syntax error in field calculator [duplicate]

I'm trying to strip the last character in a string if when the string is split by spaces the last element has a length of 1. I then want to put that letter in front of the rest of the other elements. ...
0
votes
2answers
224 views

Error 000989 Python Syntax error in Field Caclulator

Using ArcMap 10.4 here and having some trouble running some python code in the field calculator. I am trying to populate one text field based on the value of another text field. Here is what I am ...
0
votes
2answers
81 views

Arcpy python field calc syntax error variable creation

I am fairly new to python. I'm trying to set this function into a variable, but i can't seem to get it to work. Can you take a look at my script? import arcpy arcpy.env.workspace = "M:\Parks\HQ\...
1
vote
1answer
72 views

Parsing error: in Conditional raster calculator?

I was trying to calculate Soil types based on the FAO's guidline using the Con tool in raster calculation with ArcGIS 10.3. from three layers (silt, clay & sand). But, I got an error saying: ...
1
vote
2answers
230 views

running scripts of codeblocks in arcpy with syntax error

I am having a trouble in running the following scripts: import arcpy arcpy.env.workspace = r'C:\MyData\my_geodatabase.gdb' max = 123 min = 0 mean_s = 12.3 expression1 = "test(!mydensity!)" codeblock1 ...
2
votes
1answer
1k views

Concatenate fields in Field Calculator using Python [duplicate]

I'm trying to concatenate fields together and used this post as a guide: <Adding hyphen in ArcGIS Field Calculator to merge two columns?> ; however, I'm still getting a 989 parsing error. Here's ...
1
vote
1answer
535 views

Using decimals in ArcGIS Raster Calculator tool?

I would like to create a new raster by using the following regression equation in the Raster Calculator tool in ArcGIS 10.3: Outputras=0,000826345+(0,000203494*"Roads_density.tif") ("Roads_density....
2
votes
1answer
638 views

ArcGIS Python syntax error using nested if else

I am trying to use the field calculator in ArcMap 10.2 to fill an empty field based on the contents of two exiting fields usint this python script in the Pre-Logic Script Code. def myfunc(legend,...
2
votes
2answers
933 views

ArcGIS Calculate Value tool - Python syntax error

I have a feature class within a file geodatabase. I am using the "Iterate row selection" iterator in Model Builder to read each row in the FC. I am then using the "Get Field Value" tool to read the ...
2
votes
1answer
459 views

ERROR 000989 Issue with Python Script and Field Calculating distance between two long lat points

very new to scripting and I have been struggling with my script for a while. I'm not sure why it doesn't work in field calculator. I am trying to calculate a list of distance between two long lat ...
2
votes
1answer
1k views

Python Syntax Error 000989 when running Python Snippet of successful geoprocess?

I am having an issue with a simple python snippet. Here's the background: I wanted to include an additional step in a nightly update script that replaces characters in a field that simply do not play ...
1
vote
2answers
183 views

If-Then-Else statement in ModelBuilder has improper syntax

I have a model that converts a road network into a different schema for a different program. In one step of the model I am converting values for a field "Class". I wrote an If-Then-Else statement in ...
1
vote
2answers
603 views

Autoincrementing Python Script is over writing all fields versus just fields that are null

Using ArcMap and the Field Calculator I have a python script that should autoincrement the FacilityID field if it is null. It works the first time through but the second run causes it to overwrite ...
1
vote
1answer
4k 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. EDIT: Python Script: def autoInc(): import ...
2
votes
2answers
603 views

Field Calculate with a function written in python within a larger python script

I'm writing a python program where I need to field calculate using a python function. The function takes two strings; one used for an if statement and the other to become an integer complete a simple ...
6
votes
3answers
6k views

Understanding syntax for CalculateField_management in ArcPy?

I need to use CalculateField_management in a Python script, and the calc expression needs to concatenate a runtime variable, a string, and a field (string) value. I have searched all over for ...
8
votes
2answers
6k views

Troubleshooting ERROR 000989 Python syntax error from ArcGIS Field Calculator?

I'm trying to used the Python syntax in ArcGIS 10's field calculator and am thoroughly confused. So far the most basic calculations are failing me, and I don't understand why. I'm trying to create a ...