Labels On Web Map Shows Domain Codes instead of Domain Value

162
2
03-30-2021 08:39 AM
sayamshivakumar
New Contributor II

Hi,

I have a requirement to show the labels in ArcGIS Collector app and Portal Web Maps.

I have a published a Feature Service by Configuring the below label expression which is working fine in ArcGIS Pro Desktop. but after publishing to ArcGIS Server, The web map is showing the Domain Codes instead of Domain Description in Portal web maps and in ArcGIS Collector App. 

code I'm using for label:   DomainName($feature, 'Diameter') + "-" + DomainName($feature, 'Material').

Any Quick help is much appreciated,

Thank You in Advance. 

0 Kudos
2 Replies
Jelle_Stuurman
Occasional Contributor

What version of ArcGIS Server are you using? The DomainName() function was introduced with arcade 1.7. Version 1.7 can be used for ArcGIS Enterprise 10.7.1 (2019) and up. See version matrix here. 

0 Kudos
sayamshivakumar
New Contributor II

we are using, 10.8.1 ArcGIS server

0 Kudos