<?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: Python Toolbox Tool and Creating a Geoprocessing Service in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430530#M16642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I dont completely understand how it works on Desktop and what the return types are there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the code snippet I assumed it didnt return anything in Desktop as there wasnt any outputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just read the help on this tool... it sounds like the tool, by default provides "results" in a couple ways:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Reviewer batch job results are written to the specified session (indicated by Session) in the Reviewer Workspace.&lt;BR /&gt;A summary of the batch job is displayed in the Results window.&lt;BR /&gt;The output parameter for this tool is a table view of one row of the REVBATCHRUNTABLE table in the Reviewer Workspace. The row represents the record created when the batch job is executed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps when this tool is run in your script on desktop, the output table is simply returned. With a GP Service you have to setup the output parameter specifically for this table to be returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at its Python usage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# execute the batch job
res = arcpy.ExecuteReviewerBatchJob_Reviewer(rev_workspace,session,batch_job_file,prod_workspace)
# get the output table view from the result object
tbl = res.getOutput(0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to set that "tbl" as your output table and pass that back. Again, assuming its that table you want.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:21:18 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2021-12-11T19:21:18Z</dc:date>
    <item>
      <title>Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430523#M16635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a custom tool in a Python toolbox and want to publish it as a geoprocessing service.&amp;nbsp; It has three parameters, and it uses Make Feature Layer tool, Select By Location Tool, and the Execute Reviewer Batch Job tool.&amp;nbsp; It runs perfectly in Desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet, when I publish it and go to run it as a service, ArcGIS Server says that it runs successfully, but I get no results back.&amp;nbsp; I honestly don't think that any of my code runs, even though ArcGIS Server says that it completed.&amp;nbsp; I even started picking apart my tool to see if there was an issue with certain parts, but even when I tear it down to something extremely simple, I get nothing from ArcGIS Server.&amp;nbsp; I've registered the databases and folder locations that I'm using too with Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else been having issues trying to publish their geoprocessing tools to services?&amp;nbsp; Could I get some help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430523#M16635</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-10-02T14:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430524#M16636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I havent personally used the Batch Reviewer tool as a GP Service, but the first two tools shouldnt have any issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a quick test to be sure that isn't the issue, can you change the output to just a feature layer from the Select tool and publish this? Do you get back the selected features from the service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on this test result it'll give you an idea if its a Py-Toolbox/data issue, or specific to the Reviewer tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430524#M16636</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-10-02T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430525#M16637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had already set up the service to create two layers, one from the Make Feature Layer and another from the Selection (which I'm also making in to a feature layer).&amp;nbsp; I'm trying to output them to a folder that the service can see, but I get nothing.&amp;nbsp; Should I be outputting this to a map instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430525#M16637</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-10-02T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430526#M16638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right - folder isn't a supported return type. Its probably been mapped to "string", so your service isn't returning anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I have it wrong - are you actual output types FEATURE (class/layer/etc)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your code from &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;def getParameterInfo(self):&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430526#M16638</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-10-02T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430527#M16639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are my parameters.&amp;nbsp; The first one is accepting an input feature class, the second is a query where the user is passing in a list of OBJECTIDs from the input feature class, and the last variable is a value that helps a function later on in the code query a table for a path name to a Data Reviewer check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getParameterInfo(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ### Define parameter definitions

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0 = arcpy.Parameter(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName="Input Feature Class Location",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="edit_fc",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype="Feature Class",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType="Optional",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction="Input",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; multiValue=True)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param0.filter.list = ["Polygon", "Polyline", "Point"]

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param1 = arcpy.Parameter(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName="OID Query Expression",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="oid_query",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype="SQL Expression",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType="Optional",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction="Input")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param1.parameterDependencies = [param0.name]

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param2 = arcpy.Parameter(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName="Workflow",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="wf_name",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype="String",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType="Optional",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction="Input")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params = [param0, param1, param2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return params&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, with this tool (including the Data Reviewer part of it), I'm writing records to the Reviewer table after the Execute Reviewer Batch Job tool runs and querying the database to find out if those records are there.&amp;nbsp; The only thing I want to return is if those records exist or not; a pass or fail.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430527#M16639</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2021-12-11T19:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430528#M16640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok that clears it up, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now your tool has no outputs, so you could return pass/fail by simply having the tool "fail" with an AddError. That probably isn't the best approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want an actual return type, you can add a new output parameter of Boolean and set it as True or False to say its passed or failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do you want just a simple string (AddMessage) to say whether or not the records exist (based on your logic).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With any of the Message approaches you'll have to make sure you turn Messages on the Service to the appropriate setting (Info|Warning|Error).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately it comes down to your workflow - how do you want to tell the service user about the records? Using a message, using a return parameter or having the service simply succeed or fail.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430528#M16640</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-10-02T15:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430529#M16641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, even though it works correctly from the Desktop the way that it is now, it won't work correctly as a geoprocessing service if I don't have outputs?&amp;nbsp; I mean, when I run my tool, no errors get written to the Data Reviewer database even when I pass in features that I KNOW are going to return errors.&amp;nbsp; As far as I can see, NOTHING happens when I run the geoprocessing service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should mention that this geoprocessing service is going to be used in a Flex application, not in a geoprocessing widget, but called in underlying code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430529#M16641</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-10-02T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430530#M16642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I dont completely understand how it works on Desktop and what the return types are there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the code snippet I assumed it didnt return anything in Desktop as there wasnt any outputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just read the help on this tool... it sounds like the tool, by default provides "results" in a couple ways:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Reviewer batch job results are written to the specified session (indicated by Session) in the Reviewer Workspace.&lt;BR /&gt;A summary of the batch job is displayed in the Results window.&lt;BR /&gt;The output parameter for this tool is a table view of one row of the REVBATCHRUNTABLE table in the Reviewer Workspace. The row represents the record created when the batch job is executed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps when this tool is run in your script on desktop, the output table is simply returned. With a GP Service you have to setup the output parameter specifically for this table to be returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at its Python usage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# execute the batch job
res = arcpy.ExecuteReviewerBatchJob_Reviewer(rev_workspace,session,batch_job_file,prod_workspace)
# get the output table view from the result object
tbl = res.getOutput(0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to set that "tbl" as your output table and pass that back. Again, assuming its that table you want.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430530#M16642</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2021-12-11T19:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430531#M16643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you should just add another parameter that has a direction of Output and call it something like result and make it a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you test to see if the table has had records added write a statement that compares the number of records added with what you expect and if it is equal return "true" in your output param otherwise "false".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have any params with type output you are not going to get any output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430531#M16643</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-10-02T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430532#M16644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only result I want from the tool is whether or not the features passed or failed.&amp;nbsp; The way that I programmed my tool to determine this is by querying the table that contains the results from the Execute Reviewer Batch Job tool by using the OBJECTIDs of the features that were checked since they are stored in that table.&amp;nbsp; If records are returned from the query, then one or more of the features failed.&amp;nbsp; If nothing is returned, then the features passed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Execute Reviewer Batch Job tool should, after executing, automatically write any error records to the REVTABLEMAIN table in the database containing the Data Reviewer schema.&amp;nbsp; This isn't happening in the service.&amp;nbsp; I don't think any of the individual tools are running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the tool from ArcMap before publishing it to a geoprocessing service, do the results have to be referencing the data in the map document or can I navigate to my inputs on the file system?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 16:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430532#M16644</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-10-02T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430533#M16645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;not sure about the data referencing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would make sure the service you are publishing is synchronous just to start out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After you publish the service via ags you can then add that tool back into your toolbox in arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At that point you will have two versions of the same tool (one is disk based and the other is ags based).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you run the ags-based gp version you will see the same types of error messages in your Results pane in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That can be helpful for debugging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when published you should still be getting error/message information from your tool. It may be harder to find now though. You can check the esri logs or you can try to run your gp service tool directly from the rest api page as you will get messages back there as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In cases where you aren't sure if your code is doing things you want it to do i typically litter my code with messages coming out - one after every line if you have to. This way you will know where it breaks and why. Also, check that if the tools/methods you are calling have return params and you can pipe those out as messages as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are any of the tools you are using possible license-restricted on ags?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 16:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430533#M16645</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-10-02T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430534#M16646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply, Kevin.&amp;nbsp; I'll have to try to put the tool in my other toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Execute Reviewer Batch Job tool needs a Data Reviewer license.&amp;nbsp; I don't think that's the issue though.&amp;nbsp; When I run my tool as a GP service, ArcGIS Server says that it ran successfully, but I didn't get any results back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 16:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430534#M16646</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-10-02T16:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430535#M16647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought I'd give a short update on this issue.&amp;nbsp; The reason why I wasn't getting any results back in my SDE database was because I had some hard-coded paths to databases and features classes in my script, and when I published my toolbox to ArcGIS Server, those objects were getting copied locally on the server, which I was unaware of.&amp;nbsp; I didn't want this to happen because I needed the results to be written to an SDE database so that I could query to see if results were actually returned by the tool.&amp;nbsp; All I had to do was remove those hard-coded paths, make them parameters and set them as constants, and make sure that I had all my data sources registered on the server's data store.&amp;nbsp; The tool has been running the way it was designed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, my code was getting changed in my toolbox when I published it to the server, so I had to go to the copy on the server and change some of the code back to the way it was before publication.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 18:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430535#M16647</guid>
      <dc:creator>ChanningDale</dc:creator>
      <dc:date>2012-11-15T18:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox Tool and Creating a Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430536#M16648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the update. glad you got it working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to me that the copying of data and changing of scripts are hassles that arise at 10.1 because of the need to make these tools palatable for simple end users. and also the assumption that everyone is working in a cloud environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;its regrettable and unfortunate. i think it ties the hands of developers for purported ease of use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 19:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-toolbox-tool-and-creating-a-geoprocessing/m-p/430536#M16648</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-11-15T19:02:52Z</dc:date>
    </item>
  </channel>
</rss>

