AnsweredAssumed Answered

Python UpdateLayer works in V10 but not in 10.1

Question asked by DaveJordan on Oct 17, 2012
Latest reply on Nov 2, 2012 by h-p
I have a script written in v10 that compiles a series of maps and mailing labels based on a buffered distance around a parcel.  The script runs fine in V10.  In V10.1 it runs without error but does not symbolize correctly based on a layer files, specifically using UpdateLayer.  After UpdateLayer is processed, the screen refreshes but the symbols set in the layer file do not get processed. 

What has changed in 10.1 that would cause this?
Has anyone else come across this issue?

Here is an example that I copied from the python window in trying to emulate the script.  It does not apply the symbology either:

>>> SubjectLyr = arcpy.mapping.Layer("Y:\Notification Radius Pkgs\Dave3\Shapefiles\Dave3Subject.shp")
>>> mxd = arcpy.mapping.MapDocument("Current")
>>> df = arcpy.mapping.ListDataFrames(mxd, "Radius Map")[0]
>>> wPath = "Y:\Notification Radius Pkgs\\"
>>> arcpy.mapping.AddLayer(df, SubjectLyr,"AUTO_ARRANGE")
>>> sourceLayer = arcpy.mapping.Layer(wPath+"Setup10\LayerFiles\Subject.lyr")
>>> arcpy.mapping.UpdateLayer(df, SubjectLyr, sourceLayer, True)