<?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: Calculate Field Tool with JSON Data:  Calculate Field works in Pro, not Velocity? in ArcGIS Velocity Questions</title>
    <link>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332783#M285</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/563014"&gt;@ArmstKP&lt;/a&gt;&amp;nbsp;Thanks for making this post, I would agree with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/453188"&gt;@brudo&lt;/a&gt;&amp;nbsp;'s first question. For a "string/text" type field in Velocity, the Arcade default sample value to be evaluated is the string "Pacific" which would not pass your expression and return your desired data type.&lt;/P&gt;&lt;P&gt;The sample values (your JSON in the field) must be provided on the right side for the corresponding field. If you have done this and are still encountering issues, please reach out here or log a support case. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArcadeSample.png" style="width: 686px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81745iBF28F3A0756BF756/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcadeSample.png" alt="ArcadeSample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 02:14:50 GMT</pubDate>
    <dc:creator>PeterNasuti</dc:creator>
    <dc:date>2023-09-27T02:14:50Z</dc:date>
    <item>
      <title>Calculate Field Tool with JSON Data:  Calculate Field works in Pro, not Velocity?</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332565#M283</link>
      <description>&lt;P&gt;I have sensor data coming in and multiple values come into one field.&amp;nbsp; I have been able to create a dictionary in the Arcade expression in Pro and it will calculate successfully.&amp;nbsp; In Velocity, this same Arcade expression will not work when using the calculate field tool.&amp;nbsp; Is there a different function I should be using in Velocity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression validates and calculates in Pro:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmstKP_0-1695750744162.png" style="width: 316px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81680i63BF9046A800A3FB/image-dimensions/316x531?v=v2" width="316" height="531" role="button" title="ArmstKP_0-1695750744162.png" alt="ArmstKP_0-1695750744162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Velocity, it will throw a Missing Parameter or Illegal JSON error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmstKP_1-1695750904860.png" style="width: 588px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81681iCDF4DB862C5C5D72/image-dimensions/588x465?v=v2" width="588" height="465" role="button" title="ArmstKP_1-1695750904860.png" alt="ArmstKP_1-1695750904860.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332565#M283</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-09-26T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Tool with JSON Data:  Calculate Field works in Pro, not Velocity?</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332722#M284</link>
      <description>&lt;P&gt;Have you supplied a suitable sample value for last_values, e.g. '{"field1":{"value":1}}'?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 21:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332722#M284</guid>
      <dc:creator>brudo</dc:creator>
      <dc:date>2023-09-26T21:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Tool with JSON Data:  Calculate Field works in Pro, not Velocity?</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332783#M285</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/563014"&gt;@ArmstKP&lt;/a&gt;&amp;nbsp;Thanks for making this post, I would agree with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/453188"&gt;@brudo&lt;/a&gt;&amp;nbsp;'s first question. For a "string/text" type field in Velocity, the Arcade default sample value to be evaluated is the string "Pacific" which would not pass your expression and return your desired data type.&lt;/P&gt;&lt;P&gt;The sample values (your JSON in the field) must be provided on the right side for the corresponding field. If you have done this and are still encountering issues, please reach out here or log a support case. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArcadeSample.png" style="width: 686px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81745iBF28F3A0756BF756/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcadeSample.png" alt="ArcadeSample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 02:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332783#M285</guid>
      <dc:creator>PeterNasuti</dc:creator>
      <dc:date>2023-09-27T02:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Tool with JSON Data:  Calculate Field works in Pro, not Velocity?</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332888#M286</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/453188"&gt;@brudo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/56766"&gt;@PeterNasuti&lt;/a&gt;&amp;nbsp;Thank you both, I didn't supply the sample from that field.&amp;nbsp; I did so and then it worked.&lt;/P&gt;&lt;P&gt;Thank you both!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/calculate-field-tool-with-json-data-calculate/m-p/1332888#M286</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-09-27T13:15:27Z</dc:date>
    </item>
  </channel>
</rss>

