Questions tagged [error-000840]
Use this tag for Questions which are related to the "000840" error returned by ArcGIS Desktop and ArcGIS Pro.
69
questions
0
votes
0
answers
44
views
Maxent: Failed script RunMaxentModel2
I am using ‘SDM Toolbox v2.5’ toolbox in ArcMap. I clipped the data to the project area and all the occurrence data is in degree decimal and environmental layers in WSG84 format - I am not using ...
0
votes
0
answers
60
views
Merging ValueTable to geodatabase using ArcPy
I'm using a script a colleague put together a couple of years ago and there is an error when I try to run it. I know some Python but not much ArcPy. I've been fiddling with this for a couple of days ...
2
votes
2
answers
890
views
Iterating over features within Group Layer that will be identified with Wildcard using ModelBuilder of ArcGIS Pro
In the ModelBuilder of ArcGIS Pro 2.8.1, using Iterate Layers, I want to iterate over features that are in a group layer. It seems like I should be able to identify this group layer by using a ...
0
votes
1
answer
3k
views
Clipping Basemap using shapefile as clip feature in ArcGIS Pro
I am trying to isolate the United States from the rest of the world using a provided basemap in ArcGIS Pro.
I am trying to use a shapefile of the United States I obtained from the living atlas as the ...
0
votes
1
answer
110
views
Using Define Projection and Projection tools in ArcMap
When I uploaded my maxent output file in ArcMap (it's in ASCII format, a distribution map of a country) it showed me the the spatial reference is unknown. I will create binary maps later (suitable, ...
0
votes
0
answers
154
views
How to solve Error 000840 from arcpy.JoinField_management?
As part of a larger Python script, I am attempting for my last step to join an Excel file to a spatial layer. I was able to perform this step just fine in ArcGIS Pro Model Builder, but when I attempt ...
0
votes
1
answer
163
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 ...
1
vote
1
answer
93
views
Layer from server as input to ArcGIS Pro Intersect
I am working in ArcGIS Pro 2.6.1 and I have managed to pull in data from a server found here: https://spartagis.ncem.org/arcgis/rest/services. The layer in particular is the NC_AllBuildings layer. I ...
1
vote
1
answer
457
views
Python script to automate data update
I am trying to update parcel data for 29 different counties. Typically I would truncate the old data and append the new data, but clicking both those commands 29 times is time consuming.
I have ...
1
vote
1
answer
96
views
FeatureClass error message when running ArcGIS Python tool
I am trying to remove rows from a feature class that is included in a python tool in ArcGIS 10.7. I have run the code as an independent Python script and it runs fine, but when I run the following ...
3
votes
3
answers
714
views
Python in ArcGIS Pro: Backing Up All Layers in a Map
I am having a bit of trouble with Python. I am trying to create a script (hard-coded for now, but eventually soft-coded to make a script tool) that allows the user to back up layers of a given map in ...
1
vote
1
answer
178
views
Split features script returning Python ERROR 000840: The value is not a Feature Layer
I am trying to split a feature layer by rows. I've previously some time ago been able to use the below script, however now when I use it, it returns:
Python ERROR 000840: The value is not a Feature ...
4
votes
1
answer
219
views
arcpy.SelectByAttribute 'Parameters are not valid' error
I am trying to run a python script to select 5 random points in an attribute table and to loop through every 100 points to do this. When I run the function SelectRandomByCOunt within a python shell, ...
2
votes
1
answer
272
views
Select by Location multiple layers using ArcPy
Using ArcMap 10.3, I would like to Select By Location multiple layers using ArcPy. The error message states line 7 is not correct. I can't find the error though. "Water_Body_Boundary" is my source ...
1
vote
0
answers
169
views
Deleting fields from an attribute table
I have a layer that was constructed by multiple dissolve, merge, join's etc. by a previous person. So unsurprisingly the table is a complete mess. I only need 2 or 3 out of the 20 something fields ...
0
votes
2
answers
847
views
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000840: The value is not a Data Element. Failed to execute (Copy)
Check this straightforward code that exports the subset of a shapefile (path_of_shp) using where_clause:
where_clause = '"new" = 1'
arcpy.MakeFeatureLayer_management(path_of_shp, "feature")
arcpy....
0
votes
1
answer
136
views
arcpy.SelectLayerByAttribute_management ExecuteError
This python code works in ArcGIS Pro but Not in ArcMap . I read some issues that mention a get around by making a feature layer. I tried that and I then get an error saying polytest doesn't exist. ...
0
votes
1
answer
101
views
ArcPy script to set TIFF color giving ERROR 000840
I have a Python script that read csv files containing location and attributes for several objects and put all of them in a geodatabase.
I modified this script adding also a TIFF imagine with the ...
1
vote
1
answer
134
views
Select by Attribute error - ArcPy [duplicate]
I have a table of points that looks something like this:
year, latitude, longitude
2018, 42.02, -87.68
2018, 41.91, -87.78
2018, 41.64, -87.68
2017, 41.63, -87.56
2017, 41.89, ...
0
votes
1
answer
212
views
arcpy.AddJoin_management() Error [closed]
I'm having an issue with some code I'm trying to write. Here's the code and below that is the output.
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------...
0
votes
1
answer
471
views
The value is not a Feature Layer. Failed to execute (AddRuleToTopology)?
I am trying to create topology with ArcGIS python .
when I do the AddRuleToTopology its show the error as The value is not a Feature Layer. Failed to execute (AddRuleToTopology).
But I am tried ...
0
votes
1
answer
657
views
ERROR 000840: The value is not a Raster Layer
I'm getting use FillSinks by ArcHydroTools but some problems are happen.
I use this code:
import arcpy
import ArcHydroTools
from arcpy import env
ws = env.workspace = r"C:\Users\fractal\Desktop\...
0
votes
1
answer
683
views
Getting ERROR 000840 from arcpy.SelectLayerByAttribute_management? [duplicate]
I am trying to select layer by attribute and for that, I am using arcpy.SelectLayerByAttribute_management function . My command is as follows:
arcpy.SelectLayerByAttribute_management(union, '...
1
vote
1
answer
675
views
How to fix error 000840 the value is not a raster dataset for Mosaic?
I'm trying to to complete a batch mosaic operation in ArcMap 10.4.1 Python window. I need to run the Mosaic tool about 80 times for sets of three rasters. Basically I want the second raster to mosaic ...
1
vote
1
answer
106
views
arcpy doesn't save output from "Generate Points Along Lines" to "in_memory"
I'm trying to run the tool "Generate Points Along Lines" like this:
arcpy.GeneratePointsAlongLines(inputFeature,r"in_memory\temp","DISTANCE","100 meters")
when setting the output as "in_memory", an ...
0
votes
1
answer
141
views
Cannot find results of MakeFeatureLayer, cannot use SelectFeatureByAttribute [duplicate]
I have a goal: take a feature class, select some of the records by attribute, and make a layer for further processing. Should be simple, but I am having multiple problems. Note: I am working in a ...
0
votes
1
answer
2k
views
ExecuteError: Failed to execute. Parameters are not valid error when SelectLayerByAttribute run in Python 2.7 [duplicate]
I am running a line of code in a Python 2.7 environment using arcpy.SelectLayerByAttribute_management:
fl_haz_selects = arcpy.SelectLayerByAttribute_management(S_Fld_Haz_Ar, "NEW_SELECTION", "\"...
4
votes
1
answer
374
views
Select Layer By Location gives ERROR 000840 ({select_features} as arcpy.Polygon)
I tried to select SC27060054 point object using polygon.
r"Project\project.DBO.Qo" is a point layer.
import arcpy
p1 = arcpy.Point(254426.380, 4664270.258)
p2 = arcpy.Point(254432.730, 4664270.258)...
1
vote
1
answer
2k
views
Appending rows to empty FeatureClass with ArcPy
My goal is to delete all rows in an existing feature class, then append new rows from a new shapefile... everything works except for the append. The table-view portion as the input is giving me the ...
2
votes
1
answer
608
views
Select By Attributes Based on Unique Value in Shapefile gives ERROR 000840?
Using ArcGIS 10.4.1 and Arcpy I am trying to select a shapefile by it attributes and create new feature class based on unique values like
import arcpy
from arcpy import env
def unique_values(table , ...
1
vote
1
answer
45
views
arcpy cannot extract a subdataset from a .3D file
I am working with data which represents the atmosphere as rasters at 29 different altitudes. This data is stored in a ".3D" file. When I drag and drop into ArcMap it asks me to select the layer I want....
1
vote
0
answers
474
views
Make Query Table error: "The value is not a Raster Layer"?
I'm pretty new in coding and I'm struggling with my MakeQueryTable_managment tool using arcpy. I'm trying to do a query Layer based on a Layer and a table I have both in my gdb.
I keep getting this ...
0
votes
1
answer
252
views
arcpy.CreateFeatureclass_management ERROR 000840 after publishing?
I have a exception in arcpy script.In my code I can get result of Trace on geometic network as group layer..next I want to extract only points and return those values as FetureLayer .So I ...
1
vote
1
answer
974
views
Arcpy.AddJoin error
I am trying to populate a table by joining an excel sheet to a featureclass and using field calculator to populate the fields, but I am getting errors for the arcpy.addjoin_management.
import arcpy
...
0
votes
3
answers
5k
views
Merging Raster files in ArcGIS
I have six ASCII files in ArcMap 10.3 that I am trying to convert into one Raster file for the purposes of producing a linear cross-section of the height (Z) values. I have converted all six ASC files ...
2
votes
1
answer
2k
views
ArcPy Select (Highlight) All Features In a Specific Group Layer in Current Map
Using ArcGIS 10.4.1 can you please let me know how I can Select/Highlight (I am not going to run any attribute query against the layer and this is just for visualization) all features listed under one ...
0
votes
1
answer
314
views
Running Calculate Statistics on .asc raster file gives ERROR 000840?
I have a series of .asc files that are output from a modeling exercise (see image below). I need to scroll through each .asc raster, and calculate the mean pixel value within a certain outline. I can ...
1
vote
1
answer
545
views
AddJoin_management python script error
I have two shape files and want to join these two attribute table with common field. But arcpy throws the following error.
arcpy.management.AddJoin(output_feature, "AccountPoi", lstfc1[x1-1], "...
1
vote
1
answer
103
views
Arcpy Network analyst - Perform OD Matrix Cost in loop
I want to perform OD Matrix Cost in loop for each locations group inside a feature class.
As output, I want a lines feature class per group.
import arcpy
arcpy.env.overwriteOutput = True
def ...
1
vote
1
answer
1k
views
"ERROR 000840: The value is not a Data Element" while scripting Rename_management
I am trying to use a script to go through a folder full of geodatabases, open each geodatabase, and rename the feature classes inside the same name as the geodatabase it resides in.
For example, for ...
0
votes
1
answer
145
views
Setting up files for Spline using ArcGIS Pro Spatial Analyst
I have converted Polygons to Raster so I can perform a spline, but I cannot get the raster as in input on Spline without Error 000840. Tracking down other solutions, I tried to "Make Feature ...
0
votes
1
answer
435
views
SelectLayerByLocation keeps giving error 000840: The value is not Boolean
I've seen a lot of questions asked and answered about trouble with the Select Layer By Location tool. Most ask about invalid input errors and the answer generally is to make sure to use layers (as ...
1
vote
1
answer
461
views
arcpy join csv files to raster attribute table
In arcpy, I'm trying to join an list of .csv files with data of emissions per country, with the attribute table of a raster in order to make lookup tables later on. So far this is my script:
...
1
vote
2
answers
4k
views
Using arcpy.MakeFeatureLayer_management on Shapefile and Feature Class
The larger goal with this code is to create a temporary polygon based on the calculated coordinates (which it does), then to see if the polygon intersects with the "unobscured_FC". After I run the ...
2
votes
1
answer
195
views
Convert feature class names to lower case?
I'm simply trying to loop through the first immediate set of folders in a directory, then the GDB's, and finally the feature classes, however, now I get "ERROR 000840: The value is not a Data Element. ...
1
vote
1
answer
1k
views
MakeFeatureLayer throwing error 00840: The value is not a feature layer
I'm working through tutorials from the book "GIS Tutorial for Python Scripting," by David W. Allen, and I have this code pretty much exactly the way the book wants it (I altered one variable name from ...
1
vote
1
answer
426
views
Saving output from Add Join in ModelBuilder?
I try to join a polygon layer and a multipoint layer. When the model runs, it keeps saying:
Failed to execute. Parameters are not valid. ERROR 000840: The value
is not a Layer.
How could I solve ...
2
votes
2
answers
2k
views
Accessing multiple shapefiles in folder using Python and ArcGIS for Desktop?
I have been asked to create a custom script to reproject shapefiles (different projections) from a folder, but can't contain values such as filenames and path names to access them.
I have started ...
1
vote
2
answers
363
views
Set arcpy command line parameter same as Tool parameter
I have a python script that works correctly when used in a toolbox but not from the command line. How do I duplicate the toolbox magic that happens when specifying a parameter Data Type?
There is ...
1
vote
1
answer
244
views
Interpolating rasters into mosaic from point data using LayerTime object in ArcPy?
While trying to run the ArcGIS provided python script to interpolate a bunch of rasters on a time-enabled point feature class file I get the following error:
Runtime error Traceback (most recent ...