Questions tagged [runtimeerror]

A error that occurs whilst a program is running.

Filter by
Sorted by
Tagged with
1
vote
0answers
36 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 ...
4
votes
1answer
60 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
1answer
21 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', '...
0
votes
0answers
38 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
1answer
39 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
1answer
157 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 ...
2
votes
1answer
112 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 ...
2
votes
0answers
43 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 ...
3
votes
1answer
134 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 ...
1
vote
1answer
83 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/...
3
votes
1answer
185 views

QGIS3.4 project not loading

I have been doing this project for the last few weeks on QGIS3.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 ...
2
votes
1answer
133 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\...
1
vote
1answer
185 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
1answer
83 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
1answer
195 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
2answers
259 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
78 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
296 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 ...
1
vote
1answer
571 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
626 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
51 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 ...
1
vote
1answer
131 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
2answers
517 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
2answers
575 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
2k 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
134 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 ...
0
votes
1answer
279 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
474 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
49 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
406 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
62 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
578 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
868 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
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'...
-1
votes
1answer
437 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
84 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
387 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
46 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 ...
3
votes
1answer
9k 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 = ...
2
votes
1answer
559 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
827 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
331 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
1k 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
955 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
331 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
601 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
69 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
156 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
259 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 ...