<?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: How do I resolve warning 002858? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1681517#M75088</link>
    <description>&lt;P&gt;This is how I fixed this problem when I had it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%change=(((new or 0)-(old or 0))/(old or 0))*100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it puts in a 0 where the values are null. Hope it helps you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2026 17:02:29 GMT</pubDate>
    <dc:creator>bcgeogirl1</dc:creator>
    <dc:date>2026-02-02T17:02:29Z</dc:date>
    <item>
      <title>How do I resolve warning 002858?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/619307#M48291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to find the percent change of temperature using two climate projections with the formula %change=((new-old)/old)*100. When running it through "calculate field" this is what I have:&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/501569_Screen Shot 2020-07-28 at 11.50.33 AM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I get this warning message with all of my values returned as null:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/501570_Screen Shot 2020-07-28 at 11.51.41 AM.png" /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/619307#M48291</guid>
      <dc:creator>KatieMichel</dc:creator>
      <dc:date>2020-07-28T18:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve warning 002858?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/619308#M48292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a warning... one of your two fields has a null value in it, so when it tries to perform the numerator operation, it is either getting&lt;/P&gt;&lt;P&gt;a number - None&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;None - a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you will have to fix your data if you aren't expecting nulls in those fields, or you will have to fix the expression to deal with nulls.&lt;/P&gt;&lt;P&gt;In any event, a warning probably didn't make all the calculations fail did it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 23:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/619308#M48292</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-07-28T23:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve warning 002858?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1184371#M64793</link>
      <description>&lt;P&gt;yeah how to perform calculations and you have NULL values? i have these kinds of data since this information aren't reported so it must be involved in my geoprocessing work&lt;/P&gt;&lt;P&gt;&amp;nbsp;how to deal with that using python?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 16:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1184371#M64793</guid>
      <dc:creator>IssamAchour</dc:creator>
      <dc:date>2022-06-20T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve warning 002858?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1639856#M74582</link>
      <description>&lt;P&gt;Python treats null values as none.&amp;nbsp; And python can't add to nothing.&lt;BR /&gt;Attribute1 = null&lt;BR /&gt;Attribute2 =&amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current State:&lt;/STRONG&gt;&lt;BR /&gt;Attribute1 +&amp;nbsp;Attribute1 =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;none&amp;nbsp; &amp;nbsp; &amp;nbsp;+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= null&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To handle Nulls:&lt;/STRONG&gt;&lt;BR /&gt;Use &lt;STRONG&gt;or&lt;/STRONG&gt; include a&amp;nbsp;default value&lt;BR /&gt;(!Attribute1! or 0) +&amp;nbsp;(!Attribute2! or 0) =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or use arcade:&lt;/STRONG&gt;&lt;BR /&gt;$feature.Attribute1 +&amp;nbsp;$feature.Attribute2 =&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;nbsp; 5&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 22:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1639856#M74582</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2025-08-06T22:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve warning 002858?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1681517#M75088</link>
      <description>&lt;P&gt;This is how I fixed this problem when I had it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%change=(((new or 0)-(old or 0))/(old or 0))*100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it puts in a 0 where the values are null. Hope it helps you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 17:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-resolve-warning-002858/m-p/1681517#M75088</guid>
      <dc:creator>bcgeogirl1</dc:creator>
      <dc:date>2026-02-02T17:02:29Z</dc:date>
    </item>
  </channel>
</rss>

