AnsweredAssumed Answered

Using python to replace subtypes with descriptions

Question asked by dirknpeterson on Oct 29, 2014
Latest reply on Oct 29, 2014 by recurvata

I have a workflow that wil use a definition query to select a subset of point data that will be exported from SDE to a 3rd party.  One of the attributes is a subtype where there are 14 subtypes.  When I export the data, the subtype remains as a number rather than a description.  What I need to do is come up with a python expression to replace all of the different subtype numbers with the descriptions.  I have found where I can replace subtype with the description, but how do I do all of them at once?


This is what I came up with:



When I run this, I get a ERROR 000539


I'm new to Python so any help would be appreciated.