Questions tagged [runtimeerror]

A error that occurs whilst a program is running.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

SetNull function problem

I am trying to calculate a sum for a set of raster but before I need to disregard No Data values (that are equal to -9999 for my rasters) by using SetNull function. It gives an error. What could be ...
0
votes
0answers
15 views

Getting Error for Search Cursor in Arcpy module

I am trying to use Search Cursor on Data. Following code is running for Numeric field without any error. cursor=arcpy.da.SearchCursor("Wells","*",""""Depth"=30""") for i in cursor: print i[1] ...
1
vote
2answers
118 views

PyProj giving RuntimeError: b'argument not numerical or out of range'?

I have this string: string = '+proj=lcc +a=6371200.0 +f=0.0 +pm=0.0 +x_0=5632642.22547 +y_0=4612545.65137 +lon_0=-107.0 +lat_1=50.0 +lat_2=50.0 +lat_0=50.0 +units=m +axis=enu +no_defs' Then I do: ...
0
votes
1answer
62 views

in cursor.updateRow(row) RuntimeError: Object invalid or no longer set

I'm running an arcpy code in IDLE that update a field in shapefile. After updating it get the following error: Traceback (most recent call last): File "C:/Users/10/Desktop/test.py", line 21, in ...
-1
votes
1answer
99 views

Search Cursor Cannot open Feature Class [closed]

import arcpy pld3GDB = 'C:\\Users\\bro81520\\Documents\\ArcGIS\\PLDV3_SPC_ODN_315_25Sep.gdb\\PLDV3_SPC_ODN_315_25Sep.gdb\\WO_HIERARCHY' list = [] fields = ['VENDOR_WO_ID', 'NFID', 'ISFDA'] with ...
0
votes
1answer
226 views

RuntimeError: Object: Error in executing tool when running Union

I have a list of a 2 layers (nfhl_fld_haz_features, prelim_fld_haz_features) and a feature class (master_merge) that I want to perform a union on: wkflw2_union = arcpy.Union_analysis([master_merge, ...
1
vote
3answers
243 views

Using arcpy.da.UpdateCursor to updateRow gives RuntimeError: row contains bad value?

I have a fishnet grid (polygon SHP), and all the little fishnets have a "Zone_ID." There are generally several dozen to a few hundred fishnet polys associated with each Zone_ID. I'm trying to number ...
0
votes
0answers
39 views

Updating Polygon only on multiple selection, not single, using ArcPy?

I have a script that selects all addresses within a polygon (also multi polygons), and then sums a column "Anzahl" from those selected addresses. The Sum is then written to the Polygon in the column ...
0
votes
1answer
67 views

Error in Geotools renderer

Here is my Java code that generates an error from Geotools renderer: public class LandmarkLayer { protected static final String LANDMARK_FEATURE_NAME = "landmark"; protected static final StyleFactory ...
1
vote
1answer
245 views

Creating loop to reproject multiple rasters in ArcPy gives ERROR 999999?

I am trying to batch reproject multiple raster files using arcpy. Here is the code I have so far: # Import system modules import arcpy import os # Set environment settings arcpy.env.workspace = "H:...
-2
votes
1answer
220 views

Visual C++ runtime error

I had a working ArcGIS installation on my computer. Suddenly one day this error occurred. Runtime error! in Microsoft Visual C++ Runtime Library . I have reinstalled ArcGIS, reinstalled all the ...
1
vote
2answers
1k views

How to fix Import arcpy ImportError: cannot import name _remove_dead_weakref [closed]

When I try to import arcpy into the python window in ArcGIS Desktop and I am given this ImportError. >>>import arcpy Runtime error Traceback (most recent call last): File "<string>...
0
votes
1answer
91 views

Select by attribute crashes ArcMap when used with search cursor, but not by itself

I have a script that I want to: run through polygons in a shapefile representing service areas > select each area > then select points from a different layer that fall within that selected polygon. (...
0
votes
1answer
256 views

QGIS Plugin - Runtime Error - R6025 [closed]

I get an Runtime Error using my QGIS-Plugin after inserting following code if mapType == 0: QgsMapLayerRegistry.instance().addMapLayer(layer1) else: QgsMapLayerRegistry.instance().addMapLayer(...
3
votes
1answer
315 views

arcpy.da.SearchCursor not work when run the whole scripts in IDLE

I'm using ArcGIS 10.3.1. The code is running in IDLE of winpython 2.7 64bit. Here is a very simple code which intends to read a shapefile. import arcpy from arcpy import env env.workplace = "E:/" ...
0
votes
2answers
41 views

How to add N+1 second using ArcPy cursor for Time Field value?

I have a field that I would like to add one second on for each feature using field calculator and Python. My field name is ISSUEDTIME_NEW I want to start my time at 00:00:00 and add one second on to ...
2
votes
0answers
300 views

Reading csv file gives runtime error? [closed]

I copied a python script from another answered question on this site. I am using arcgis 10.2.2. It returns an error and produces an empty shapefile; it has headers but no data. Can someone look at ...
1
vote
1answer
50 views

Error Opening File?

I have searched the internet for a few hours now and have gotten to the point where I need to ask this. I am currently developing a code that will take a large subdirectory of .xlsx files, read them ...
1
vote
2answers
286 views

Error when creating Polyline from parsed table values: “CreateObject cannot create geometry from inputs”

I'm writing a script that parses GPS events from an SDE table to try and create lines in a feature class representing when street sweeper brushes were turned on. I'm appending the lat and long into ...
2
votes
2answers
458 views

Runtime error using arcpy module

I'm writing an automatization script that auto imports new line features. This has to be done for ~40k line features. The program runs pretty well since i had to optimatize it quite a lot to meet ...
2
votes
3answers
1k views

Error when path contain spaces - Arcpy Integrate

I'm using a simple script to run Integrate tool in a default gdb and feature class, where user can indicate the path where this gdb is located. This script works well when path indicated by user don'...
-1
votes
1answer
384 views

Join Field Management

I have not used the following tool, and am recieving the following error when trying to add a field to two of the following FC's below. Is this a syntax issue? import arcpy PlaceFC= filepath ...
0
votes
1answer
56 views

Run time error - arcpy.xytoline

I have a point layer and i need to connect all the points(4046) with each other. I tried it through python console from Arcgis but it gives me run time error. Here is my code : import arcpy ...
0
votes
2answers
256 views

arcpy.da.How do I resolve arcpy.da.NumPyArrayToTable RuntimeError: An invalid SQL statement was used. [SELECT * FROM table]

I working on a python script to copy domains from one geodatabase to another (to rebuild replicas/staging environments). I cannot figure out why I get the following error when it the script hits ...
1
vote
0answers
38 views

ArcPy Not Able to Open Current Map From Stand Alone Code While Map Is Open [duplicate]

Running an Arcpy stand alone script on PyScripter I followed everything in this answer to ArcPy gives error Object: CreateObject cannot open map document? As: Start up the Streets.mxd in ArcMap Run ...
2
votes
1answer
5k views

RuntimeError: A column was specified that does not exist

I have a script which reads a geodatabase table and calculate two fields based on existing fields. This is my code: import arcpy from arcpy import env #overwrite output arcpy.env.overwriteOutput = ...
1
vote
1answer
377 views

After hiding a field, Table to Excel gives RuntimeError Cannot find field ''

I'm trying to export a Table View to Excel (using arcpy). It works well if the Table View doesn't have hidden fields. As soon as I hide the OBJECTID when creating the View, I get a runtime error (...
0
votes
1answer
522 views

Expected Field not Found by ArcPy? [closed]

Currently my script kicking out: Runtime Error: An expected Field was not found or could not be retrieved I did some checks and the spelling of the fields are correct and the fields do exist in ...
1
vote
3answers
233 views

Runtime Error Rerunning Arcpy Update Cursor Script

The following script works to update coordinates in my ArcGIS feature class, but if I run it twice in a row from ArcMap on the same geodatabase feature class, I get a "RuntimeError: Unexpected ...
1
vote
1answer
925 views

Error in Setting Extent using python

Using ArcGIS 10.2.2 I am trying to set the extent in environment settings using arcpy.env.extent My code is here: for lyrVec in arcpy.mapping.ListLayers(mxd, "", df): if lyrVec.name == "...
-1
votes
2answers
554 views

Counting number of instances of certain field value using ArcPy?

I am creating code that accesses a shapefile named Schools.shp. I data I am trying to locate is the attribute field named FACILITIES. Within the FACILITIES field I am trying to get values that the ...
1
vote
0answers
244 views

RuntimeError: cannot open, when using arcpy outside ArcGIS [closed]

When I ran the below code, I got a runtimeerror: can't open the shapefile. The file was not occupied by ArcGIS. I even restarted the computer, but it still gave me the error. However, I can run the ...
0
votes
2answers
450 views

Arcpy Search Cursor with Spatial Join

I would like to to iterate through polygon features in a shapefile and spatially join them with points. I am able to do this with model builder, as well as when the polygons are in separate shapefiles ...
2
votes
2answers
1k views

QGIS runtime error R6034

I get a runtime error R6034 every time I open QGIS. I am running under Windows 10 on a 64-bit machine. This issue has been raised previously with answers that might be useful for a experienced system ...
2
votes
1answer
54 views

Script Tool Automation of Search and Update Cursor?

I keep recieving the following error: RuntimeError: An invalid SQL statement was used. [SELECT [ID_NUMBER,COLLECTION,COLLECTED_,COLLECTI_1], OBJECTID FROM OFFICIAL_STRUCTURES2015] import arcpy as ...
2
votes
2answers
120 views

Update Cursor: Unable to populate specific field

I am attempting to create a loop to recognize the entry/exit point of a pipe to/from a structure by associating it with a North, South, East, or West direction and then populate the corresponding ...
3
votes
2answers
250 views

Update Cursor for automation of tedious data entry which keeps crashing ArcMap

I coded the Update Cursor for automation of tedious data entry where I am applying a previous Survey Company Identification Data to STRUCTURES_15096.shp from "OFFICIAL_STRUCTURES2015.shp" and it keeps ...
0
votes
1answer
2k views

RuntimeError: cannot open <shapefile> from ArcPy search cursor? [closed]

import arcpy from arcpy import env env.workspace= "C:/Esripress/Python/Data/Excercise08" fc = "rivers.shp" cursor = arcpy.da.SearchCursor(fc, ["SHAPE@LENGTH"]) length =0 for row in cursor: length =...
3
votes
2answers
2k views

Debugging RuntimeError: A column was specified that does not exist from ArcPy?

My goal is to count the number of wells in each county. I've verified the columns are correct as listed in the attribute table. Do I have a typing or formatting error? I wanted to pull county names ...
3
votes
2answers
5k views

RuntimeError: cannot open “feature class” with SearchCursor?

I have a very simple script that isn't working. import arcpy workspace = "C:\\Users\\Work\\AppData\\Roaming\\ESRI\\Desktop10.3\\ArcCatalog\\master.sde" arcpy.env.workspace = workspace wire = "gis....
3
votes
1answer
221 views

Print rasters count in Python

I'm trying to print raster batch count number in PyScripter and ArcGIS 10.3 I'm using the next code: import arcpy carpeta = arcpy.env.workspace = r"C:\Base_de_datos\Cuencas_raster" for raster in ...
1
vote
1answer
79 views

Arcpy: copied python snippet does not work?

I am trying to convert XYZ-data to a point feature class. I've done this successfully in ArcMap, however, when I copy the python snippet, I get a RuntimeError. I did make some minor changes to make ...
2
votes
0answers
244 views

Error when kriging: “output variance prediction raster” [closed]

I am trying to run a python script for kriging, but keep getting a following error message. It doesn't make any sense as the output variance prediction raster is optional. The code: # Create ...
5
votes
2answers
1k views

ArcPy Report syntax error

I'm working on trying to use arcpy to automate the creation of a report, but I'm running into a problem. >>> arcpy.mapping.ExportReport('2013pp',"C:\reports\2013_Graffiti.rlf","C:\reports\...
1
vote
2answers
2k views

Debugging arcpy.da.UpdateCursor where clause which gives RuntimeError: Cannot find field?

I'm trying to use UpdateCursor in arcpy, but the where clause I'm using seems to be causing trouble. However, when I open up the table in ArcMap and use Select By Attributes with the exact same clause ...