<?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: Why is MOD(OBJECTID,30)=0 an invalid expression? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253313#M11142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was picking up on the "data comes from a SDE" part of the question.&amp;nbsp; If the data is coming from SQL Server, MOD is not recognized, which may or may not be the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2019 22:53:55 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2019-11-11T22:53:55Z</dc:date>
    <item>
      <title>Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253309#M11138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is MOD(OBJECTID,30)=0 an invalid expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feature class with a field 'OBJECTID', it appears automatically when typing the SQL syntax. I tried this in v2.4 and 2.3. Both places it says invalid syntax. It works, however, in another map. The first OBJECTID value is 281. There are 290 records. If i create another field (LONG data type) and subtract 280 from the OBJECTID field and put the result in this new field, so it starts at 1, and then use that field in the MOD expression, it still fails. The data comes from a SDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 04:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253309#M11138</guid>
      <dc:creator>ElectraNetArcGIS</dc:creator>
      <dc:date>2019-11-08T04:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253310#M11139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hate queries.&amp;nbsp; I prefer to add a field to the table so I have a record of whether a condition was met.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fmod&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!OBJECTID!&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# check for divisible by 2, returns 0 or 1&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 06:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253310#M11139</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-11-08T06:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253311#M11140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Often times with enterprise geodatabases, the syntax is dependent on the specific DBMS.&amp;nbsp; What DBMS are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 21:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253311#M11140</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-11-11T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253312#M11141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked for me in file gdb:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/473073_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 21:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253312#M11141</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2019-11-11T21:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253313#M11142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was picking up on the "data comes from a SDE" part of the question.&amp;nbsp; If the data is coming from SQL Server, MOD is not recognized, which may or may not be the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 22:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253313#M11142</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-11-11T22:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is MOD(OBJECTID,30)=0 an invalid expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253314#M11143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL Server &lt;A href="https://stackoverflow.com/questions/37743725/sql-server-mod-equivalent"&gt;MOD is %&lt;/A&gt;:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;OBJECTID &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;30&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 23:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-mod-objectid-30-0-an-invalid-expression/m-p/253314#M11143</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-11-11T23:00:37Z</dc:date>
    </item>
  </channel>
</rss>

