<?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: Publishing a GP service with a date variable issue. in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413623#M13974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Angel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may want to try either the extract or datepart as part of your expression instead. Check out &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/40088Technical "&gt;Article 40088 - HowTo:&amp;nbsp; Search for specific parts of a date stored in a Date-Time field&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible that this is failing because you don't include time information. You can use the information outlined in the article to pick the parts of the date/time that you are looking to select on. Also, check out the date section of the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt;&lt;SPAN&gt; to see if that also has the information that might help you get this right for processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 18:09:55 GMT</pubDate>
    <dc:creator>StephanieWendel</dc:creator>
    <dc:date>2012-08-14T18:09:55Z</dc:date>
    <item>
      <title>Publishing a GP service with a date variable issue.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413622#M13973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a mxd with a sewer feature class and a&amp;nbsp; sql table which I joined.&amp;nbsp; Using modelbuilder I did a&amp;nbsp; SelectLayerByAttribute where by the user input&amp;nbsp; two dates, as part of the modelbuilder parameters, which work correctly within model builder when run. The date&amp;nbsp; field is with the table (not on the Sewer layer). When the tool is run from the toolbox is is also working correctly.&amp;nbsp;&amp;nbsp; Yet when I published and then try to run the tool from the server I get a invalid SQL error message ( see sql1.jpg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The expression below is what is used by SelectLayerByAttribute tools. I am thinking that sql does not like the "date" that is required to run the selection in modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TL_DT_INSP &amp;gt;= date '%Start Date%'&amp;nbsp;&amp;nbsp; and TL_DT_INSP &amp;lt;= date '%End Date%'&amp;nbsp;&amp;nbsp; and gbagis.GBA.SWNETG.OBJECTID &amp;gt; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clues as to how I might publish a tool without the "date"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413622#M13973</guid>
      <dc:creator>AngelGonzalez</dc:creator>
      <dc:date>2012-08-13T19:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a GP service with a date variable issue.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413623#M13974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Angel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may want to try either the extract or datepart as part of your expression instead. Check out &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/40088Technical "&gt;Article 40088 - HowTo:&amp;nbsp; Search for specific parts of a date stored in a Date-Time field&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible that this is failing because you don't include time information. You can use the information outlined in the article to pick the parts of the date/time that you are looking to select on. Also, check out the date section of the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt;&lt;SPAN&gt; to see if that also has the information that might help you get this right for processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 18:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413623#M13974</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2012-08-14T18:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a GP service with a date variable issue.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413624#M13975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use a date variable with select by attributes against a shapefile and am having a similar problem. Modelbuilder's date type variable reformats the needed date format that I type in...yyyy-mm-dd to mm/dd/yyyy. Of course this mm/dd/yyyy format does not work with a shapefile. The documentation states that SQL used against a date column in a shapefile needs to be formatted as &lt;EM&gt;&lt;STRONG&gt;date 'yyyy-mm-dd'&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working with ArcGIS Desktop 10.01, service pack 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_______________&lt;/P&gt;&lt;P&gt;Please bring back the old arcgis forums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 09:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/publishing-a-gp-service-with-a-date-variable-issue/m-p/413624#M13975</guid>
      <dc:creator>PaulLohr</dc:creator>
      <dc:date>2014-09-07T09:36:58Z</dc:date>
    </item>
  </channel>
</rss>

