Skip to main content

Questions tagged [runtimeerror]

A error that occurs whilst a program is running.

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

Cannot open xls file using Python in ArcGIS Pro 3.1.2

I have the following code: import arcpy arcpy.env.overwriteOutput = True coordinates = r"C:\Tiedostot\folder1\coordinates.xls\Sheet1$" print(arcpy.Exists(coordinates)) cursor = arcpy.da....
cloudberry's user avatar
1 vote
1 answer
44 views

How to export and manage images from Survey123 dataset in ArcGIS Pro, separating data points and handling errors

My question mainly centers around how to export a set of images on ArcGIS Pro. What I am trying to do: I have a Survey123 dataset from which I need to extract quadrat sites ( images attached to each ...
Noah McDowall's user avatar
0 votes
0 answers
60 views

QGIS enmap-box plugin error

I just now downloaded a plugin named "EnMAP Box". I am a user of QGIS v.3.28.12. It shows me the following error: An error has occured while executing Python code: RuntimeError: module ...
Natalie's user avatar
0 votes
0 answers
160 views

Wrapped C/C++ object of type QgsVectorLayer has been deleted in QGIS

The main goal is to remove this error: RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted. It appears when a user (I'm in the testing phase) deletes a QGIS layer from the ...
Karol Śpila's user avatar
0 votes
0 answers
64 views

RuntimeError: Illegal values for buffer size?

Does anyone know what this "RuntimeError: Illegal values for buffer size" error is? I am running gdal2tiles.py on a geoTIFF. Below is the message in my terminal. I don't know if the buffer ...
lizo1122's user avatar
2 votes
5 answers
3k 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 ...
Foeke Boersma's user avatar
0 votes
1 answer
111 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. ...
dpederson95's user avatar
0 votes
0 answers
92 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 ...
adonak's user avatar
  • 53
5 votes
1 answer
2k 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 ...
g123456k's user avatar
  • 600
0 votes
1 answer
286 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 ...
user194826's user avatar
0 votes
1 answer
159 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 ...
Tom Piggott's user avatar
1 vote
0 answers
380 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....
MulfordnSons's user avatar
1 vote
1 answer
271 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....
CaptOle's user avatar
  • 13
0 votes
1 answer
801 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 (...
user181566's user avatar
2 votes
0 answers
726 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 ...
Jonas's user avatar
  • 159
5 votes
1 answer
248 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 ...
bhushan11's user avatar
1 vote
1 answer
171 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', '...
Shane Heartz's user avatar
1 vote
0 answers
312 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:...
Ahmad Raji's user avatar
0 votes
1 answer
210 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 ...
Sai Sarath's user avatar
0 votes
1 answer
2k 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 ...
XtianGIS's user avatar
  • 782
1 vote
1 answer
767 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 ...
ycartwhelen's user avatar
  • 2,417
2 votes
1 answer
622 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 ...
Carl's user avatar
  • 135
2 votes
0 answers
128 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 ...
K_Beach's user avatar
  • 21
3 votes
1 answer
544 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 ...
Mike's user avatar
  • 31
1 vote
1 answer
299 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/...
Becky Colwell-Ongenae's user avatar
4 votes
1 answer
985 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 ...
amy's user avatar
  • 81
3 votes
1 answer
736 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\...
PolyGeo's user avatar
  • 65.2k
1 vote
1 answer
408 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 ...
Parimita Saikia's user avatar
0 votes
1 answer
332 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 ...
user148822's user avatar
0 votes
1 answer
577 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 ...
wunderkind's user avatar
1 vote
2 answers
393 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: ...
Vincent Sasseville's user avatar
4 votes
1 answer
424 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 ...
Paul's user avatar
  • 71
0 votes
1 answer
102 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 ...
Reza's user avatar
  • 59
-1 votes
1 answer
730 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 ...
GIS_GOD's user avatar
  • 389
1 vote
1 answer
1k 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, ...
gwydion93's user avatar
  • 1,913
1 vote
3 answers
1k 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 ...
a11's user avatar
  • 950
0 votes
0 answers
67 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 ...
Bjorn ten Broeke's user avatar
9 votes
2 answers
18k 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 ...
user10092387's user avatar
1 vote
1 answer
348 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 ...
Frédéric Vinet's user avatar
3 votes
2 answers
897 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:...
Douglas's user avatar
  • 425
-2 votes
2 answers
1k 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 ...
Shrisha Makaju's 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>...
Flora Day's user avatar
0 votes
1 answer
191 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 ...
LGelb's user avatar
  • 41
0 votes
1 answer
311 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(...
CanadaRunner's user avatar
3 votes
1 answer
630 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:/" ...
user109983's user avatar
0 votes
2 answers
78 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 ...
Geoffrey West's user avatar
2 votes
0 answers
728 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 ...
Alex S's user avatar
  • 29
1 vote
1 answer
134 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 ...
LivingDeath's user avatar
1 vote
2 answers
832 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 ...
Auz Beauxdine's user avatar
2 votes
2 answers
2k 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 ...
Blaž Lipuš's user avatar