<?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: arcpy.usage giving error 999999 in ArcAPI Questions</title>
    <link>https://community.esri.com/t5/arcapi-questions/arcpy-usage-giving-error-999999/m-p/865454#M97</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be what is needed to run and initialize pycharm.&amp;nbsp; For instance, when using Spyder, an initializing script is created when it is installed and used (see below).&amp;nbsp; Check your folder structure to see if there is some *.py script with pycharm's name in it.&lt;/P&gt;&lt;P&gt;arcpy.Usage does work in Spyder and ArcGIS Pro's notebooks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&lt;STRONG&gt;Install_folder&lt;/STRONG&gt;\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\&lt;STRONG&gt;Install_folder&lt;/STRONG&gt;\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2020 10:07:49 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-06-04T10:07:49Z</dc:date>
    <item>
      <title>arcpy.usage giving error 999999</title>
      <link>https://community.esri.com/t5/arcapi-questions/arcpy-usage-giving-error-999999/m-p/865453#M96</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to run any arcpy.usage(...) in the pycharm console it comes back with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; exec(code_obj, self.user_global_ns, self.user_ns)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "&amp;lt;ipython-input-3-be77ac717221&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; arcpy.Usage("JoinField_management")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 866, in Usage&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return gp.usage(tool_name)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 313, in usage&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; self._gp.Usage(*gp_fixargs(args, True)))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RuntimeError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the interpreter to:&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have imported arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know if I'm missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 08:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/arcpy-usage-giving-error-999999/m-p/865453#M96</guid>
      <dc:creator>MartinPackford</dc:creator>
      <dc:date>2020-06-04T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.usage giving error 999999</title>
      <link>https://community.esri.com/t5/arcapi-questions/arcpy-usage-giving-error-999999/m-p/865454#M97</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be what is needed to run and initialize pycharm.&amp;nbsp; For instance, when using Spyder, an initializing script is created when it is installed and used (see below).&amp;nbsp; Check your folder structure to see if there is some *.py script with pycharm's name in it.&lt;/P&gt;&lt;P&gt;arcpy.Usage does work in Spyder and ArcGIS Pro's notebooks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&lt;STRONG&gt;Install_folder&lt;/STRONG&gt;\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\&lt;STRONG&gt;Install_folder&lt;/STRONG&gt;\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 10:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/arcpy-usage-giving-error-999999/m-p/865454#M97</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-04T10:07:49Z</dc:date>
    </item>
  </channel>
</rss>

