<?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: ExtractValuesToPoints problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566921#M44403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Entering valid paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000r000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000r000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked out Spatial Analyst?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you set your workspace to "C:/Users/cgermain/Desktop/2050Maps" you can just do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ExtractValuesToPoints ("10000Points_lyr.shp", "FORESTacumina", "FORESTacumina.shp","NONE","VALUE_ONLY")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't work I would try to test arcpy.Exists on each of those datasets in your workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Exists("10000Points_lyr.shp")
arcpy.Exists("FORESTacumina")
arcpy.Exists("FORESTacumina.shp")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And have you read the help on parameters for the tool you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000002t000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000002t000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:25:28 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2021-12-12T00:25:28Z</dc:date>
    <item>
      <title>ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566918#M44400</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;SPAN&gt;I can use the interface friendly version and extract the values but I need to automate things in Python. When I follow the Help example, I get an error message &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function. ("esri.SimpleDataConverter") Create output feature class failed ERROR 010024: Error during conversion. Failed to execute (ExtractValuesToPoints)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone can help me with what is going on ? Maybe give me an example of a Python command for this tool ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlotte&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; env.workspace = "C:/Users/Burleigh Lab/Desktop/2050Maps"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ExtractValuesToPoints ("10000Points_lyr.shp", "forestacumina", "C:\Users\Burleigh Lab\Desktop\2050Maps\trial13.shp","NONE","VALUE_ONLY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function. ("esri.SimpleDataConverter") Create output feature class failed ERROR 010024: Error during conversion. Failed to execute (ExtractValuesToPoints).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566918#M44400</guid>
      <dc:creator>charlotteGermain-Aubrey</dc:creator>
      <dc:date>2012-06-11T20:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566919#M44401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have an invalid pathname.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Needs to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;r"C:\Users\Burleigh Lab\Desktop\2050Maps\trial13.shp"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566919#M44401</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-06-11T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566920#M44402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. I corrected the path name, but I still get a generic error.... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... env.workspace = "C:/Users/cgermain/Desktop/2050Maps"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... ExtractValuesToPoints ("10000Points_lyr.shp", "FORESTacumina", r"C:/Users/cgermain/Desktop/2050Maps/FORESTacumina.shp","NONE","VALUE_ONLY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function. Failed to execute (ExtractValuesToPoints).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 14:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566920#M44402</guid>
      <dc:creator>charlotteGermain-Aubrey</dc:creator>
      <dc:date>2012-06-12T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566921#M44403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Entering valid paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000r000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000r000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked out Spatial Analyst?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you set your workspace to "C:/Users/cgermain/Desktop/2050Maps" you can just do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ExtractValuesToPoints ("10000Points_lyr.shp", "FORESTacumina", "FORESTacumina.shp","NONE","VALUE_ONLY")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't work I would try to test arcpy.Exists on each of those datasets in your workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Exists("10000Points_lyr.shp")
arcpy.Exists("FORESTacumina")
arcpy.Exists("FORESTacumina.shp")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And have you read the help on parameters for the tool you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000002t000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000002t000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566921#M44403</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-12T00:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566922#M44404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;still not working... the arcpy.Exists says "true" for the first 2 items but "false" for the last one.But the last one doesn't exists since it is the outfile of the function (which doesn't work...)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Exists("10000Points_lyr.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Exists("FORESTacumina")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.Exists("FORESTacumina.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... env.workspace = "C:/Users/cgermain/Desktop/2050Maps"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... ExtractValuesToPoints("10000Points_lyr.shp", "FORESTacumina","FORESTacumina.shp","NONE","VALUE_ONLY")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: ERROR 999999: Error executing function. Failed to execute (ExtractValuesToPoints).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566922#M44404</guid>
      <dc:creator>charlotteGermain-Aubrey</dc:creator>
      <dc:date>2012-06-12T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: ExtractValuesToPoints problem</title>
      <link>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566923#M44405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you go into your geoprocessing dropdown menu and click "Results" find the error for the tool you are running and open the Messages tab to see if there is anymore useful information. You can also copy out the python snippet of the tool and paste it somewhere to see what is being passed into the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 15:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extractvaluestopoints-problem/m-p/566923#M44405</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-06-12T15:27:11Z</dc:date>
    </item>
  </channel>
</rss>

