<?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: Failed to calculate error in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382570#M7931</link>
    <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; i realized it's an issue with offline mode however shouldn't I still be able to use an arcade expression to tell it if I can't calculate then return null or another set string of text.&amp;nbsp; ??&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 22:25:52 GMT</pubDate>
    <dc:creator>NLCCouncil</dc:creator>
    <dc:date>2024-02-14T22:25:52Z</dc:date>
    <item>
      <title>Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1381988#M7925</link>
      <description>&lt;P&gt;Hi All i am using caculated espressions to auto pull user details into seperate holding fields different from the system last edited fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever i work in offline mode I and try to create a new feature I get "Failed to calculate" on that field in field maps ad can't save a record.&amp;nbsp; &amp;nbsp;FYI its pulling&amp;nbsp;GetUser($layer).fullName&amp;nbsp; &amp;nbsp;pulling the username works offline.&amp;nbsp; &amp;nbsp;so to try to solve it I added a small bit to try to return hard coded text or NULL if it can't calculate but I still get can't calculate error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried it like this:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;fullname&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;GetUser&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$layer&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;fullName&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;fullname&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"Empty"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;} &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;fullname&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Feb 2024 00:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1381988#M7925</guid>
      <dc:creator>NLCCouncil</dc:creator>
      <dc:date>2024-02-14T00:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382007#M7926</link>
      <description>&lt;P&gt;Does this null check work instead?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (IsEmpty(GetUser($layer))) return "Empty";
return GetUser($layer).fullName;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Feb 2024 02:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382007#M7926</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-02-14T02:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382016#M7927</link>
      <description>&lt;P&gt;Same as my testing it works when online but as soon as am in offline mode even your script still fails with 'failed to calculate' see attached screenshot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 02:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382016#M7927</guid>
      <dc:creator>NLCCouncil</dc:creator>
      <dc:date>2024-02-14T02:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382234#M7929</link>
      <description>&lt;P&gt;Fullname does not work offline yet if I remember right - it was talked about at UC.&amp;nbsp; See this post.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/getuser-when-offline-and-disconnected/td-p/1265027" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/getuser-when-offline-and-disconnected/td-p/1265027&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 15:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382234#M7929</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-14T15:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382570#M7931</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; i realized it's an issue with offline mode however shouldn't I still be able to use an arcade expression to tell it if I can't calculate then return null or another set string of text.&amp;nbsp; ??&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 22:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382570#M7931</guid>
      <dc:creator>NLCCouncil</dc:creator>
      <dc:date>2024-02-14T22:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to calculate error</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382613#M7935</link>
      <description>&lt;P&gt;Use Console() to see what&amp;nbsp;GetUser($layer).fullName is returning.&amp;nbsp; It may not be empty it may be an error string or something.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 23:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/failed-to-calculate-error/m-p/1382613#M7935</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-14T23:45:42Z</dc:date>
    </item>
  </channel>
</rss>

