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
43 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
0answers
37 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
1answer
26 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
1answer
19 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 ...
0
votes
0answers
21 views

Set a flag as a user defined value on ArcGIS Portal

I have a geometric network published on a ArcGIS server where I'm trying to set a flag as a user defined value to perform a trace downstream task but I'm getting an error: ERROR 000840: The value is ...
1
vote
1answer
59 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
1answer
32 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 ...
2
votes
2answers
52 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
1answer
39 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
1answer
101 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
1answer
70 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
0answers
53 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
2answers
210 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
1answer
45 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
1answer
84 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
1answer
57 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
51 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
179 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
215 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
343 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
142 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
58 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
55 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
810 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
270 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
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 ...
1
vote
1answer
484 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
32 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
320 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
167 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
1answer
606 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
4k 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
1k 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
189 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
374 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
94 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
992 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
72 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
1answer
360 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
391 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
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
1answer
159 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
896 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
296 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
270 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
1answer
208 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
659 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
434 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 ...