<?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: Error 000824 - Feature to Point in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208743#M16156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;IYou need to import &lt;STRONG&gt;arcinfo&lt;/STRONG&gt; first, otherwise you will start an instance of whatever license you are normally consuming. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting.. I only use ArcInfo or should I say "ArcGIS for Desktop Advanced" on this particular machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, I am trying your suggestion.&amp;nbsp; Will post back results soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael - Sorry didn't see your post when I replied.&amp;nbsp; I am running the scripts standalone (testing for a batch file).&amp;nbsp; When using the software, I have always used the Advanced license.&amp;nbsp; The machine is also an LM, hosting licenses for Basic and Standard as well, but Administrator is set to use Advanced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 18:10:57 GMT</pubDate>
    <dc:creator>ChristopherBlinn1</dc:creator>
    <dc:date>2014-05-13T18:10:57Z</dc:date>
    <item>
      <title>Error 000824 - Feature to Point</title>
      <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208740#M16153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did post in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/24887-ERROR-000824-The-tool-is-not-licensed." rel="nofollow" target="_blank"&gt;this discussion forum&lt;/A&gt;&lt;SPAN&gt; but felt like this was more of a Question/Answer forum post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop 10.2.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python 2.7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Receiving "Tool is not licensed" error when running this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Import arcpy module import arcpy from arcpy import env import os&amp;nbsp; # Overwrite pre-existing files arcpy.env.overwriteOutput = True&amp;nbsp; os.environ['ESRI_SOFTWARE_CLASS']='Professional' #Added based on forum suggestion arcpy.CheckOutExtension('Spatial') #Added based on forum suggestion&amp;nbsp; Input = "C:\\GIS_DATA\\FGDB.gdb\\InputPolygons" Input_Layer = "Feature_Layer" Output = "C:\\GIS_DATA\\FGDB.gdb\\OutputPoints"&amp;nbsp; try: &amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(Input, Input_Layer, "", "", "field alias VISIBLE NONE") &amp;nbsp;&amp;nbsp; arcpy.FeatureToPoint_management(Input_Layer, Output, "CENTROID")&amp;nbsp; except: &amp;nbsp;&amp;nbsp; print arcpy.GetMessages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Result:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Failed to execute. Parameters are not valid. ERROR 000824: The tool is not licensed. Failed to execute (FeatureToPoint).&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Never had this issue before.&amp;nbsp; Migrating update scripts from one version of ArcGIS (10.0 SP5) to another (10.2.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208740#M16153</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2014-05-13T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000824 - Feature to Point</title>
      <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208741#M16154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have encountered this as well...I think the problem is coming from importing arcpy first. You need to import &lt;/SPAN&gt;&lt;STRONG&gt;arcinfo&lt;/STRONG&gt;&lt;SPAN&gt; first, otherwise you will start an instance of whatever license you are normally consuming. Try doing this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcinfo

# Import arcpy module
import arcpy
from arcpy import env
import os

# Overwrite pre-existing files
arcpy.env.overwriteOutput = True

Input = "C:\\GIS_DATA\\FGDB.gdb\\InputPolygons"
Input_Layer = "Feature_Layer"
Output = "C:\\GIS_DATA\\FGDB.gdb\\OutputPoints"

try:
&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(Input, Input_Layer, "", "", "field alias VISIBLE NONE")
&amp;nbsp;&amp;nbsp; arcpy.FeatureToPoint_management(Input_Layer, Output, "CENTROID")

except:
&amp;nbsp;&amp;nbsp; print arcpy.GetMessages()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attempting to change the software class to Professional &lt;/SPAN&gt;&lt;STRONG&gt;after&lt;/STRONG&gt;&lt;SPAN&gt; importing arcpy will not work because importing arcpy is setting your class key to the current version. Also, you should not need to check out a spatial analyst license for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I liked your changing the os environment variable so I tested to make sure this also works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
os.environ['ESRI_SOFTWARE_CLASS']='Professional'

import arcpy
print arcpy.ProductInfo()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just make sure to import arcinfo or set the os environment to professional &lt;/SPAN&gt;&lt;STRONG&gt;before importing arcpy&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208741#M16154</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000824 - Feature to Point</title>
      <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208742#M16155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Christopher:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per Caleb's very informative thread, are you running your script from a lower level version of ArcMap (e.g. your computer is licensed for Basic or Standard) but you are using a professional level license to access the spatial analyst in your python script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208742#M16155</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-05-13T18:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000824 - Feature to Point</title>
      <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208743#M16156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;IYou need to import &lt;STRONG&gt;arcinfo&lt;/STRONG&gt; first, otherwise you will start an instance of whatever license you are normally consuming. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interesting.. I only use ArcInfo or should I say "ArcGIS for Desktop Advanced" on this particular machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, I am trying your suggestion.&amp;nbsp; Will post back results soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael - Sorry didn't see your post when I replied.&amp;nbsp; I am running the scripts standalone (testing for a batch file).&amp;nbsp; When using the software, I have always used the Advanced license.&amp;nbsp; The machine is also an LM, hosting licenses for Basic and Standard as well, but Administrator is set to use Advanced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208743#M16156</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2014-05-13T18:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000824 - Feature to Point</title>
      <link>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208744#M16157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The fix was adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import arcinfo&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the tips!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 19:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000824-feature-to-point/m-p/208744#M16157</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2014-05-13T19:39:30Z</dc:date>
    </item>
  </channel>
</rss>

