I’ve created script in Python for ArcGIS to save shape file as layer file..the code throws an error
ERROR 000732: Input Layer: Dataset D:core i 5 datasymon assignmentSwatclippedbuffer.shp does not exist or is not supported
Here is my code:
import arcpy
from arcpy import env
env.workspace = "D:/core i 5 data/symon assignment/Swat/clipped"
buf= "D:core i 5 datasymon assignmentSwatclippedbuffer.shp"
ou2= "D:core i 5 datasymon assignmentSwatclippedlayer1.lyr"
arcpy.SaveToLayerFile_management(buf, ou2, "ABSOLUTE")