How can same script work in ArcMap python window and fail when executed in different

المشرف العام

Administrator
طاقم الإدارة
I have a simple python window script:

mxd = arcpy.mapping.MapDocument("CURRENT")df = arcpy.mapping.ListDataFrames(mxd)[0]sr = df.spatialReferencearcpy.FeatureOutlineMasks_cartography("someLyrName","C:/SomeFolder/someGDB.gdb/someFC",20000,sr,0,"EXACT","ONLY_PLACED")arcpy.FeatureOutlineMasks_cartography("someLyrName2","C:/SomeFolder/someGDB.gdb/someFC2",20000,sr,0,"EXACT","ONLY_PLACED")...In one computer it works just fine but in other it gives following error:ERROR 000162: someLyrName: Linked feature class doesn't exist Failed to execute (FeatureOutlineMasks)

In both computers same mxd is opened from same location (network location) and the layers in mxd have sources in SDE.

Any ideas what could be wrong?



أكثر...
 
أعلى