laptop and a wrench

Bug

The "Invalid expression...General evaluation error" message returns when verifying the Arcade expression ‘DomainCode($feature, 'fieldname')’ in ArcGIS Pro and Portal for ArcGIS.

ArcGIS Pro
Bug ID Number BUG-000169554
SubmittedJuly 30, 2024
Last ModifiedMay 2, 2025
Applies toArcGIS Pro
Version found3.2.2
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.5
StatusFixed

Additional Information

This issue is addressed in ArcGIS Pro 3.5.

Workaround

Instead of using the expression 'DomainCode($feature, 'fieldname')', use the expression 'DomainCode($feature, 'fieldname', DomainName($feature, 'fieldname'))'.

Steps to Reproduce

Bug ID: BUG-000169554

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options