<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Guid not generating in Field Maps? in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1697952#M12626</link>
    <description>&lt;P&gt;I just experienced this issue and did a little more research, it looks like there is an ESRI bug from Jan 2023. It is not marked as closed, but there is a solution presented that works. The Guid function on its own triggers an infinite loop.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/having-a-guid-function-arcade-expression-in-an-arcgis-f-bug-000153527" target="_blank"&gt;https://support.esri.com/en-us/bug/having-a-guid-function-arcade-expression-in-an-arcgis-f-bug-000153527&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"...to calculate a random GUID, use the following expression and replace FIELDNAME with the name of the field: &lt;STRONG&gt;var id = $feature.FieldName IIf(id==null, guid(), id)&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2026 14:26:12 GMT</pubDate>
    <dc:creator>JamesTurner2</dc:creator>
    <dc:date>2026-04-23T14:26:12Z</dc:date>
    <item>
      <title>Guid not generating in Field Maps?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1481311#M8749</link>
      <description>&lt;P&gt;I have a feature class related to a table through the TRT_GUID field.&amp;nbsp; The arcade expression below is entered into the field form, but the guid will not populate.&lt;/P&gt;&lt;P&gt;It's odd because the expression returns a field when tested, but nothing happens within field maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ftrId = $feature.TRT_GUID;
if (IsEmpty(ftrId) == True || ftrId == '{00000000-0000-0000-0000-000000000000}'){
  ftrId = Guid();
  return ftrId
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AAFieldMaps.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105795iEDCE6D42B68E21FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="AAFieldMaps.jpg" alt="AAFieldMaps.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20240530_113413_Field Maps.jpg" style="width: 624px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105793iA082E4534C387352/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20240530_113413_Field Maps.jpg" alt="Screenshot_20240530_113413_Field Maps.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 16:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1481311#M8749</guid>
      <dc:creator>AaronSchuck1</dc:creator>
      <dc:date>2024-05-30T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Guid not generating in Field Maps?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1543625#M9660</link>
      <description>&lt;P&gt;I am also facing the same issue. Are you able to find a solution for this?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 18:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1543625#M9660</guid>
      <dc:creator>AsimAhmad1</dc:creator>
      <dc:date>2024-09-28T18:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Guid not generating in Field Maps?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1674570#M12106</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/601954"&gt;@AaronSchuck1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/172094"&gt;@AsimAhmad1&lt;/a&gt;&amp;nbsp;Hello, not sure if either of you found a solution to this but it sounds similar to a problem I ran into today where I built a pp-up for a feature layer in ArcGIS Pro to call on the GlobalID to build a URL to show more info for a feature stored on my organization's intranet. The GlobalID string would never appear in the pop-up. Turns out ArcGIS Enterprise/Online doesn't seem to like the squiggly brackets ({}) that encompass the GUID. I threw in a "Replace()" function in the Arcade script to get rid of the brackets in my return statement and then it appeared as expected. So you could possibly use the following function:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;global_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;Replace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Replace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GlobalID&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'}'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'{'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If you do need the brackets in there, perhaps you could add them back in as some sort of concatenate? I haven't tested that though.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Dec 2025 18:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1674570#M12106</guid>
      <dc:creator>CameronLacelle</dc:creator>
      <dc:date>2025-12-22T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Guid not generating in Field Maps?</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1697952#M12626</link>
      <description>&lt;P&gt;I just experienced this issue and did a little more research, it looks like there is an ESRI bug from Jan 2023. It is not marked as closed, but there is a solution presented that works. The Guid function on its own triggers an infinite loop.&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/having-a-guid-function-arcade-expression-in-an-arcgis-f-bug-000153527" target="_blank"&gt;https://support.esri.com/en-us/bug/having-a-guid-function-arcade-expression-in-an-arcgis-f-bug-000153527&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"...to calculate a random GUID, use the following expression and replace FIELDNAME with the name of the field: &lt;STRONG&gt;var id = $feature.FieldName IIf(id==null, guid(), id)&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 14:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/guid-not-generating-in-field-maps/m-p/1697952#M12626</guid>
      <dc:creator>JamesTurner2</dc:creator>
      <dc:date>2026-04-23T14:26:12Z</dc:date>
    </item>
  </channel>
</rss>

