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
0 answers
27 views

Stack Profile(ArcGIS Pro), but center profiles at particular point

I want to build several cross-profiles along the beach and center them around the coastline. Obviously, there is no out-of-box solution for it, isn't it? So I wanted to extract elevation data from DEM ...
user avatar
2 votes
2 answers
164 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 ...
user avatar
  • 452
0 votes
1 answer
971 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 ...
user avatar
0 votes
1 answer
65 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, ...
user avatar
  • 27
0 votes
0 answers
64 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 ...
user avatar
0 votes
1 answer
67 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 ...
user avatar
1 vote
1 answer
40 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 ...
user avatar
  • 123
1 vote
1 answer
194 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 ...
user avatar
  • 11
1 vote
1 answer
40 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 ...
user avatar
  • 1,699
3 votes
3 answers
332 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
4 votes
1 answer
167 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, ...
user avatar
  • 43
2 votes
1 answer
137 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 ...
user avatar
1 vote
0 answers
103 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 ...
user avatar
  • 150
0 votes
2 answers
466 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....
user avatar
  • 755
0 votes
1 answer
51 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. ...
user avatar
  • 51
0 votes
1 answer
93 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 ...
user avatar
1 vote
1 answer
96 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, ...
user avatar
0 votes
1 answer
142 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 -*- # -----------------------------------------------------------------...
user avatar
  • 13
0 votes
1 answer
363 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 ...
user avatar
0 votes
1 answer
447 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\...
user avatar
0 votes
1 answer
514 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, '...
user avatar
  • 291
1 vote
1 answer
360 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 ...
user avatar
1 vote
1 answer
73 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 ...
user avatar
  • 117
0 votes
1 answer
94 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 ...
user avatar
  • 1,641
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", "\"...
user avatar
  • 1,641
4 votes
1 answer
335 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)...
user avatar
  • 41
1 vote
1 answer
1k 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 ...
user avatar
  • 2,061
2 votes
1 answer
579 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 , ...
user avatar
1 vote
1 answer
39 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....
user avatar
1 vote
0 answers
403 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 ...
user avatar
  • 31
0 votes
1 answer
213 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 ...
user avatar
1 vote
1 answer
858 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1,434
0 votes
1 answer
257 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 ...
user avatar
  • 256
1 vote
1 answer
447 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], "...
user avatar
  • 267
1 vote
1 answer
97 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 ...
user avatar
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 ...
user avatar
0 votes
1 answer
106 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 ...
user avatar
  • 21
0 votes
1 answer
398 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 ...
user avatar
1 vote
1 answer
434 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: ...
user avatar
  • 55
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 ...
user avatar
  • 1,274
2 votes
1 answer
162 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. ...
user avatar
  • 327
1 vote
1 answer
980 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 ...
user avatar
1 vote
1 answer
358 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 ...
user avatar
  • 21
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 ...
user avatar
  • 23
1 vote
2 answers
312 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 ...
user avatar
  • 27.5k
1 vote
1 answer
229 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 ...
user avatar
0 votes
1 answer
749 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 ...
user avatar
  • 3,962