Questions tagged [error-000628]

Use when first error seen by ArcGIS/ArcPy procedure/code is ERROR 000628

Filter by
Sorted by
Tagged with
0 votes
1 answer
141 views

Exception has occurred: Execute Error ERROR 000622: Parameters are not valid ERROR 000628: Cannot set input into parameter Coordinate_System

Not sure what I am doing wrong. Keep getting this error: Exception has occurred: Execute Error ERROR 000622: Parameters are not valid ERROR 000628: Cannot set input into parameter Coordinate_System ...
user avatar
1 vote
0 answers
39 views

ApplySymbology does not recognize existing layer (ArcMap 10.6.1)

I have a script that (1) loops through a each row in a feature class; (2) creates temporary_layer_1 with the selected feature; (3) zooms to the extent of temporary_layer_1; (4) creates ...
user avatar
1 vote
2 answers
177 views

Re-projecting shapefiles (with different projections) to the projection of a specified shapefile: Error 000628

I am trying to write a script to make a tool that will run in Arcmap 10.7.1. I have a file with multiple different shapefiles with multiple different projections. Basically, it has to take the ...
user avatar
  • 453
1 vote
0 answers
73 views

Cannot set input into parameter error on second iteration

On the second iteration of the loop starting line 7 I get the following error. Everything works as intended on the first iteration. Any ideas on why this is failing the second time around? Error: ...
user avatar
0 votes
1 answer
158 views

Clipping Raster Object with Polygon Object in ArcPy?

I have about 400 rasters that I want to clip each of them based on a polygon object. The code I tried to use is the following: import arcpy, os origpath = ur'd:\test' jpgs = [f for f in os.listdir(...
user avatar
  • 163
0 votes
1 answer
198 views

Difficulty using variables as input parameters for arcpy.Intersect_analysis

I have 2 variables created from a previous geoprocesses: fc = arcpy.JSONToFeatures_conversion("cslf.json", os.path.join("cslf.gdb", "cslf")) selectFeatures = arcpy.CopyFeatures_management(select, "C:\...
user avatar
  • 1,641
0 votes
1 answer
244 views

MakeRasterLayer failing with error codes 000622 and 000628?

I am importing a raster file and then saving the layer file. This script has worked fine previously, but after changing some input file paths, it has stopped working. Arc finds the inputs, but then ...
user avatar
1 vote
1 answer
219 views

Error when clipping multiple rasters

I am trying to clip about 36 rasters by a polygon. However, I am running into an error. It isn't a coding problem with the loop because I receive the same error when I run the function on a single ...
user avatar
  • 385
1 vote
0 answers
279 views

Error 000628: Cannot set input parameter maximum_pyramid_levels [closed]

I'm trying to execute a script that will create a mosaic dataset that includes Landsat imagery and I keep running into this error. I'm fairly new at writing Python scripts, so I'm sure I'm just ...
user avatar
3 votes
0 answers
380 views

Using RemapRange for Reclassify in ArcPy gives ERRORS 000622 and 000628?

I am trying to reclassify a raster, "Conifer_Focl", which lives in inputData.gdb. The max value for "Conifer_Focl" is 33.217064. I'm looking to reclassify as: I am following the instructions from ...
user avatar
  • 638
2 votes
1 answer
65 views

I don't want to use the time_of_day parameter in MakeServiceAreaAnalysisLayer, what do I put to miss it?

I'm modelling accessibility, so am using network analyst arcpy.na.MakeServiceAreaAnalysisLayer(). However, I don't want to enter anything for the time_of_day parameter. How do I write my Python ...
user avatar
  • 45
2 votes
1 answer
1k views

Error 000628: Cannot set input into parameter out_layer when executing MakeFeatureLayer

I have a script that runs fine in ArcMap and when published to ArcGIS Server: it runs fine when using folder workspace i.e GDB database. fails when using ArcSDE workspace to connect to a RDBMS. This ...
user avatar
  • 39
3 votes
1 answer
2k views

Problems with Reclassify and RemapRange in ArcPy?

I'm having a bit of trouble with a script that uses ArcPy. I keep getting the following error: ExecuteError: ERROR 000622: Failed to execute (Reclassify). Parameters are not valid. ERROR 000628: ...
user avatar
  • 31
0 votes
1 answer
1k views

Batch Mosaic Rasters: arcpy.MosaicToNewRaster_management (ERROR 000628: Cannot set input into parameter coordinate_system_for_the_raster)

I am trying to batch mosaic rasters using arcpy.MosaicToNewRaster_management in arcpy: #This is for mosaicking a lot of rasters import arcpy from arcpy import env arcpy....
user avatar
1 vote
1 answer
579 views

Why does Select Layer By Attribute give errors 000622 & 000628?

I try to select line segments from a layer "t_Pavement_Line which is open in TOC using the following line: arcpy.SelectLayerByAttribute_management("t_Pavement_Line", "NEW_SELECTION", '"ROAD_CLASS"...
user avatar
  • 153
1 vote
1 answer
688 views

Clipping rasters gives ERROR 000628

We are clipping one raster to another and our teacher gave us this hint for the 2nd parameter "Remember that the Describe function returns an object. The Clip tool will need the string representation ...
user avatar
  • 11
3 votes
1 answer
511 views

Referencing ArcMap layer to get spatial reference

I'm currently using ArcGIS 10.2.1. In previous custom geoprocessing tools, I've used the following code to create a feature class in-memory, and set the spatial reference using an existing layer in ...
user avatar
  • 9,001
0 votes
1 answer
337 views

Feature Layer no longer accesible after MakeFeatureLayer_management

I am creating a new layer out of an old one with MakeFeatureLayer_management like this: arcpy.MakeFeatureLayer_management("layername", "newlayername", "DEPTH = 1200") This works for the first time ...
user avatar
  • 137
0 votes
1 answer
2k views

Creating a spatial reference in arcpy from projection name

I am using ArcGIS 10.2.2, Python 2.7. I want to create a spatial reference from the name of a projection, e.g. NAD_1983_BC_Environment_Albers, using the arcpy tool arcpy....
user avatar
  • 113
0 votes
1 answer
1k views

Arcpy MakeFeatureLayer won't loop

The arcpy snippet below is intended to generate a list of technicians scheduled to work, and then generates a unique feature layer for each one's stops. fcStops = "TaskRoute1016" with arcpy.da....
user avatar
  • 8,906
1 vote
3 answers
2k views

Debugging CalculateField_management ERROR 000623: Invalid value type for parameter field?

I am trying to select records in my table that have certain words in the "Name" field and then code them as 0 (not pharmacy) or 1 (pharmacy) This is just a test searching for two words to select non-...
user avatar
  • 19
1 vote
2 answers
5k views

Getting ERROR 000622 when checking for arcpy.DefineProjection_management?

The purpose of my code is to create a loop that copies shapefiles from a folder to my folder and change its projection 'GCS_WGS_1984'. Each shapefile starts with the year follow by the month and '_rfe....
user avatar
  • 161
1 vote
1 answer
440 views

Precondition in Modelbuilder - use in next process

In modelbuilder I am trying to create a tool which will check the coordinate system of the input shapefile. If it is GCS_WGS_1984, then nothing happens. If it is not, then it will reproject it to ...
user avatar
4 votes
2 answers
916 views

Comparing two shapefiles based on ID and spatial

I have two shapefiles that contain position information for individuals, one is their reported location (line segments) and the other is their high-frequency recorded location (point data); they have ...
user avatar
  • 844
2 votes
2 answers
2k views

create relationship class with stand alone python script

I have created a relationship class in arc catalog using the same arguments I'm using below, however if I try and create it using the script below I get: arcgisscripting.ExecuteError: ERROR 000622: ...
user avatar
  • 215
2 votes
1 answer
1k views

ArcMap Geoprocessing VBA code/tool - smooth polygon

I would like to execute the smoothpolygon tool within ArcMap VBA and I'm having some trouble defining the parameters syntax for the tool. I'm getting this error below: ERROR 000622: Failed to execute ...
user avatar