Questions tagged [runtimeerror]

A error that occurs whilst a program is running.

Filter by
Sorted by
Tagged with
0 votes
4 answers
41 views

Converting Pandas DataFrame to point feature dataset via ArcGIS function (e.g. XY Table To Point) in ArcPy

I have a specified output path output_path, and a Pandas DataFrame df with two rows containing geoinformation (i.e. x and y coordinates): #import relevant module import pandas as pd #define output ...
0 votes
1 answer
19 views

RuntimeError: [blank] when trying to add a standalone table to a map with python

I am trying to add a standalone table to a map, but when I attempt to create the table object I get a blank runtime error ('RuntimeError: '). This error occurs when running the arcpy.mp.Table() line. ...
0 votes
0 answers
37 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 ...
  • 53
5 votes
1 answer
527 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 ...
  • 580
0 votes
0 answers
223 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 ...
0 votes
0 answers
12 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....
0 votes
1 answer
110 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 ...
0 votes
1 answer
71 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 ...
1 vote
0 answers
84 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....
1 vote
1 answer
120 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....
  • 13
0 votes
1 answer
245 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 (...
1 vote
0 answers
277 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 ...
  • 149
5 votes
1 answer
141 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 ...
1 vote
1 answer
46 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', '...
1 vote
0 answers
150 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:...
0 votes
1 answer
91 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 ...
0 votes
1 answer
659 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 ...
  • 734
1 vote
1 answer
495 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 ...
  • 2,109
2 votes
1 answer
315 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 ...
  • 125
2 votes
0 answers
91 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 ...
  • 21
3 votes
1 answer
333 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 ...
  • 31
1 vote
1 answer
169 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/...
4 votes
1 answer
658 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 ...
  • 61
3 votes
1 answer
366 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\...
  • 64.2k
1 vote
1 answer
304 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 ...
0 votes
1 answer
169 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
1 answer
407 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 ...
1 vote
2 answers
332 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: ...
4 votes
1 answer
355 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 ...
  • 71
0 votes
1 answer
84 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 ...
  • 59
-1 votes
1 answer
501 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 ...
  • 369
1 vote
1 answer
858 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,729
1 vote
3 answers
878 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 ...
  • 921
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 ...
9 votes
1 answer
14k 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 ...
1 vote
1 answer
217 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 ...
3 votes
2 answers
784 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:...
  • 385
-2 votes
2 answers
924 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
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>...
0 votes
1 answer
166 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 ...
  • 41
0 votes
1 answer
298 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
1 answer
558 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
2 answers
70 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
0 answers
559 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 ...
  • 29
1 vote
1 answer
87 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
2 answers
736 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
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 ...
  • 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'...
  • 155
-1 votes
1 answer
565 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
1 answer
105 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 ...