Select to view content in your preferred language

Field Domains in ArcPro and AGOL

2243
3
Jump to solution
04-23-2020 05:59 AM
JustinSaarinen
Emerging Contributor

Field Domains in ArcPro and AGOL

Has anyone found a way to carry over domains defined in AGOL feature classes (data field editor) into the symbology for that layer loaded in an ArcPro project map? The attributes show up but during the symbolization process only the codes display. I set the coded value domains up in AGOL in the data field editor. Different results depending on whether you load the individual feature dataset layer or a web map with the features symbolized by the domain field. 

The map symbology only works with the symbology in the web map. For example, we worked up a trees layer with fields 'status' and 'species' in a 'tree survey' web map. If the web map symbology is for 'status' with domains: 1, Healthy [Green dots] ; 2, Dying [Red dots] that layer comes in ArcPro fine with the correct labels. If you try and change the symbology of that layer for 'species', you are stuck with the code values in the domain, with no definition.

0 Kudos
1 Solution

Accepted Solutions
Egge-Jan_Pollé
MVP Alum

Hi Justin Saarinen,

In ArcGIS Online both Label and Code can contain text values (even with spaces like "Dark Gray"), see screen captures below.

BR,

Egge-Jan

View solution in original post

3 Replies
Egge-Jan_Pollé
MVP Alum

Hi Justin Saarinen,

A few years ago I did get a tip from a long term Esri user about coded value domains. This trick has proven to be very valuable, and I have applied it ever since. And now I will share it here:

When working with coded value domains always make sure that code and value are equal!

So for example you should avoid something like:

Fe = Iron / Pb = Lead / Cu = Copper / Ag = Silver

Instead you should just use:

Iron = Iron / Lead = Lead / Copper = Copper / Silver = Silver

Keeping codes and values the same will avoid a lot of confusion in many situations, like the one you describe above.

When a tree is dying, it is not '2', it is 'dying'.

HTH,

Egge-Jan

JustinSaarinen
Emerging Contributor

Egge-Jan, this is good advice thanks. What is different here is how ArcGIS Online handles domains. You can only use integers that I know, but I could be wrong.

0 Kudos
Egge-Jan_Pollé
MVP Alum

Hi Justin Saarinen,

In ArcGIS Online both Label and Code can contain text values (even with spaces like "Dark Gray"), see screen captures below.

BR,

Egge-Jan