<?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: geoprocess runs in model builder, but not in flex api in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocess-runs-in-model-builder-but-not-in-flex/m-p/281942#M6708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer and hope this helps anyone.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My original model builder had no joins in the process.&amp;nbsp; From that the model was published as a geoprocess to the server.&amp;nbsp; The flex application using the geoprocess passed parameters to it without "QUOTES" around the column names.&amp;nbsp; This process has always worked without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Based on the above results, I used the same methodology in my model builder but added a JOINS.&amp;nbsp; However, passing the parameters to the geoprocess service without "QUOTES" will not work.&amp;nbsp; Come to find out, this is consistent with the ESRI documentation stating that shapefiles and geodatabase queries need the columns quoted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone knows the answer as to why the geoprocess will work in situation number 1, but not in number 2.&amp;nbsp; However, for future reference anyone running queries to a geoprocess; make sure you "QOUTE" your column names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddie Q&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 15:20:02 GMT</pubDate>
    <dc:creator>eddiequinlan</dc:creator>
    <dc:date>2015-07-27T15:20:02Z</dc:date>
    <item>
      <title>geoprocess runs in model builder, but not in flex api</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocess-runs-in-model-builder-but-not-in-flex/m-p/281941#M6707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a geoprocess which runs fine in arc map/model builder and in REST.&amp;nbsp; However when I use the geoprocess map service the process fails.&amp;nbsp; I know why it fails but don't know how to correct it.&lt;/P&gt;&lt;P&gt;I have published many services before, but never with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my model I'm using the 'make feature layer tool' with a default SQL parameter.&amp;nbsp; The default SQL (or any other input at the tool level) works fine in arc map.&amp;nbsp; I then share the results as a geoprocess service.&amp;nbsp; The service works fine in REST.&amp;nbsp; When I try to use the service in my flex web app the job fails.&amp;nbsp; I've figured out that if I change my code in flex for the SQL parameter input to expression = "", the service works correctly.... except now I get all data.&amp;nbsp; If I manually hard code a valid SQL as a parameter input for 'submitJob', it fails.&amp;nbsp; I can use the same basic code for other geoprocess services and get the expected results.&amp;nbsp; Something is happening with the parameter input.&amp;nbsp; It seems to override the model builder default if its set to "&amp;nbsp; ", but not if I try to provide the SQL.... going crazy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 04:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocess-runs-in-model-builder-but-not-in-flex/m-p/281941#M6707</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2015-07-16T04:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: geoprocess runs in model builder, but not in flex api</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocess-runs-in-model-builder-but-not-in-flex/m-p/281942#M6708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer and hope this helps anyone.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My original model builder had no joins in the process.&amp;nbsp; From that the model was published as a geoprocess to the server.&amp;nbsp; The flex application using the geoprocess passed parameters to it without "QUOTES" around the column names.&amp;nbsp; This process has always worked without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Based on the above results, I used the same methodology in my model builder but added a JOINS.&amp;nbsp; However, passing the parameters to the geoprocess service without "QUOTES" will not work.&amp;nbsp; Come to find out, this is consistent with the ESRI documentation stating that shapefiles and geodatabase queries need the columns quoted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone knows the answer as to why the geoprocess will work in situation number 1, but not in number 2.&amp;nbsp; However, for future reference anyone running queries to a geoprocess; make sure you "QOUTE" your column names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddie Q&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 15:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocess-runs-in-model-builder-but-not-in-flex/m-p/281942#M6708</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2015-07-27T15:20:02Z</dc:date>
    </item>
  </channel>
</rss>

