laptop and a wrench

Bogue

In ArcGIS Pro 3.1, when the user-defined function is declared within a loop in the Arcade script, it returns the following error message, "Invalid expression. Function declaration only at global scope".

Dernière publication: March 9, 2023 ArcGIS Pro
Numéro d’ID de bogue BUG-000156393
EnvoiMarch 7, 2023
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée3.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutAs Designed

Informations supplémentaires

Functions cannot be declared within a ‘for’ or ‘if’ statement. Declare the function outside the statement to use it.

Solution de contournement

When the user-defined functions are declared outside the loop in the Arcade script, it works correctly with no issues in ArcGIS Pro 3.1.

Étapes pour reproduire

ID de bogue: BUG-000156393

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement