<?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: field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220  in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355308#M20382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mitch for the inquiry, the fields were Text only, one field was 4 char in length the other was 10 char in length, It was a mistake (on my part) to presume what I saw was what I got, the join – based on parcels, was a 1 to many. The 3 miscalculations were just referencing a second point within the parcel which happened to be sequentially higher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 14:41:56 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-07-26T14:41:56Z</dc:date>
    <item>
      <title>field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355304#M20378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added cropped screen shot of what happens&lt;/P&gt;&lt;P&gt;two tables joined upon parcels&lt;/P&gt;&lt;P&gt;inactivenos and sourcenos&lt;/P&gt;&lt;P&gt;tsource&amp;nbsp; length 10 string&lt;/P&gt;&lt;P&gt;newno length 4&lt;/P&gt;&lt;P&gt;I have tried in python and vb&lt;/P&gt;&lt;P&gt;both come up with newno as being the next # higher&lt;/P&gt;&lt;P&gt;as though they were rounded up,&lt;/P&gt;&lt;P&gt;that in my humble opinion is like rounding "why" to "whz"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355304#M20378</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-07-25T20:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355305#M20379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given the rounding appears to be happening with only a few records, and not all of the records, it makes me think something is up with the data at some level.&amp;nbsp; If there was a rounding bug in general, you would see many more or all of the rows being impacted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the data sources of the two tables being joined?&amp;nbsp; File geodatabases?&amp;nbsp; Shape files?&amp;nbsp; Something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run the following code in the interactive Python window, what does it return for the 2 fields in question:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# layer or tableview name&lt;/SPAN&gt;
desc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fld &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; desc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;type&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;precision&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;scale&lt;SPAN class="line-numbers-rows"&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355305#M20379</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355306#M20380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh, both tables are in a file geodatabase, after some more digging and eye strain, the join i used had the potential to be one-to-many, even though the table viewed in the screen shot had the one number in it, a manual field calculate brought up the 'invisible' 2nd joined item, which just happened to be 'numerically' sequential.&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 21:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355306#M20380</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-07-25T21:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355307#M20381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the field you're calculating from a Double type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 01:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355307#M20381</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2017-07-26T01:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: field calc is off by one character,, by calculating the right4 characters from source field into blank 4 char long field it comes up 1 number wrong - 3 times in 220</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355308#M20382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mitch for the inquiry, the fields were Text only, one field was 4 char in length the other was 10 char in length, It was a mistake (on my part) to presume what I saw was what I got, the join – based on parcels, was a 1 to many. The 3 miscalculations were just referencing a second point within the parcel which happened to be sequentially higher.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calc-is-off-by-one-character-by-calculating/m-p/355308#M20382</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-07-26T14:41:56Z</dc:date>
    </item>
  </channel>
</rss>

