<?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: Unable to use Field Calculator with &amp;quot;SHAPE__Length&amp;quot; as an expression variable in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130483#M43756</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;,&amp;nbsp;This is how the field name is generated for online content, with two underscores. When creating the layer in AGO/Portal, or even uploading a layer from Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Josh_OG_0-1641322342754.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30737i9DF22C30CB15BB62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Josh_OG_0-1641322342754.png" alt="Josh_OG_0-1641322342754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 19:30:11 GMT</pubDate>
    <dc:creator>JoshMakesMaps</dc:creator>
    <dc:date>2022-01-04T19:30:11Z</dc:date>
    <item>
      <title>Unable to use Field Calculator with "SHAPE__Length" as an expression variable</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130203#M43752</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to multiply "&lt;/SPAN&gt;SHAPE__Length"&lt;SPAN&gt;&amp;nbsp;by another numeric field, "&lt;/SPAN&gt;width"&lt;SPAN&gt;. Both fields are type double.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When doing this in Portal, I don't receive any errors. It just doesn't calculate. It will calculate other values and fields, as long as it's not using "&lt;/SPAN&gt;SHAPE__Length"&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When attempting this in Pro, I get the generic&amp;nbsp;&lt;/SPAN&gt;ERROR 999999&lt;SPAN&gt;&amp;nbsp;fail code.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have a workaround in Pro:&lt;BR /&gt;With Calculate Geometry, set target field = length.&lt;BR /&gt;With Field Calculator, set the same target field = (target field * width field)&lt;/P&gt;&lt;P&gt;I would still like to know what I'm doing wrong with the original workflow.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 00:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130203#M43752</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-01-04T00:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use Field Calculator with "SHAPE__Length" as an expression variable</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130215#M43753</link>
      <description>&lt;P&gt;Check your table for the correct field name it appears that you have 2 _ (underscores ) in the name and usually it appears like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shape_length&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 03:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130215#M43753</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-01-04T03:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use Field Calculator with "SHAPE__Length" as an expression variable</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130483#M43756</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;,&amp;nbsp;This is how the field name is generated for online content, with two underscores. When creating the layer in AGO/Portal, or even uploading a layer from Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Josh_OG_0-1641322342754.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30737i9DF22C30CB15BB62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Josh_OG_0-1641322342754.png" alt="Josh_OG_0-1641322342754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130483#M43756</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-01-04T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use Field Calculator with "SHAPE__Length" as an expression variable</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130521#M43757</link>
      <description>&lt;P&gt;I was able to successfully perform this task using AGO content. It seems to be a bug/limitation with Portal content.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1130521#M43757</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-01-04T19:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use Field Calculator with "SHAPE__Length" as an expression variable</title>
      <link>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1133677#M43776</link>
      <description>&lt;P&gt;IT figured out a fix. Use this in place of "SHAPE__Length" for any (Arcade) calculation:&lt;EM&gt;(Number($feature.SHAPE__Length)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 23:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unable-to-use-field-calculator-with-quot-shape/m-p/1133677#M43776</guid>
      <dc:creator>JoshMakesMaps</dc:creator>
      <dc:date>2022-01-13T23:14:30Z</dc:date>
    </item>
  </channel>
</rss>

