Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [error-000840]

Use this tag for Questions which are related to the "000840" error returned by ArcGIS Desktop and ArcGIS Pro.

0
votes
1answer
29 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
1answer
39 views

ExecuteError: Failed to execute. Parameters are not valid error when SelectLayerByAttribute run in Python 2.7

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", "\"...
3
votes
1answer
87 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
1answer
234 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 ...
0
votes
1answer
213 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
1answer
18 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....
2
votes
0answers
82 views

Using group layer created by Trace Geometric Network to copy out selected features in ArcPy without ModelBuilder? [duplicate]

This question comes out of my efforts to try and use the answer by @KHibma to Performing water valve isolation trace using ArcPy? I am trying to use the geoprocessing package linked to in that answer,...
1
vote
0answers
143 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
1answer
103 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 ...
0
votes
1answer
180 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
3answers
1k 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 ...
0
votes
1answer
299 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
1answer
119 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
1answer
186 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
1answer
72 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 ...
0
votes
1answer
547 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
1answer
53 views

Set up files for spline

I've converted "Polygons to Raster" so I can perform a spline, but I can't git the raster as in input on "Spline" without Error 000840. Tracking down other solutions, I tried to "Make Feature Layer" ...
0
votes
1answer
257 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
1answer
246 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
2answers
3k 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
1answer
147 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
1answer
732 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
1answer
149 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
2answers
1k 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
2answers
235 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 ...
0
votes
1answer
186 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 ...
0
votes
1answer
376 views

Using AddJoin_management gives ERROR 000840? [duplicate]

While i'am trying to execute this code IN IDLE, i got error : import arcpy import math import arcview from arcpy import env arcpy.env.workspace = "D:/Users/saadiya/Documents/ArcGIS/Default.gdb" ...
3
votes
2answers
3k views

Join Field works in ArcMap but not in Python

I am trying to join a field of values found within a DBF to a multi-polyline shapefile. They share a common field name (filename) and the values found within each are identical. I was able to run Join ...
1
vote
1answer
659 views

Elevation profile geoprocessing service - error 000840

I am trying to create an Elevation Profile service using the Python code found on the Setting up an on-premise elevation Profile service page: And I followed all the instructions. I am able to run ...
2
votes
1answer
342 views

Clipping layers in dataframe with polygon in Python?

I'm trying to clip layers in a dataframe with a polygon using python and I've done this python script but it's giving this error: ERROR 000840: The value is not a Feature Layer import arcpy, os ...
0
votes
1answer
3k views

Meaning of Spatial Join ERROR 000840: The value is not a Feature Layer?

I'm using ArcGIS (ArcMap) 10.2 to determine the relative location of points of land to a regulated area. I downloaded a layer (.lyr) file that displays the regulated area, and am able to display that ...
3
votes
1answer
680 views

AddJoin failing in Python ArcGIS [duplicate]

My AddJoin operation is failing: arcpy.CopyRows_management(lup_file,out_dir+'lup') try: # Perform copy rows on merged csv file print 'start' aa = arcpy.Raster(SEIMF) arcpy....
3
votes
1answer
780 views

How can I put the name of file in add field with python?

In my script, I have to create field in 15 layers. The name that I wold like to set in this new field is the same of the file's name. But all attempts that I did were worng. My script: proj=arcpy....
5
votes
2answers
4k views

Select By Atribute using python script on .Shp file getting error 000840 the value is not a raster layer

I have a script that calculating vertices angles on Polyline layer and the selecting features in that layer at a specified angle. at the end of the script i'm using select by attribute and getting ...
2
votes
1answer
2k views

Creating a layer after using SelectLayerByAttribute_management

Is it possible to use an existent layer to do a selection by attributes without having to use MakeFeatureLayer_management first? Because I already have a layer with the same name as the feature class "...
2
votes
2answers
846 views

“ERROR 000840 | The value is not a Relationship Class”

I'm stumped here. I've seen this error in other posts but not quite in the same context. I'm trying to run the arcpy.management.CreateRelationshipClass() tool in ArcGIS 10.0. Absolutely everything I'...
2
votes
1answer
646 views

Calculating raster layer statistics using ArcPy gives ERROR 000840?

I'm trying to write a script that will, in part, calculate statistics for a raster layer in an Arcmap mxd, but when I run the script I get an "invalid parameter" error (Error 000840), saying that the ...
3
votes
2answers
5k views

ERROR 000840: The value is not a Raster|Raster Catalog|Mosaic Layer from arcpy.AddJoin_management()?

I am doing some arcpy -functions and afterwards I'm trying to add the calculated results from one table to another table. I'm using the arcpy.AddJoin_management() function. As input table I'm using ...
1
vote
1answer
2k views

Why does Add Field to Layer File give “ERROR 000840: The value is not a Feature Layer”?

I'm trying to add a field to a layer file, but it always gives an error. What I did was making a closest facility layer and save the result as a layer and after that I tried to add a field, but then ...
3
votes
1answer
9k views

Using Join in model gives ERROR 000840?

I'm trying to build a model using Model Builder in ArcGIS 10.1 that starts off by joining two shapefiles together based on a common field. I would like to make this open ended (not hardcoded) so I can ...
2
votes
2answers
755 views

Update ArcPy version to avoid AttributeError: 'module' object has no attribute 'GetClassNames'?

This is probably the answer to my previous question: Listing Elements or Datasets of Layer gives ERROR 000840 value is not Feature Layer?. The version of arcpy that I am using does not include ...
2
votes
1answer
472 views

Listing Elements or Datasets of Layer gives ERROR 000840 value is not Feature Layer?

I used Ar5cPy to do batch processing of Network Analyst - Make Service Area layer of thousand of stores. Everything went well except now, I am stuck with layer (.lyr) files and I would like to ...
7
votes
1answer
6k views

Using ArcPy to rename MXD layers?

I have a MXD with some layers that have parentheses in them. I'd like to rename them via script. Is this a valid approach? import re map = arcpy.mapping.MapDocument("CURRENT") layers = arcpy.mapping....
3
votes
1answer
857 views

ARCGis LayerToKML Skips Feature Layers and Doesn't Process Layers in Group Layers

I am using ARCGis desktop and have written a quick conversion program to convert my layers to kml but I ran into some issues. It seems the only layers it can process correctly are group layers. ...