Questions tagged [runtimeerror]

A error that occurs whilst a program is running.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Using ArcPy to adjust graduated color symbology

I need to create a number of maps showing graudated colors based on different fields from layers across a few data frames. I have all layers symbology set to graduated colors but have encountered an ...
user avatar
  • 53
4 votes
1 answer
241 views

GeometryCollection causing RuntimeError in Python

I am trying to run a loop using my large and small polygon file, however, I experience a RuntimeError: RuntimeError: GDAL Error: Attempt to write non-polygon (LINESTRING) geometry to POLYGON type ...
user avatar
  • 521
0 votes
0 answers
112 views

Running Raster Calculator in ArcPy gives RuntimeError

I am trying to add points at the lowest elevation in a group of polygons as described in the following link, https://support.esri.com/en/technical-article/000011761. The error I am running into comes ...
user avatar
0 votes
0 answers
11 views

Add Geometry Attributes tool failing on line feature class and giving no error code using ArcMap

I am trying to find the end points of a line featureclass and selecting the end and mid point option to do so. But the tool is failing with no error code. This is what I am getting. I have no idea why....
user avatar
0 votes
1 answer
76 views

SearchCursor RuntimeError: Underlying DBMS error [ORA-00923: FROM keyword not found where expected]

I need load OBJECTID from remote DB but I'm still getting error: RuntimeError: Underlying DBMS error [ORA-00923: FROM keyword not found where expected] [SDEDO.E_EL_TU][STATE_ID = 22362] I don't know ...
user avatar
0 votes
1 answer
42 views

UpdateCursor gives RuntimeError that column does not exist

I have managed to get my previous update cursor to work without any hiccups. All I have done is change the fields the script needs to look for. The error I am getting is: RuntimeError: A column was ...
user avatar
1 vote
0 answers
41 views

An Invalid SQL statement was used with SearchCursor

The code: import arcpy fc = r'C:\Users\xxxx\OneDrive - xxxx\Documents\ArcGIS\Projects\xxxx_Test\FinalUnions_VTDs.gdb\New_Final_VTD_SplitLayer' prevFieldValueList = [] counter = 1 with arcpy.da....
user avatar
1 vote
1 answer
83 views

Python Code Runtime Error: In transaction mode using ArcGIS Pro

arcpy.env.workspace = "Project Path" feature1 = arcpy.env.workspace+'TableWithEstimates' feature2 = arcpy.env.workspace+'TableToJoin' interval = 7 arcpy.CreateTable_management(arcpy.env....
user avatar
  • 13
0 votes
1 answer
121 views

RuntimeError : cannot open

I have the code below import arcpy, os from arcpy.sa import * arcpy.env.overwriteOutput = True fc = r'E:\my saves\finaldata.dbf\finaldataD' # Point feature class, needs to be in a file geodatabase (...
user avatar
1 vote
0 answers
162 views

QGIS: Python numpy error when installing plugin

I want to install the plugin "UMEP", but it results in this error: An error has occurred while executing Python code: RuntimeError: module compiled against API version 0xe but this version ...
user avatar
  • 157
5 votes
1 answer
116 views

Unable to process batch buffer using ArcPy

I'm trying to buffer multiples files at once using ArcGIS. My code looks correct until the last line where it returns error related to buffer tool. I've used this code. import arcpy import os from ...
user avatar
1 vote
1 answer
32 views

Getting runtime error from AddFields using ArcPy

I'm add fields via arcpy code as follows; import arcpy arcpy.env.workspace = "C:\Users\sheartz\Documents\NBspray_1952.shp" arcpy.AddField_management( 'NBspray_1952', [['area_ac', '...
user avatar
1 vote
0 answers
111 views

"RuntimeError: An expected Field was not found or could not be retrieved properly. [temp]" while using SearchCursor

I was trying to convert a .csv table to a geodatabase table and then write some rows that meet some conditions (using sql statement) from the table into a txt file. see the code below. file_path = r'C:...
user avatar
0 votes
1 answer
70 views

Runtime error while adding a new field to the existing feature layer using Python

I have been trying to add a new field to one of my feature layers. And I keep getting an error and I can't figure out what is going wrong. I am attaching my code below for reference: When I changed ...
user avatar
0 votes
1 answer
504 views

RuntimeError from Python importing ArcPy "The software is not authorized for use"

In a Windows server there are ArcGIS Pro 2.4 and ArcGIS Server 10.7.1 installed. Both products are licensed. Moreover, FME server is also installed on that machine. There are 3 workspaces in the FME ...
user avatar
  • 734
1 vote
1 answer
424 views

Adding query layer to MapView in Jupyter Notebook returns "RuntimeError: Cannot infer layer: will not be added to map"

I am working within a Jupyter notebook, trying to display a query layer (querying a SQL database) into a map view within the notebook. I receive a Runtime Error (described below) when I try to add ...
user avatar
  • 2,084
2 votes
1 answer
228 views

Adding input field to field map using ArcPy gives RuntimeError

I'm a Python beginner and I would like to export a csv from a feature class, including only some fields. I'm trying to do it using the field mapping control, but I'm doing something wrong because I ...
user avatar
  • 115
2 votes
0 answers
89 views

Python script runtime error - ImportToolbox and run a custom geoprocessing tool

I am very new to Python. I created a simple tool using Model Builder that updates a few columns of data in a SDE feature class. The model runs perfectly within ArcMap 10.5. I need this script to ...
user avatar
  • 21
3 votes
1 answer
259 views

ArcPy Runtime error: Invalid SQL statement used

I am trying to use a search cursor to read fields from a table, assign their values to variables, find the difference and print it. So far I keep getting a runtime error. I'll list my code and the ...
user avatar
  • 31
1 vote
1 answer
148 views

Getting RuntimeError while creating CreateGISServerConnectionFile using Python

I'm inexperienced using Python and keep getting a RuntimeError when I try to follow the instructions to create an ags server connection file on this page - https://desktop.arcgis.com/en/arcmap/10.5/...
user avatar
4 votes
1 answer
473 views

"RuntimeError: wrapped C/C++ object of type ContourGeneratorAlgorithm has been deleted" error in QGIS

I have been doing this project for the last few weeks on QGIS 3.4 with no problems and now every time I try and go on it QGIS does not respond and it does not load. I clicked on another project which ...
user avatar
  • 61
2 votes
1 answer
303 views

ArcPy Insert Cursor giving RuntimeError: Error in InsertRow

When I run the code snippet below, to create a test table, add a field to it, and populate that field with a value in its first row, I get an error: Traceback (most recent call last): File "C:\Temp\...
user avatar
  • 63.7k
1 vote
1 answer
276 views

Performing IDW for multiple Z field from attribute using ArcPy?

I have data with multiple columns as 1996_1, 1997_1, etc. I need to perform IDW for each column values and save it. I am a beginner with arcpy. Please help! The code is as follows: import arcpy, os ...
user avatar
0 votes
1 answer
140 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 ...
user avatar
0 votes
1 answer
351 views

Python Runtime Error at command prompt of ArcGIS Pro

I have been following the example of 'Update Real-Time Data with Python' on https://learn.arcgis.com/en/projects/update-real-time-data-with-python/ but get a runtime error when I run the example from ...
user avatar
1 vote
2 answers
320 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: ...
user avatar
4 votes
1 answer
330 views

Object error while running arcpy.CreateFileGDB_management() outside of ArcGIS Pro

I have a script that starts by creating a FileGDB by calling arcpy.CreateFileGDB_management. It runs without error on my own laptop, but raises an error when my colleagues try to run it outside of ...
user avatar
  • 71
0 votes
1 answer
82 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 ...
user avatar
  • 59
-1 votes
1 answer
451 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 ...
user avatar
  • 369
1 vote
1 answer
785 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, ...
user avatar
  • 1,641
1 vote
3 answers
819 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 ...
user avatar
  • 881
0 votes
0 answers
57 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 ...
user avatar
9 votes
1 answer
13k views

Adding CRS to shapefile in GeoPandas

I am trying to add CRS to a shapefile that I am exporting: shp1 = gpd.read_file(i[1], encoding='iso8859_7', crs_wkt='2100') shp1.to_file(out, encoding='iso8859_7', crs_wkt='2100') When I import it to ...
user avatar
1 vote
1 answer
190 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 ...
user avatar
3 votes
2 answers
734 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:...
user avatar
  • 385
-2 votes
2 answers
845 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 ...
user avatar
1 vote
2 answers
3k 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>...
user avatar
0 votes
1 answer
160 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 ...
user avatar
  • 41
0 votes
1 answer
292 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(...
user avatar
3 votes
1 answer
546 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:/" ...
user avatar
0 votes
2 answers
66 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 ...
user avatar
2 votes
0 answers
517 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 ...
user avatar
  • 29
1 vote
1 answer
78 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 ...
user avatar
1 vote
2 answers
709 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
  • 21
2 votes
3 answers
2k 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'...
user avatar
  • 155
-1 votes
1 answer
510 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 ...
user avatar
0 votes
1 answer
96 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 ...
user avatar
0 votes
2 answers
436 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 ...
user avatar
1 vote
0 answers
55 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 ...
user avatar
  • 544