| Numéro d’ID de bogue |
BUG-000167914 |
| Envoi | May 30, 2024 |
| Dernière modification | August 2, 2024 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 3.3 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
When using the First function always add a null check, at runtime if the passed featureset to the First function has no rows, the First function returns null. The validations done both by the expression builder and the at save attribute rules are very basic and do not catch all runtime errors, just like any other programming language.
The expression builder uses the first row in the table if no rows are available in the table, an ephemeral in-memory row is created with default values to be used for validation, and the in-memory row is also used during save time. The expression builder may or may not catch the null error, the same thing with at save. So it is always recommended to handle null checks in the script.
Solution de contournement
When using the First function always add a null check if the returned row is null. That is because the featureset might be empty.
Étapes pour reproduire