| Bug-ID-Nummer |
BUG-000151657 |
| Eingereicht | August 18, 2022 |
| Zuletzt geändert | September 26, 2025 |
| Gilt für | ArcGIS Field Maps |
| Gefunden in Version | 22.2 |
| Betriebssystem | N/A |
| Betriebssystemversion | N/A |
| Status | Will Not Be Addressed
Das Entwicklungsteam hat das Problem bzw. die Anforderung sorgfältig geprüft und ist zu dem Schluss gekommen, es nicht zu beheben bzw. keine weiteren Schritte zu unternehmen. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
Zusätzliche Informationen
The expression is not correct. Each time the expression evaluates, a new GUID is returned, leading to an infinite loop. Define a GUID initially and check if the field value contains a GUID. If it is empty, create and assign a GUID using the Guid() function. If not empty, return the current GUID field value.
For example, to calculate a random GUID in a field, use the following expression and replace FIELDNAME with the name of the field:
var id = $feature.FIELDNAME
IIf(id==null, guid(), id)
Workaround
Define a GUID initially and check if the field value contains a GUID. If it is empty, create and assign a GUID using the Guid() function. If not empty, return the current GUID field value.
For example, to calculate a random GUID in a field, use the following expression and replace FIELDNAME with the name of the field:
var id = $feature.FIELDNAME
IIf(id==null, guid(), id)
Schritte zur Reproduzierung