Labelling Coded Domain Values in ArcGIS Server

08-29-2018 01:46 AM
New Contributor III

I have created an MXD that has a layer with a couple of label classes with a label expression. The expression takes the first character of the domain description using the mid function (vbscript) to form a label. I can confirm the Display coded value description box is checked for the label expression. In ArcMap 10.5.1 the label appears correctly, with the first letter of the domain description.

I share the MXD with ArcGIS Server 10.5.1. The same label in the dynamic map service renders the the first character of the domain code, not the description. Query requests against the same feature in the same service return to domain description.There are no errors in the ArcGIS Server logs. My data is source from a SQL Server geodatabase (saw a similar post with no answer indicating that SQL Server may be an issue).

Is this a bug? or am I doing something wrong?

0 Kudos
2 Replies
Esri Esteemed Contributor

If labeling is used in a web map, you can use Arcade that allows you to specifically use the domain description or domain value:

0 Kudos
New Contributor II

HI Mark,

I'm facing the same issue,

Did you find any solution to your problem ??
If could could the solution, it would be much help full.


Thank you,


0 Kudos