<?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: CreateRandomPoints_management creates empty feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521223#M40862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without the other code, hard to tell what you are loading as your "polygon" layer, but I see the cost tools do not support feature classes.&amp;nbsp; Only raster and feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you running MakeFeatureLayer on your polygon before you use it as input to your script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 15:14:08 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2013-07-22T15:14:08Z</dc:date>
    <item>
      <title>CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521222#M40861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm totally lost and on the verge of a mental breakdown. I'm trying to write a script for an automatic CostPath analysis and I'm getting very weird results and errors. Basicly what I want is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm creating a CostDistance Raster dataset and the backlink set by multiplying different Raster Datasets with randomly generated numbers and using a polygon-feature class as the starting point. so far so good. Then I create four random points, constraint by four polygones to act as the destination. When I start the CostPath analysis, I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "E:\My Dropbox\Diss\Python Workspace\GIS Tutorial\src\test_rand.py", line 216, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outCostPathFrankreich = CostPath(PFrankreich, outCostDist, outBkLinkRaster, "BEST_SINGLE", "FID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Programme\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 693, in CostPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination_field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Programme\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Utils.py", line 47, in swapper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Programme\ArcGIS\Desktop10.0\arcpy\arcpy\sa\Functions.py", line 686, in wrapper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; destination_field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Programme\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 474, in &amp;lt;lambda&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 010045: COSTPATH: The number of FROM cells is 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Funny thing: When I look in my folder, there are four point features created, each with a point within my constraining feature class. So the points exist, but is does not work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here are some code snippets that may help to understand the mess I made:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont post all the code to keep it small, if you need it, then please ask! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import sys
sys.path.append("C:/Programme/ArcGIS/Desktop10.0/arcpy/arcpy")

import random
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput = True

arcpy.CheckOutExtension("Spatial")


#load constraining feature
ZielFrankreich = "E:/CORINE/CP_Paper3/Auswertung/basedata.gdb/FrancePointBuffer"

#create the random point
PFrankreich= arcpy.CreateRandomPoints_management("E:/CORINE/CP_Paper3/Auswertung", "randFrankreich", ZielFrankreich, "", 1)

#CostPath analysis, outCostDist, outBkLinkRaster have already been created, but to keep the codeblock as small as possible i dondt post it 
outCostPathFrankreich = CostPath(PFrankreich, outCostDist, outBkLinkRaster, "BEST_SINGLE", "FID")

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has any idea that would be great. As I said, I'm so completly frustrated.... If you need any additional information, please ask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, thanks a lot in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 14:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521222#M40861</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-22T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521223#M40862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without the other code, hard to tell what you are loading as your "polygon" layer, but I see the cost tools do not support feature classes.&amp;nbsp; Only raster and feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you running MakeFeatureLayer on your polygon before you use it as input to your script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 15:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521223#M40862</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-22T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521224#M40863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rzufelt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply. I use polygones at two points:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. to set the starting point for the CostDistance Analysis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. as a constraining feature class for the creation of the random points&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didnt apply "MakeFeatureLayer on it, will try that tomorrow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is very strange, when I make the analysis by hand, i.e. use alle the tools one after another from the toolbox, then its working....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, will post if you saved me from going crazy &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone else has any suggestions, they are still very very appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 15:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521224#M40863</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-22T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521225#M40864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you mean it runs "inside" of Arc, but not as stand alone, would really suspect it is related to feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS will on-the-fly create the feature layers for tools that require it for input, silently (if running within Arc).&amp;nbsp; If you pick from the drop-down list, you never know if you are getting the layer or feature class itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The help on the create random points is not quite right, as it says Random points will be generated inside or along the features in this feature class. The constraining feature class can be point, multipoint, line, or polygon. Yet, immediatly next to it, says Data Type = Feature LAYER????&amp;nbsp; (what is it, can't be both)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The cost distance/path both say they need feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this gets you going,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 16:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521225#M40864</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-22T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521226#M40865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rzufelt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again a lot! This makes (in a very weird way) sense, I'll try it tomorrow when I'm in the office. If this is it, you've earned a big aknowledgment in my thesis &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll report if this was the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have good night,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 20:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521226#M40865</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-22T20:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521227#M40866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I tried and failed &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; I used the MakeFeatureLayer command on all shapefiles which are used in functions which require a feature layer... but still no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still get the same error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 010045: COSTPATH: The number of FROM cells is 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010067: Error in executing grid expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CostPath).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's so annoying, the layerfile exists, the point exists, and when I use the tools from the toolbox in arcGIS step by step it works, but not in the script itself... And since I have to do around 10.000 CostPath analysis, thats not really an option....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still hoping for a miracle &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 10:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521227#M40866</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-23T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521228#M40867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that's too bad, was hoping that would solve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it is working in the tool(s), I'm going to have assume you have seen this: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vq0000000n010045"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00vq0000000n010045&lt;/A&gt;&lt;SPAN&gt; and ensured you data meets these requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp;&amp;nbsp; Description&lt;BR /&gt;The input that identifies those cells from which the least-cost path is determined does not contain any valid values. If the input is a raster, it should consist of cells that have valid values (zero is a valid value), and the remaining cells must be assigned NoData.&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;Ensure that the raster you specify as the destination dataset has some cells with a valid value (not NoData). Check the documentation for Cost Path for further information.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You say it works "tool by tool", have you created a new model in ArcMap, then load each tool into that.&amp;nbsp; Once you get it to run in the model, you can export to python script.&amp;nbsp; Arc is not the "best" python code writer around, but you might see something in the exported code that gives a clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521228#M40867</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-23T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521229#M40868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rzufelt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea of building it up in the model builder and then export to a python script is interesting, I'll have a look at that tomorrow. I posted the code in another post, since i got another error message, saying that the "VAT will not be built". Maybe you could have a look at my code here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/89042-CostPath-All-cells-in-grid-have-NODATA-value.-VAT-will-not-be-built"&gt;http://forums.arcgis.com/threads/89042-CostPath-All-cells-in-grid-have-NODATA-value.-VAT-will-not-be-built&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry for double posting, but i thought the original title of the thread could be missleading with the new error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate all you're doing so far!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 15:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521229#M40868</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-23T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521230#M40869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Problem seems to be solved. The reason was this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Somehow the extent of the soure layer for the costdistance analysis was way smaller, leading to a costdistance and backlink layer, which were also smaller. In the following CostPath analysis the destination points were out of bound, thus leading to the error message "ERROR 010045: COSTPATH: The number of FROM cells is 0." I fixed the extent of the source layer for the costdistance analysis and it worked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that it worked within ArcGIS, because the environment settings were not "union of input". Instead it was set to a fixed processing extent, thus not creating the problem within ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used your tip of recreating the script in the model builder and then exporting it to a python script. There I saw, that with my script everything was right, so it had to be something else. Funny thing: When exporting it to a python script, it uses the ArcGIS 9.3 syntax....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So thank you very much rzufelt for your time, I really appreciated it and it helped me through the worst part &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, this night I get a good sleep &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 20:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521230#M40869</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-24T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521231#M40870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good to see you got it working.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These get pretty difficult to debug the code when it's not the code causing the issue :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You say it is exporting in 9.3 syntax?&amp;nbsp; Do you mean that it is using the gp. instead of arcpy.?&amp;nbsp; What version you exporting it from?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not noticed this from my 10.0 and 10.1 box, but maybe I'm just not that familiar with the 9.3 syntax.&amp;nbsp; All mine export with arcpy though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 21:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521231#M40870</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-24T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRandomPoints_management creates empty feature class</title>
      <link>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521232#M40871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Version 10.0. In the exported Python script the command for the costdistance for example was arcpy.gp.CostDistance_sa()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think in ArcGIS 10.0 the command is arcpy.CostDistance() or arcpy.sa.CostDistance()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also the command in ArcGIS 9.3 had 5 parameters, instead of 4 in ArcGIS 10.0. Still the arcpy.gp.CostDistance_sa() works in Version 10.0... Strange, but at this point I just accept the wonders that are ArcGIS &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a good night,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 22:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createrandompoints-management-creates-empty/m-p/521232#M40871</guid>
      <dc:creator>DominikFechter</dc:creator>
      <dc:date>2013-07-24T22:16:10Z</dc:date>
    </item>
  </channel>
</rss>

