Hi guys,
I am trying to make a new filter with makeFeatureLayer_management . it works fine in arcgis pro as standalone script but while running as a geoprocessing service it shows me an error :
- esriJobMessageTypeError: File "<string>", line 31 arcpy.MakeFeatureLayer_management(CADSrs, CADlyr,g_ESRI_variable_3'") ^ SyntaxError: EOL while scanning string literal
the code snippet :
arcpy.MakeFeatureLayer_management(CADSrs, CADlyr,"\"Layer\" = 'karar'")
My question is there any different way to make this filter with python "\"Layer\" = 'karar'"?
I've tried to add r before But it didn't works for me.
Thanks In advance