Questions tagged [error-000840]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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. ...
1
vote
1answer
39 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
1answer
28 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
1answer
57 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
1answer
73 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
1answer
108 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
0answers
71 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
1answer
47 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
43 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
1answer
158 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", "\"...
3
votes
1answer
154 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
471 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
331 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
23 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
0answers
210 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
123 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
303 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
2k 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 ...
1
vote
1answer
545 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
144 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
276 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
83 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
750 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
59 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
310 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
293 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
154 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
807 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
217 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
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
2answers
247 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
192 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
606 views

Merge layer files in folders and subfolders with arcpy

I work with arcview 10.3. I try to merge layer files in order to get one layer file that include all the features in the other layer files. All layer files as different names, and they all spread in ...
0
votes
1answer
403 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
4k views

Joining field works in ArcMap but not in ArcPy?

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
694 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
384 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
717 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
815 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....
6
votes
1answer
5k views

Select By Atribute using python script on .Shp file getting error 000840 value is not 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
914 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
672 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 ...
4
votes
2answers
6k 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
774 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
490 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 ...