4 votes

Problems with Reclassify and RemapRange in ArcPy?

Analysis I would like to share the process of discovering and fixing the problem (whose solution is documented in comments to the question) because it works in many similar circumstances. Look at the ...
user avatar
  • 67.6k
4 votes
Accepted

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

In your arcpy.Project_management() you are passing the name of the spatial reference, not the spatial reference itself. Although the documentation for the out_coor_system parameter states Valid ...
user avatar
4 votes
Accepted

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

If you do not wish to enter a value for a parameter, you'd typically pass it an empty string. The time_of_day parameter is the 6th parameter (or so I read from the doc). arcpy.na....
user avatar
  • 15.3k
3 votes
Accepted

Difficulty using variables as input parameters for arcpy.Intersect_analysis

I'd suggest assigning your paths to variables and then using those variables in each instance instead of the results of your geoprocessing. I'd also suggest inserting an r, indicating raw string, ...
user avatar
3 votes
Accepted

Creating a spatial reference in arcpy from projection name

I am unclear why you prefer the name to the factory code. You can use the srid and there is no fuss with spaces/underscores. For projected systems: http://resources.arcgis.com/en/help/main/10.2/018z/...
user avatar
  • 184
3 votes
Accepted

Arcpy MakeFeatureLayer won't loop

I'm not sure why, maybe a memory issue, but you need to use the full file path to the feature class you are creating the feature layer on. So for fcStops, put the full file path, not just the layer ...
user avatar
  • 9,011
2 votes

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

You seem to be misusing the cursor. arcpy.CalculateField_management() will operate on the entire table or table view it is given, regardless of any cursor object's existence. It's probably failing ...
user avatar
  • 8,020
2 votes
Accepted

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

Follow the prompts to say, you should make sure your input parameters for errors, such as layer names, field names, etc. In addition, if your data is in GDB, then your field names do not need to use ...
user avatar
  • 702
2 votes

Clipping rasters gives ERROR 000628

There's a few problems in your script, but that's ok, you have to start somewhere. Firstly, your teacher is right, desc.extent is an object, from the Dataset properties and you can read more about ...
user avatar
2 votes

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

I had the same error message in my geoprocessing service (Error 000628: Cannot set input into parameter out_layer). I haven't found the real root cause. As a workaround, I used a different value / ...
user avatar
  • 521
1 vote

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

I think you are calling the SpatialReference incorrectly. Try doing it either as: Just the code: arcpy.SpatialReference(102002) or just the name: arcpy.SpatialReference("...
user avatar
  • 855
1 vote

Clipping Raster Object with Polygon Object in ArcPy?

The help for Clip (management) gives this example: import arcpy arcpy.Clip_management("c:/data/image.tif","1952602 294196 1953546 296176", "c:/data/clip.gdb/clip01", "#", "#", "NONE", "...
user avatar
  • 2,559
1 vote

MakeRasterLayer failing with error codes 000622 and 000628?

The ERROR 000628: Cannot set input into parameter envelope. Failed to execute error indicates that the wrong data type is being used for a parameter, specifically the envelope parameter for this tool. ...
user avatar
  • 3,596
1 vote

Error when clipping multiple rasters

You are going to laugh at that but if you replace the commas with whitespaces in your rectangle extent string and if you add missing argument for nodata_value, it should work, e.g.,: arcpy....
user avatar
  • 4,806
1 vote
Accepted

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

You need to read the help file of the Mosaic to new raster tool. If you look at the Syntax section it lists the parameters of the tool and what they are. You need to be following the same order. ...
user avatar
  • 38.9k
1 vote

Referencing ArcMap layer to get spatial reference

As I read the Help at 10.2, you need to provide a path to an existing prj file, feature class or dataset, or set a spatial reference. There's no mention of using a layer file from the TOC. The Help ...
user avatar
  • 2,240
1 vote

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

Is the field an integer type, you might try expression = int(0). Calculate field will work on selected records only or all records if none are selected. Will Calculate field 0 work from the attribute ...
user avatar
  • 3,043

Only top scored, non community-wiki answers of a minimum length are eligible