<?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: Workflow manager Get Job AOI in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397160#M31340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Henk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this issue, there is a problem with the way the Workflow Manager toolboxes were added to the system toolbox so import Arcpy is no longer sufficient to get access to the tools within. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are working on correcting this at a later release, but the workaround for this is to explicitly import/add the Workflow Manager toolbox after you have imported Arcpy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.importToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Workflow Manager Tools.tbx")&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding this line to your code should resolve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tope&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 15:16:08 GMT</pubDate>
    <dc:creator>TopeBello</dc:creator>
    <dc:date>2011-06-17T15:16:08Z</dc:date>
    <item>
      <title>Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397152#M31332</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 created a model and included the tool Get Job AOI from the Workflow Manager Tool toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then i created a script from the model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# ---------------------------------------------------------------------------
# GetAOI.py
# Created on: 2011-06-10 14:43:14.00000
#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("JTX")


# Local variables:
AOI = "AOI"

# Process: Get Job AOI
arcpy.GetJobAOI_WMX("114298", AOI, "")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model runs without any problems, but the script gives me this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;&amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'GetJobAOI_WMX'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am i missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greeting, Henk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 11:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397152#M31332</guid>
      <dc:creator>HenkZwols</dc:creator>
      <dc:date>2011-06-10T11:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397153#M31333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone an idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 10:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397153#M31333</guid>
      <dc:creator>HenkZwols</dc:creator>
      <dc:date>2011-06-14T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397154#M31334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How did you add that tool to the model? Did you drag it out of a toolbox? I cant find any documentation on that tool. If you got it from a toolbox you should be able to right click on the tool and see its help docs. The help doc will have the proper syntax for it in python. The error you are getting is that the tool, as it is in your code, doesnt exist in the arcpy site package.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 19:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397154#M31334</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-06-14T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397155#M31335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also see that error quite often when I'm running a 9.x script in 10.x.&amp;nbsp; Do you have the case (upper/lower) correct? - &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GetJobAOI_WMX&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 19:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397155#M31335</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2011-06-14T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397156#M31336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How did you add that tool to the model? Did you drag it out of a toolbox? I cant find any documentation on that tool. If you got it from a toolbox you should be able to right click on the tool and see its help docs. The help doc will have the proper syntax for it in python. The error you are getting is that the tool, as it is in your code, doesnt exist in the arcpy site package.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I also see that error quite often when I'm running a 9.x script in 10.x.&amp;nbsp; Do you have the case (upper/lower) correct? - &lt;SPAN style="font-style:italic;"&gt;GetJobAOI_WMX&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your replies. I drag it out of the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Workflow Manager Tool &lt;/SPAN&gt;&lt;SPAN&gt;toolbox indeed. This helptext is shown after right click:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;STRONG&gt;Get Job AOI (Workflow Manager) &lt;/STRONG&gt;ArcGIS 10 &lt;BR /&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;BR /&gt;Gets the job's area of interest layer as a feature layer. This layer can be used to perform other analysis by plugging the output into other geoprocessing tools in a model.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Usage&lt;/STRONG&gt;&lt;BR /&gt;The input job id must be for a job that currently exists and has an AOI defined. If an AOI doesn't exist, an empty output will be generated. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;&lt;BR /&gt;GetJobAOI_wmx (Input_JobID, aoi_Layer, {Input_DatabasePath})&lt;BR /&gt;Parameter Explanation Data Type &lt;BR /&gt;Input_JobID The ID for the job's AOI retrieved. &lt;BR /&gt; String &lt;BR /&gt;aoi_Layer The layer name for the AOI retrieved. &lt;BR /&gt; Feature layer &lt;BR /&gt;Input_DatabasePath&lt;BR /&gt;(Optional) The Workflow Manager database connection file for the input job. &lt;BR /&gt; connection file (.jtc) &lt;BR /&gt;&lt;STRONG&gt;Code Sample&lt;/STRONG&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Get Job AOI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Check out any necessary licenses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("JTX")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Script arguments&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input_DatabasePath = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input_JobID = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AOI_Layer = "AOILayer_Job1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Get Job AOI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.GetJobAOI_WMX(Input_JobID, AOI_Layer, Input_DatabasePath)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Environments&lt;BR /&gt;This tool does not use any geoprocessing environments&lt;BR /&gt;Licensing Information&lt;BR /&gt;ArcView: No&lt;BR /&gt;ArcEditor: Requires Workflow Manager&lt;BR /&gt;ArcInfo: Requires Workflow Manager&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It just not runs in a script ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 06:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397156#M31336</guid>
      <dc:creator>HenkZwols</dc:creator>
      <dc:date>2011-06-15T06:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397157#M31337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah! MB exported with _WMX and it should be _wmx. In the 9.3 and older geoprocessor capitalization didnt matter. At 10 it started mattering.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 11:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397157#M31337</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-06-15T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397158#M31338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ah! MB exported with _WMX and it should be _wmx. In the 9.3 and older geoprocessor capitalization didnt matter. At 10 it started mattering.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It still gives me &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'GetJobAOI_wmx'&lt;/SPAN&gt;&lt;SPAN&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397158#M31338</guid>
      <dc:creator>HenkZwols</dc:creator>
      <dc:date>2011-06-17T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397159#M31339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well the doc you posted says syntax should be arcpy.GetJobAOI_wmx (Input_JobID, aoi_Layer, {Input_DatabasePath}). I wonder if anyone from esri would be willing to chime in on this. I dont see anything in the python help either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397159#M31339</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-06-17T12:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397160#M31340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Henk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this issue, there is a problem with the way the Workflow Manager toolboxes were added to the system toolbox so import Arcpy is no longer sufficient to get access to the tools within. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are working on correcting this at a later release, but the workaround for this is to explicitly import/add the Workflow Manager toolbox after you have imported Arcpy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;arcpy.importToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Workflow Manager Tools.tbx")&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding this line to your code should resolve this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tope&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 15:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397160#M31340</guid>
      <dc:creator>TopeBello</dc:creator>
      <dc:date>2011-06-17T15:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397161#M31341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tope, thats the trick (when using arcpy.GetJobAOI_&lt;/SPAN&gt;&lt;STRONG&gt;WMX&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Import arcpy module
import arcpy
arcpy.ImportToolbox(r"C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Workflow Manager Tools.tbx")

# Check out any necessary licenses
arcpy.CheckOutExtension("JTX")

# Process: Get Job AOI
arcpy.GetJobAOI_WMX(234567, "AOI")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings, Henk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397161#M31341</guid>
      <dc:creator>HenkZwols</dc:creator>
      <dc:date>2021-12-11T18:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow manager Get Job AOI</title>
      <link>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397162#M31342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Henk, for the question and Topeb for the answer, just what I needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Harald&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/workflow-manager-get-job-aoi/m-p/397162#M31342</guid>
      <dc:creator>HaraldSchipper</dc:creator>
      <dc:date>2011-09-06T10:52:55Z</dc:date>
    </item>
  </channel>
</rss>

