I'm getting an error when excecuting a script thats suppose to spatial join two point layers. Code says:
Error 000561 Invalid parameters
But, I'm pretty certain that they are correct.
Can anyone tell me what might be wrong with the code?
I've read that it might be because multiple points might be withing distance of parameters of one point so that it requires fieldmapping. But I have not figured out how I'm suppose to do this.
import arcpy, sys, string, os, datetime, copy # Local Path sti_endring = r"Y:\N50_Kartdata\Arbeidsfiler\Kontroll\Script\N250_Kontroll\Dataopp datering\Endringsdata\finn_endring.gdb\\" # Local variables: N250_HoydetallObjkoord = sti_endring + "N250_HoydetallObjkoord" N50_HoydetallObjkoord = sti_endring + "N50_HoydetallObjkoord" HoydetallObjkoord_joined = sti_endring + "HoydetallObjkoord_joined" # Process: Spatial Join target_features = N250_HoydetallObjkoord join_features = N50_HoydetallObjkoord out_feature_class = HoydetallObjkoord_joined arcpy.SpatialJoin_analysis(target_features, join_features, out_feature_class, "JOIN_ONE_TO_MANY", "KEEP_ALL", "INTERSECT", "350 Meters", "")