I'm trying to create a buffer as part of a code but I keep getting the following error:
ExecuteError: Failed to execute. Parameters are not valid. ERROR 000735: Distance [value or field]: Value is required Failed to execute (Buffer).
I set the buffer distance in the script toolbox in ArcGIS but it doesn't seem to recognise it. Here is the code I'm using:
in_features = "Thames" out_feature_class = "Flood_R_A" # Run the Buffer Tool arcpy.Buffer_analysis (in_features, out_feature_class, arcpy.GetParameterAsText(5), "FULL", "ROUND", "ALL", "")
Does anybody know what I'm doing wrong?