<?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: Geoprocessing Services - Directory Parameter in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196309#M7732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar question, please let me know if it should be restated in a separate thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running a GP Service and want to save my outputs to a local File GDB.&amp;nbsp; I have tried hard coding the output file paths as a parameter, but it seems they are automatically replaced by the Scratch.GDB in an individual job directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to save the outputs from a GP Service to a local folder?&amp;nbsp; I have already registered the folder with the data store and that seems to be working alright.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kytt MacManus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geographic Information Specialist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Columbia University CIESIN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 12:40:55 GMT</pubDate>
    <dc:creator>KyttMacManus</dc:creator>
    <dc:date>2012-11-29T12:40:55Z</dc:date>
    <item>
      <title>Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196305#M7728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script tool that processes multiple files in a directory specified by the user. The user also defines the output directory. When shared as a Geoprocessing Service, it seems as if the user is unable to browse for and/or enter these folder locations, perhaps because they fall into the "container" group of input data types. One way around this might be to change the parameter type to "string"; however, this makes it less intuitive for the user, as they have to enter the exact path as text. Is there any way to allow them to navigate to a folder on the file system using a geoprocessing service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196305#M7728</guid>
      <dc:creator>AmySmith3</dc:creator>
      <dc:date>2012-11-01T14:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196306#M7729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The workspace input parameter isn't supported with a GP Service (as a parameter). We do support "strings" though as you pointed out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1 we map the unsupported parameter to either string (user defined) or hardcoded it (constant).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you're consuming the Service inside Desktop? When you open the tool dialog inside ArcMap you just have a string box to put a path in. I can't envision another way around this as the Service now has STRING as input. You could write a little script tool and distribute that to your Desktop users. The tool would take a folder as input and pass the string representation of that to the Service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you're using a web application that you've built - you can build in a file open dialog and just get the value of that and pass it to the service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196306#M7729</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-11-01T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196307#M7730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The workspace input parameter isn't supported with a GP Service (as a parameter). We do support "strings" though as you pointed out.&lt;BR /&gt;At 10.1 we map the unsupported parameter to either string (user defined) or hardcoded it (constant).&lt;BR /&gt;&lt;BR /&gt;It sounds like you're consuming the Service inside Desktop? When you open the tool dialog inside ArcMap you just have a string box to put a path in. I can't envision another way around this as the Service now has STRING as input. You could write a little script tool and distribute that to your Desktop users. The tool would take a folder as input and pass the string representation of that to the Service. &lt;BR /&gt;Or if you're using a web application that you've built - you can build in a file open dialog and just get the value of that and pass it to the service.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the service would be consumed inside Desktop. I would like the service to copy all files in the first user-defined directory to a temporary directory on the server, process them, produce output files, archive them in a zip file, and transfer them to the second user-defined directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, this tool would be shared as a geoprocessing service to allow for central access and speedy processing. It sounds like there is not a straight-forward method to do this with ArcGIS for Server 10.1. Do you have any suggestions? Any thoughts or advice would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 17:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196307#M7730</guid>
      <dc:creator>AmySmith3</dc:creator>
      <dc:date>2012-11-01T17:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196308#M7731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Amy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a sort of "classic" GP Server problem: how can GP Server work with "user supplied data". GP Server can only execute against data that it has access to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Typically thats either "project" data: data which is essential to the service that the server has access to and doesn't change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or user supplied input, generally are simple strings, numbers, or digitized features for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your situation you want to get more complex data / project data / multiple datasets over to the Server for it to crunch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is where you have to really define your workflow to achieve desired results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, Server needs the data to act on, so the problem is how to get the data to the Server. There is no mechanism to pass a "folder" to the Server and say "upload everything in here".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you're using Desktop as the client, you can pass a &lt;/SPAN&gt;&lt;STRONG&gt;file&lt;/STRONG&gt;&lt;SPAN&gt;to Server. The best way I can think to do this would be to have your user zip up the files on their harddrive, then have the GP Service accept a file input (instead of a folder). Desktop has the ability to send the file to the Server, and the service with a few lines of Python code could unzip the contents of the file to a local directory, perform some operations, then zip up the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative approach if your users share a common folder that the Server has access to would be to move their data to this folder manually. Then in the Service they submit the path to the data (as a string), and because the Server has access to that path, it finds the data and crunches it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I personally like approach #1, but your users, internal network and deployment criteria will determine which method works best for you.&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>Thu, 01 Nov 2012 21:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196308#M7731</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-11-01T21:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196309#M7732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar question, please let me know if it should be restated in a separate thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running a GP Service and want to save my outputs to a local File GDB.&amp;nbsp; I have tried hard coding the output file paths as a parameter, but it seems they are automatically replaced by the Scratch.GDB in an individual job directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to save the outputs from a GP Service to a local folder?&amp;nbsp; I have already registered the folder with the data store and that seems to be working alright.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kytt MacManus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geographic Information Specialist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Columbia University CIESIN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196309#M7732</guid>
      <dc:creator>KyttMacManus</dc:creator>
      <dc:date>2012-11-29T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Directory Parameter</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196310#M7733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Desktop has the ability to send the file to the Server, and the service with a few lines of Python code could unzip the contents of the file to a local directory, perform some operations, then zip up the output.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A very belated thank you for your response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if you could point me in the direction of some help documentation on returning an output file to the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 19:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-services-directory-parameter/m-p/196310#M7733</guid>
      <dc:creator>AmySmith3</dc:creator>
      <dc:date>2012-12-26T19:32:15Z</dc:date>
    </item>
  </channel>
</rss>

