AnsweredAssumed Answered

arcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings

Question asked by tony.gegneresri-se-esridist Employee on Jan 9, 2013
Latest reply on Oct 27, 2014 by abrown31
Hi,
I have a problem with the arcpy.mapping.AnalyzeForSD() function.
I'm trying to automate everything and is in need to get all the warnings/messages from the mxd analyze.

Somehow i dont manage to get all the warnings from the analyze. Example:

analysis = arcpy.mapping.AnalyzeForSD(sddraft) print analysis  >> {'errors': {}, 'messages': {(u'Layer draws at all scale ranges', 30003): [<map layer u'Something.sde.Layername'>]}, 'warnings': {(u"Layer's data source doesn't have a spatial index", 10002): [<map layer u'Something.sde.Layername'>]}}


The same thing from ArcMap:

SEVERITY STATUS CODE DESCRIPTION NAME TYPE DATA FRAME
High Unresolved 10002 Layer's data source doesn't have a spatial index u'Something.sde.Layername  Layer Layers
High Unresolved 24011 Layer's data source is not registered with the server and data will be copied to the server Something.sde.Layername Layer Layers
Medium Unresolved 10045 Map is being published with data copied to the server using data frame full extent Layers Data Frame Layers
Low Unresolved 30003 Layer draws at all scale ranges Something.sde.Layername Layer Layers

Warning 24001 and 10045 is missing from the AnalyzeForSD().

Any idea for a solution for this?

Outcomes