Select to view content in your preferred language

Version check when saving an attribute rule in ArcGIS Pro

724
1
04-30-2021 01:42 PM
Status: Open
Joshua-Young
Regular Contributor

When connecting to an geodatabase that is at a lower version level than the version of ArcGIS Pro being used, there needs to be a check that evaluates if the Arcade expressions being used are supported at the connected geodatabase version level. That way if someone is using a newer version of ArcGIS Pro than what the connected geodatabase is attribute rules that only have Arcade expressions that the geodatabase supports would pass the check and save the rules. But if the attribute rules have Arcade expressions that are not supported at the connected geodatabase level then have the save fail and an error message explaining why it failed.

Currently at ArcGIS 2.7 and ArcGIS Enterprise 10.8.1 you can create attribute rules that will save to the geodatabase without any issues but will cause the publishing of those layers to fail with Swizzling failed error messages in ArcGIS Server. Took me a while to figure out that the publishing error was being caused by one attribute rule that was attempting to return multiple values in one attribute rule which is allowed in ArcGIS Pro 2.7 but not ArcGIS Enterprise 10.8.1 so the geodatabase was not allowing ArcGIS Server to connect to the table that had the attribute rule.

1 Comment
KVD
by

@Joshua-Young Thanks for sharing this. Important to consider the arcade functions used - when adding an attribute rule using a higher version of Pro, and applying this to a lower Enterprise Geodatabase version. Enterprise 10.8.1 uses Arcade V1.10. For my case this was important to consider as I am on Pro version 3.3.0. Appreciate you highlighting this! I found this helpful to reference compatibility https://developers.arcgis.com/arcade/function-reference/