<?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 is not nullable. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688098#M30423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a joined table?&lt;/P&gt;&lt;P&gt;CountyENDS:1 is a strange table name&lt;/P&gt;&lt;P&gt;you fields are out of order so that might be due to a join unless you rearrange things&lt;/P&gt;&lt;P&gt;Something is amiss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would copy those values to new fields (ie make a new field and do the newfield = oldfield thing), so that you have a clean file without joins (if indeed you have them) since you can only calculate values in the destination table, and not the table that you are joining over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 01:12:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-04-02T01:12:50Z</dc:date>
    <item>
      <title>Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688090#M30415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on a shapefile within ArcGIS Pro 2.1. I am trying to use the field calculator to add a few fields to the populated one I created. However, I keep getting the error message of field is not nullable.&lt;/P&gt;&lt;P&gt;Can anyone tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 00:40:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688090#M30415</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-01T00:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688091#M30416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shapefile fields are not nullable&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/appendices/geoprocessing-considerations-for-shapefile-output.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you have to use a featureclass in a file geodatabase if you need that capability&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 01:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688091#M30416</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-01T01:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688092#M30417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. I had read that and was wondering if that was of issue. I did move it to a geodatabase at one point, but I think I was getting the same issue. I will try it again. A perplexing thing is that my calculations should be producing any nulls unless field calculator is treating 0+0+0 as null.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 01:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688092#M30417</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-01T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688093#M30418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moving to a geodatabase won't 'fix' the issue, you will probably have to create new fields since &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/alter-field-properties.htm"&gt;Alter Field&lt;/A&gt; only works on empty tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving from a shapefile to a geodatabase is sketchy at best if people haven't been careful to assign nulls in the shapefile properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 (zero) is the default for numeric field... sadly 0 is a valid observation and a valid number, it is totally unsuitable as a null as is the &amp;lt;null&amp;gt; itself in my opinion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even in a geodatabase, you would be advised to use the largest or smallest integer possible for you operating system (ie 32 bit integers&amp;nbsp;(min=-2147483648, max=2147483647, dtype=int32) and the same for float/doubles (min=-1.7976931348623157e+308, max=1.7976931348623157e+308, dtype=float64)&amp;nbsp; It just kind of makes things obvious that they just aren't 'observations' or 'measurements'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 01:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688093#M30418</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-01T01:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688094#M30419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What values do you have for city_ords, prohib_in_ and prohib_by_ for those records that yield the error?&lt;BR /&gt;What field type do you have for those 3 input fields and the output field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 16:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688094#M30419</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-04-01T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688095#M30420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values on those fields (both Long type) on are 0 or 1. I feel like I am doing something wrong with my calculate field statement. Like most folks, I am new to ArcGIS Pro. I added a new Long field to hold the results of the sum. Then I right-click on that new field and select Calculate Field. From there I put in the build up in the first input box following the new_field=&amp;nbsp; something like&amp;nbsp;!city_ords! + !county_ord!. I leave the default of Python 3 as the expression type. But, everything I get nulls in the result of the new field. I am able to get it to run in a geodatabase as Dan suggested, but the&amp;nbsp;values are still null.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 18:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688095#M30420</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-01T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688096#M30421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;!city_ords! + !county_ord!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;would be the only part you should put in the expression section&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You might want to put in a screen grab of exactly what you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;And make sure that all the fields are numeric.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;If one of the row values is null, then the result will be null&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 18:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688096#M30421</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-01T18:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688097#M30422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing this now in a geodatabase and am verifying that the fields are all of the type&amp;nbsp;numeric. From the screenshot below you can see the zeros in the table. There are some 1's further down in the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the setup I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="setting up expression" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400365_arcgis.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result of the table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400366_arcgis_result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your feedback and suggestions. I am just trying to learn some of the subtle nuances of ArcGIS here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688097#M30422</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-02T01:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688098#M30423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a joined table?&lt;/P&gt;&lt;P&gt;CountyENDS:1 is a strange table name&lt;/P&gt;&lt;P&gt;you fields are out of order so that might be due to a join unless you rearrange things&lt;/P&gt;&lt;P&gt;Something is amiss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would copy those values to new fields (ie make a new field and do the newfield = oldfield thing), so that you have a clean file without joins (if indeed you have them) since you can only calculate values in the destination table, and not the table that you are joining over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688098#M30423</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-02T01:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688099#M30424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This layer is not currently in a joined state. I believe the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;CountyENDS:1 is occurring because I have another layer added to the same project with the same name. One is from a standalone shapefile and the other is within a geodatabase, but they both have the same names. I think that Field Calculate tool just adds that :# on there from multiple layers with the same name.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688099#M30424</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-02T01:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688100#M30425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;copy the geodatabase out to a new featureclass (Copy tool) with a totally different name&lt;/P&gt;&lt;P&gt;dump any unnecessary fields so that you just have the required fields (ie objectid, shape, shape_length, shape_area, shape_whatever ...)&lt;/P&gt;&lt;P&gt;do the calculation on a newly added field.&lt;/P&gt;&lt;P&gt;If that doesn't work.... start a new project... add just that featureclass and try again.&lt;/P&gt;&lt;P&gt;Report back since something is messed up an a clean reboot, restart with clean data is the only way you will track it down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688100#M30425</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-02T01:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688101#M30426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did finally get it to work after selecting Arcade as the Expression Type and selecting the Start editing check box. Go figure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for sticking w/ me on this one.&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 02:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688101#M30426</guid>
      <dc:creator>JohnMorgan</dc:creator>
      <dc:date>2018-04-02T02:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate - field is not nullable.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688102#M30427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of curiosity:&lt;BR /&gt;Is ESRI willing to improve functionalities applicable on shape files? Easy operations like alter field name, change attribute ordering, make field nullable, etc, should be straightforward, no?&amp;nbsp;&lt;BR /&gt;I have been ages waiting for this, so that importing and exporting to excel tables would finally be out of my daily business.&amp;nbsp;&lt;BR /&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 09:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-is-not-nullable/m-p/688102#M30427</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-19T09:25:27Z</dc:date>
    </item>
  </channel>
</rss>

