<?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: RPC Fault faultString when trying to use database in layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410823#M9603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; In ArcGIS Server 10 standalone tables can now be queried if they are part of and registered with a geodatabase. But in your case a temp table will be neither so this is not going to work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 17:57:02 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2011-03-30T17:57:02Z</dc:date>
    <item>
      <title>RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410818#M9598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello. I have the following code that works on a layer that has a data source of the database/table. I get the following error on the queryTask.Execute if the red line highlighted is used. I get no errors and the correct results if I use the line highlighted in Blue. It must have something to do with permissions or the userid/password the system is trying to use to select from. The layer itself comes up, just the Query fails. I do know that the column ID_ exists and the layer has the Query option checked on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[RPC Fault faultString="Unable to complete operation." faultCode="400" faultDetail="Unable to complete Query operation."]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;var queryTask:QueryTask = new QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://dg2k8esridev1/ArcGISDevelopment/rest/services/ZipCodesDemographics_FromFile/MapServer/2" rel="nofollow" target="_blank"&gt;http://dg2k8esridev1/ArcGISDevelopment/rest/services/ZipCodesDemographics_FromFile/MapServer/2&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var query:Query = new Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.where = "ID_ = '60462'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.where = "ID_ in (select distinct zip_code from dg2k3sqltest1.reference.dbo.ref_zip_codes where ref_sources_id = 25)";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.outSpatialReference = map.spatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.returnGeometry = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.outFields = [ "ID_" ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queryTask.execute(query, new AsyncResponder(onResult, onFault));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 15:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410818#M9598</guid>
      <dc:creator>DaviKucharski</dc:creator>
      <dc:date>2011-03-30T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410819#M9599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sub-queries inside a Where clause are not supported by the queryTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any valid SQL where clause operating on the fields in the layer is allowed&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 16:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410819#M9599</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-30T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410820#M9600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, thank you for your response. I am new to the ArcGIS API for Flex. If the query and queryTask will not allow me to join against another database table, do you know of a way for me to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My example is my Layer is of all Zip Codes (33,000 records somewhat). When I drill down into an area I want to only highlight the zip codes that the client has requested. This could be a large list of zip codes so I am holding them in a temp table on my database. I don't see passing a list on the querystring as acceptable. I was hoping to somehow use the layer and temp table to highlight only the zip codes in the temp table. This was available in ArcIMS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 17:22:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410820#M9600</guid>
      <dc:creator>DaviKucharski</dc:creator>
      <dc:date>2011-03-30T17:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410821#M9601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; As sub-queries are not supported. The only way I see to do this is with two query tasks as long as ref_zip_codes is a registered standalone table in a geodatabase and you are using ArcGIS Server 10 you can run the sub-query first to get the values for the second query (which is what you said you don't see as acceptable).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 17:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410821#M9601</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-30T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410822#M9602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I thought a queryTask was used with a Map Resource to query a Layer. This table would be a table of data. I didn't think you could use the queryTask for that. I do see where you are going with the theory of populate 1 queryTask and then use that queryTask as a part of the 2nd queryTask. I just don't see how you would populate the 1st queryTask with something like 'select zip_code from tmp_zipcodes_123456'. Again this temp table would be valid for 1 user and another user would have the temp table of 'select zip_code from tmp_zipcodes_987654'. They would be valid tables in the database but would have no service associated to them because of their availability.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 17:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410822#M9602</guid>
      <dc:creator>DaviKucharski</dc:creator>
      <dc:date>2011-03-30T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: RPC Fault faultString when trying to use database in layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410823#M9603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Davi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; In ArcGIS Server 10 standalone tables can now be queried if they are part of and registered with a geodatabase. But in your case a temp table will be neither so this is not going to work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 17:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/rpc-fault-faultstring-when-trying-to-use-database/m-p/410823#M9603</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-30T17:57:02Z</dc:date>
    </item>
  </channel>
</rss>

