<?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 XY Event Source layer and its Output Statistics field in Query Layer for count of all entities in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/xy-event-source-layer-and-its-output-statistics/m-p/168257#M1014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a published map service at my server which holds up 14 different types of layers and 4 additional tables as well.&lt;/P&gt;&lt;P&gt;When trying to query each one of those layers everything works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the most basic and minimal parameters I insert - &lt;STRONG&gt;Where&lt;/STRONG&gt;: 1=1, &lt;STRONG&gt;Input Spatial Reference&lt;/STRONG&gt;: 2039, &lt;STRONG&gt;Output Spatial Reference&lt;/STRONG&gt;: 2039&lt;/P&gt;&lt;P&gt;The results returns perfectly fine on all layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I insert the syntax below at the &lt;STRONG&gt;Output Statistics field&lt;/STRONG&gt;, the result should show a count of all entities instead of returning a list of all entities and for most of the layers it works perfectly fine! except one specific layer which is an XY Event Source Data Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This layer is just a reflection of a table containing XY columns but yet it's published any other feature layer in the service and when trying to count it with the syntax below it throws a generic error of "unable to complete operation".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the count syntax for the REST services screen for the Output Statistics field -&lt;/P&gt;&lt;P&gt;[{"statisticType":"count","onStatisticField":"OBJECTID","outStatisticFieldName":"result"}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DId anyone happen to try this before?&lt;/P&gt;&lt;P&gt;I actually found this problem through the count widget in the operations dashboard&lt;/P&gt;&lt;P&gt;the count widget just doesn't show a number from the above reason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 12:03:24 GMT</pubDate>
    <dc:creator>SvivaManager</dc:creator>
    <dc:date>2015-09-24T12:03:24Z</dc:date>
    <item>
      <title>XY Event Source layer and its Output Statistics field in Query Layer for count of all entities</title>
      <link>https://community.esri.com/t5/developers-questions/xy-event-source-layer-and-its-output-statistics/m-p/168257#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a published map service at my server which holds up 14 different types of layers and 4 additional tables as well.&lt;/P&gt;&lt;P&gt;When trying to query each one of those layers everything works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the most basic and minimal parameters I insert - &lt;STRONG&gt;Where&lt;/STRONG&gt;: 1=1, &lt;STRONG&gt;Input Spatial Reference&lt;/STRONG&gt;: 2039, &lt;STRONG&gt;Output Spatial Reference&lt;/STRONG&gt;: 2039&lt;/P&gt;&lt;P&gt;The results returns perfectly fine on all layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I insert the syntax below at the &lt;STRONG&gt;Output Statistics field&lt;/STRONG&gt;, the result should show a count of all entities instead of returning a list of all entities and for most of the layers it works perfectly fine! except one specific layer which is an XY Event Source Data Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This layer is just a reflection of a table containing XY columns but yet it's published any other feature layer in the service and when trying to count it with the syntax below it throws a generic error of "unable to complete operation".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the count syntax for the REST services screen for the Output Statistics field -&lt;/P&gt;&lt;P&gt;[{"statisticType":"count","onStatisticField":"OBJECTID","outStatisticFieldName":"result"}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DId anyone happen to try this before?&lt;/P&gt;&lt;P&gt;I actually found this problem through the count widget in the operations dashboard&lt;/P&gt;&lt;P&gt;the count widget just doesn't show a number from the above reason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/xy-event-source-layer-and-its-output-statistics/m-p/168257#M1014</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2015-09-24T12:03:24Z</dc:date>
    </item>
  </channel>
</rss>

