<?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: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1184975#M64800</link>
    <description>&lt;P&gt;Is there any news about this?&lt;/P&gt;&lt;P&gt;I have the same issue with arcgis pro 2.9 and arcgis server 10.8.1&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 07:42:04 GMT</pubDate>
    <dc:creator>GisNavy</dc:creator>
    <dc:date>2022-06-22T07:42:04Z</dc:date>
    <item>
      <title>Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1036343#M60389</link>
      <description>&lt;P&gt;We recently upgraded our ArcGIS server from 10.6 to 10.8.1 and I later noticed that after publishing a geoprocessing tool, the REST service returns an error when accessed:&lt;/P&gt;&lt;P&gt;ERROR 000816: The tool is not valid.&lt;/P&gt;&lt;P&gt;The problem appears to be caused by an unresolved import. The import used to work but now I believe it is failing.&amp;nbsp; I was able to recreate the error with the default toolbox - adding the lines below to the .pyt file&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sys.path.append(r'C:\Git_Repository\ROW\DEV\ROW_as_habitat\row\consolidation')
import empty&lt;/LI-CODE&gt;&lt;P&gt;The tool runs on ArcGIS Pro OK and publishes OK. But the geoprocessing REST service fails.&lt;/P&gt;&lt;P&gt;When I copy the import file to the toolkit directory, there is no problem. The problem only happens when python has to find it outside of the current directory.&amp;nbsp; That tells me that the problem has something to do with how the consolidation is handled.&lt;/P&gt;&lt;P&gt;I assume I'll have to report this to ESRI - has anybody else had this problem?&lt;/P&gt;&lt;P&gt;I'm running this on Windows, ArcPro 2.6.1, and ArcGIS Server 10.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1036343#M60389</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-03-14T18:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1044742#M60704</link>
      <description>&lt;P&gt;Hi Don - did you ever find a solution to this issue? We've been getting the same error with the simplest of geoprocessing tools, and ESRI support cannot seem to pin down the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1044742#M60704</guid>
      <dc:creator>MichaelAugust</dc:creator>
      <dc:date>2021-04-07T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1044916#M60711</link>
      <description>&lt;P&gt;No - I got moved back to a 10.6 server where the problem doesn't seem to occur.&amp;nbsp; Once that server moves to 10.8 (any day now I hope) and I can recreate it I plan to open a problem report.&amp;nbsp; But I don't have high hopes of getting a quick resolution.&amp;nbsp; As you mentioned, it happens in the most trivial case so I don't expect there is anything I can do to work around it.&amp;nbsp; I'll post the problem report number here if I get one.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 23:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1044916#M60711</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-04-07T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1045201#M60720</link>
      <description>&lt;P&gt;Thanks, I will do the same. I think we're on our third support tech in 2 mos. trying to solve this, who has now suggested we nuke everything and reinstall our entire 10.8.1 Enterprise - so not going well. Thanks again!&lt;/P&gt;&lt;P&gt;One oddity is that we can't seem to select a Message Level when using the "Share As Web Tool", here's a snapshot - the dropdown is simply blank, maybe it's a clue for someone out there as to why our simple geoprocessing services won't run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="messages.png" style="width: 349px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10451iF3DCC9F159F9E25B/image-size/large?v=v2&amp;amp;px=999" role="button" title="messages.png" alt="messages.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 18:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1045201#M60720</guid>
      <dc:creator>MichaelAugust</dc:creator>
      <dc:date>2021-04-08T18:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048750#M60841</link>
      <description>&lt;P&gt;we're getting the same issue.&amp;nbsp; Very strange - curious if you end up on any resolutions....&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048750#M60841</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-04-19T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048757#M60842</link>
      <description>&lt;P&gt;Nothing yet.&amp;nbsp; Does anyone from ESRI (or anyone) have any ideas as to why this dropdown would not get populated? i.e. what is not talking to what in our Enterprise system? could it be a permissions issue with Server, or a security issue with Portal? I think if we could find the root cause of this little oddity our geoprocessing services might work again.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048757#M60842</guid>
      <dc:creator>MichaelAugust</dc:creator>
      <dc:date>2021-04-19T15:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048763#M60843</link>
      <description>&lt;P&gt;we're having a similar issue with the tool is not valid with arcmap and python 2.x toolboxes publishing to Enterprise 10.8.1.&amp;nbsp; Also worked fine in 10.6.1....&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048763#M60843</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-04-19T15:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048769#M60844</link>
      <description>&lt;P&gt;Yes - that's our issue as well...I'll post here if we get any news.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1048769#M60844</guid>
      <dc:creator>MichaelAugust</dc:creator>
      <dc:date>2021-04-19T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1058853#M61169</link>
      <description>&lt;P&gt;Similar issue over here. GP services published in PRO (before or after) upgrade to 10.8.1, result in&amp;nbsp;&lt;SPAN&gt;ERROR 000816: The tool is not valid.&amp;nbsp;GP services published in ArcMAP still work...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 09:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1058853#M61169</guid>
      <dc:creator>PieterE</dc:creator>
      <dc:date>2021-05-18T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1062324#M61246</link>
      <description>&lt;P&gt;For us, the problem only occurs for tools in toolboxes that are stored in a geodatabase (sde). Tools published from a toolbox in a folder work.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1062324#M61246</guid>
      <dc:creator>PieterE</dc:creator>
      <dc:date>2021-05-27T14:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Module import appears to fail in python tool box published as geoprocessing tool (ERROR 000816: The tool is not valid.)</title>
      <link>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1184975#M64800</link>
      <description>&lt;P&gt;Is there any news about this?&lt;/P&gt;&lt;P&gt;I have the same issue with arcgis pro 2.9 and arcgis server 10.8.1&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 07:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/module-import-appears-to-fail-in-python-tool-box/m-p/1184975#M64800</guid>
      <dc:creator>GisNavy</dc:creator>
      <dc:date>2022-06-22T07:42:04Z</dc:date>
    </item>
  </channel>
</rss>

