AnsweredAssumed Answered

Python 26 Spatial Join Issue

Question asked by meghan.kulkarni_Superion on Aug 3, 2018
Latest reply on Aug 3, 2018 by jschwartz@fcgov.com_fcgov

Hello,

 

I have kind of unique situation with Spatial Join in Python 26. I have copied the Spatial Join Python command from Results in Map document. Spatial Join works fine with expected results. Below is code for this:

 

arcpy.SpatialJoin_analysis("C:/***.sde/parcel","C:/***.sde/Landuse","***.sde/SpatialJoin","JOIN_ONE_TO_ONE","KEEP_ALL","APN /\APN/\ true true false 9 Text 0 0 ,First,#,***.sde/parcel,APN,-1,-1;PDnewLU /\PDnewLU/\ true true false 50 Text 0 0 ,First,#,C:/***.sde/Landuse,PDnewLU,-1,-1;Shape_area_1 /\Shape_area_1/\ false false true 0 Double 0 0 ,First,#,***.sde/Landuse,Shape.area,-1,-1;Shape_len_1 /\Shape_len_1/\ false false true 0 Double 0 0 ,First,#,C:/***.sde/Landuse,Shape.len,-1,-1","INTERSECT","#","#")

 

When I run this script as a Standalone script it fails abnormally with not much info on how to debug. Can someone help me debug this?

 

MK

Outcomes