<?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: Querying A layer that has it's table joined in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506798#M12983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many records do you expect to be returned by the query when the where clause is 1=1? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it it the 500 records that a service defaults to, or you have changed the maximum number to a bigger than 2000 records? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried your scenario, but I have seen this error in the situation explained in this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And since you have a business table joined, it might be related. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is another thread that is kind of related:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test this, try running a query that returns only a small number of records. If it works, try changing the max number of records for the service to a number smaller than 2000, and run again the 1=1 query. See if you will get results back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 12:30:27 GMT</pubDate>
    <dc:creator>DarinaTchountcheva</dc:creator>
    <dc:date>2010-07-01T12:30:27Z</dc:date>
    <item>
      <title>Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506795#M12980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm trying to perform a query task on a layer that has it's table joined to a standalone table in a geodatabase.&amp;nbsp; the table is included in the published msd file, and the web user has the correct permissions (both the layer and the table are within the same geodatbase, actually) but a query of "1=1" returns an invalid sql error.&amp;nbsp; is querying a joined table not supported?&amp;nbsp; for the record, performing an ID task and find task on the same layer will work fine, showing the attributes from the joined table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;further, on queries that do work on other layers in the map, sometimes geometry is returned, other times it is not.&amp;nbsp; return geometry is set to true.&amp;nbsp; again, ID tasks and find tasks return the geometry correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using the RC API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 18:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506795#M12980</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-06-30T18:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506796#M12981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;is querying a joined table not supported&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It is supported and it's generally working. I can't reproduce your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your query working if you are just using the REST API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;sometimes geometry is returned, other times it is not&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This can happen if the SHAPE field is not visible. I guess it's not your case if find task is working but worth the verification. Else same question, is it working with the REST API only?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 07:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506796#M12981</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-07-01T07:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506797#M12982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It is supported and it's generally working. I can't reproduce your issue.&lt;BR /&gt;Is your query working if you are just using the REST API?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i've attached two screenshots of attempting the REST API method.&amp;nbsp; the first is showing the layer info, the second showing the result of the query.&amp;nbsp; i get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This can happen if the SHAPE field is not visible. I guess it's not your case if find task is working but worth the verification. Else same question, is it working with the REST API only?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you are correct, the SHAPE field was hidden.&amp;nbsp; unhiding it seems to resolve that particular issue.&amp;nbsp; odd that ID and Find tasks returned geometry, isn't it?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 10:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506797#M12982</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-07-01T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506798#M12983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many records do you expect to be returned by the query when the where clause is 1=1? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it it the 500 records that a service defaults to, or you have changed the maximum number to a bigger than 2000 records? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried your scenario, but I have seen this error in the situation explained in this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And since you have a business table joined, it might be related. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is another thread that is kind of related:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test this, try running a query that returns only a small number of records. If it works, try changing the max number of records for the service to a number smaller than 2000, and run again the 1=1 query. See if you will get results back. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 12:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506798#M12983</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2010-07-01T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506799#M12984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lance, &lt;BR /&gt;&lt;BR /&gt;How many records do you expect to be returned by the query when the where clause is 1=1? &lt;BR /&gt;Is it it the 500 records that a service defaults to, or you have changed the maximum number to a bigger than 2000 records? &lt;BR /&gt;&lt;BR /&gt;I have not tried your scenario, but I have seen this error in the situation explained in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=297004&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;And since you have a business table joined, it might be related. &lt;BR /&gt;&lt;BR /&gt;And here is another thread that is kind of related:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=303159&amp;amp;mc=2#msgid948261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To test this, try running a query that returns only a small number of records. If it works, try changing the max number of records for the service to a number smaller than 2000, and run again the 1=1 query. See if you will get results back. &lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;BR /&gt;&lt;BR /&gt;Darina&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hi darina,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the max records is set to the default.&amp;nbsp; there are only 30 records in the layer's table anyway.&amp;nbsp; for grins, i tried "PIPELINE_CENTERLINE.OBJECTID = 1" using the REST API but get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 12:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506799#M12984</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-07-01T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506800#M12985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; the first is showing the layer info, the second showing the result of the query. i get the same error.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's not a Silverlight API issue :cool: .... but anyway an issue:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only strange thing I saw in your screenshots is that the Display Field is 'ProjectName', I thought it should be 'GIS_Info.ProjectName'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Likely this doesn't explain your issue but could worth the try to reinitialize the display field in ArcMap before publishing the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Other question : Is 'Open Attribute Table' working well on this layer in ArcMap ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you are correct, the SHAPE field was hidden. unhiding it seems to resolve that particular issue. odd that ID and Find tasks returned geometry, isn't it? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If though as well that ID and Find tasks would not return geometry if SHAPE field was hidden, but...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 15:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506800#M12985</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-07-01T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Querying A layer that has it's table joined</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506801#M12986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So it's not a Silverlight API issue :cool: .... but anyway an issue:confused:&lt;BR /&gt;The only strange thing I saw in your screenshots is that the Display Field is 'ProjectName', I thought it should be 'GIS_Info.ProjectName'.&lt;BR /&gt;Likely this doesn't explain your issue but could worth the try to reinitialize the display field in ArcMap before publishing the service.&lt;BR /&gt;Other question : Is 'Open Attribute Table' working well on this layer in ArcMap ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;grrr, nope.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; it still doesn't work in the app or the REST web interface after reinitializing the display field and publishing.&amp;nbsp; but yes, the table works fine within ArcMap itself. :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 15:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querying-a-layer-that-has-it-s-table-joined/m-p/506801#M12986</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2010-07-05T15:58:10Z</dc:date>
    </item>
  </channel>
</rss>

