<?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: Publish Web Layer is converting NULL values to 0 or empty string in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383098#M78890</link>
    <description>&lt;P&gt;No i don't think so... the layer indices definitely stayed the same but those are defined in the properties&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 20:36:01 GMT</pubDate>
    <dc:creator>FredSpataro</dc:creator>
    <dc:date>2024-02-15T20:36:01Z</dc:date>
    <item>
      <title>Publish Web Layer is converting NULL values to 0 or empty string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1382976#M78870</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something happened since early December with either Pro or AGOL.&amp;nbsp; &amp;nbsp; We have a feature service that gets updated on monthly-ish interval using the 'Overwrite Web Layer' button in ArcPro.&amp;nbsp; The polygon layer getting published has multiple INT and STRING fields where 'Allow Null=True' and many of the features have NULL values.&amp;nbsp; This was all fine and dandy when we last ran the update on 12/6/23.&amp;nbsp; &amp;nbsp;Today when we ran the update, all the null values are converted to something explicit.&amp;nbsp; INT values are now 0, STRING values are now 'empty string'.&amp;nbsp; This basically broke our application code that expects NULL as well as symbols, query and everything else where NULLs were expected.&amp;nbsp; WTF?&amp;nbsp; Luckily we caught this in a TEST version before deploying to PROD.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we get the data to publish as NULL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen shot of a REST endpoint query for the same data on the PROD (nulls correct) and TEST (nulls converted to 0):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredSpataro_0-1707871363511.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94689i5EC4FAF2A6365259/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredSpataro_0-1707871363511.png" alt="FredSpataro_0-1707871363511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran a few other publish tests to verify it's not just the 'overwrite' and get the same results.&amp;nbsp; Here's screen shot from Pro of the features being published (source gdb) and the gdb that's extracted from the .SD file uploaded during the publish process.&amp;nbsp; &amp;nbsp;The nulls are being converted sometime in the 'publishing process'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredSpataro_0-1708021058305.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94920i7CDFB1BEE506FC35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredSpataro_0-1708021058305.png" alt="FredSpataro_0-1708021058305.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>Thu, 15 Feb 2024 18:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1382976#M78870</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2024-02-15T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Web Layer is converting NULL values to 0 or empty string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383072#M78884</link>
      <description>&lt;P&gt;Did you start using a newer version of Pro before the last overwrite and now?&lt;/P&gt;&lt;P&gt;Concerning the field in your screenshot, is it a text or numeric field? It sounds like the field is not numeric.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 20:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383072#M78884</guid>
      <dc:creator>Eugene_Adkins</dc:creator>
      <dc:date>2024-02-15T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Web Layer is converting NULL values to 0 or empty string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383083#M78888</link>
      <description>&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;(sorry replied on the wrong login)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I don't think i've upgraded or patched my version of Pro since that last publish.&amp;nbsp; I'm running 3.1.2... looks like there's a 3.2.2 available so i'm going to see what happens if i update...&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. sorry for the confusion... My screen shots are just examples of the INT field. I have multiple fields that allow NULL, if the field is an INT and value = NULL, the publish process sets the value = 0, If the fields is STRING and value = NULL, the publish process sets the value = {empty string} or "" when viewed in JSON.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 20:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383083#M78888</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2024-02-15T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Web Layer is converting NULL values to 0 or empty string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383089#M78889</link>
      <description>&lt;P&gt;In the aprx you used to create the service (and to overwrite), did any of the layers have their drawing order change by chance?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 20:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383089#M78889</guid>
      <dc:creator>Eugene_Adkins</dc:creator>
      <dc:date>2024-02-15T20:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Publish Web Layer is converting NULL values to 0 or empty string</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383098#M78890</link>
      <description>&lt;P&gt;No i don't think so... the layer indices definitely stayed the same but those are defined in the properties&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 20:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/publish-web-layer-is-converting-null-values-to-0/m-p/1383098#M78890</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2024-02-15T20:36:01Z</dc:date>
    </item>
  </channel>
</rss>

