Select to view content in your preferred language

Domains View — Indicate that saving sorting only applies to sorting the descriptions, not the codes

472
1
12-19-2023 08:49 AM
Status: Open
Labels (1)
Bud
by
Esteemed Contributor

ArcGIS Pro 3.2.1:

My understanding about sorting & saving in the Domains View is:

  1. If I sort and save on the Code column, then saving has no effect.
  2. If I sort and save on the Description column, then saving does have an effect.
    1. Side note: There is a quirk where the Domains View sorting reverts to the original sorting when saved; the user needs to hit refresh to see the newly saved sorting. Esri Case #03512501 - Domains View: Sorting codes does not persist when saved
    2. Technical Support Problem: The sorted coded value domain is not retained in the ArcGIS Pro Domains view:
      https://support.esri.com/en-us/knowledge-base/problem-the-sorted-coded-value-domain-is-not-retained-... 

Bud_0-1703004281709.png

Regarding #1:

That behavior is unintuitive. I suppose it makes sense that the domain would only ever be sorted and saved on the Description, not the Code, since the purpose of coded value domains is to display the descriptions. But when using the Save option, it's not clear that sorting and saving on the Codes will have no effect.

Could the wording be changed? Maybe to something like "Save sorted order? (Description only)", or something better?

1 Comment
BrianShepard

I found this after finding the Knowledge-Base post and both led me to use the Sort Coded Value Domain geoprocessing tool. I agree with @Bud that the Save Sorted Order option in the Domain Manager is confusing at best. I've never had it work, but it seems that's by design. I did have a need to sort on Code. Our diameter domain uses numeric Codes and the string Descriptions don't sort numbers in the correct order. Assuming there is intent in assigning numeric Codes, I'd imagine they'd be used to sort often.

Since I was able to sort and save my domain using the geoprocessing tool, I find that Esri taking the trouble to add a function that doesn't work and post about it not working by design is comical. If you're going to go to the trouble to tell people the thing you added to the software doesn't work, just remove it from the software.

Problem: The Sorted Coded Value Domain is Not Retained in the ArcGIS pro Domains View

Description
In ArcGIS Pro, sorting the coded value domain (code or description) in the Domains view and checking the 'Save sorted order' check box fails to retain the new order.

Cause
This is by design. The 'Save sorted order' option does not retain the modified coded value domain order in the Domains view.

I've never seen a company mention the reason something doesn't work is because they designed it not to work. If it doesn't do the thing it says it does, why was it introduced?