<?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 XYTableToPoint creating empty feature class in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524774#M87232</link>
    <description>&lt;P&gt;it requires a "table view"&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-table-to-point.htm" target="_blank"&gt;XY Table To Point (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-table-view.htm" target="_blank"&gt;Make Table View (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 22:02:50 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2024-08-20T22:02:50Z</dc:date>
    <item>
      <title>Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524754#M87228</link>
      <description>&lt;P&gt;Using XY Table to Point with python creates an empty feature class. I use the exact same data and settings in ArcPro and it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things I've checked: this is the correct coordinate system and the fields are in fact populated by valid coordinates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this worked fine before I upgraded to 3.3.1, but I'm not 100% sure on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;lines = r'C:\Users\...\workspace.gdb\lines'&lt;BR /&gt;info = arcpy.da.Describe(lines)&lt;BR /&gt;s = info['spatialReference']&lt;BR /&gt;results = arcpy.management.XYTableToPoint(in_table = lines,&lt;BR /&gt;out_feature_class = r'memory\test_results',&lt;BR /&gt;x_field = 'start_x',&lt;BR /&gt;y_field = 'start_y',&lt;BR /&gt;coordinate_system = s)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scosh_0-1724188440544.png" style="width: 701px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113024i6989B3E160B60343/image-dimensions/701x205?v=v2" width="701" height="205" role="button" title="Scosh_0-1724188440544.png" alt="Scosh_0-1724188440544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 21:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524754#M87228</guid>
      <dc:creator>Scosh</dc:creator>
      <dc:date>2024-08-20T21:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524755#M87229</link>
      <description>&lt;P&gt;right click on the ran instance of the tool under history and send its code to the Python Window compare that to your code and adapt accordingly if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 21:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524755#M87229</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2024-08-20T21:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524768#M87230</link>
      <description>&lt;P&gt;I actually just figured it out. This took doesn't work with the feature class's path as the input. Every other tool I've used accepts the path, but not this one. And creating a feature layer from the path doesn't help either.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I had to copy the data to a memory feature class first. That's very annoying.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 21:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524768#M87230</guid>
      <dc:creator>Scosh</dc:creator>
      <dc:date>2024-08-20T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524774#M87232</link>
      <description>&lt;P&gt;it requires a "table view"&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-table-to-point.htm" target="_blank"&gt;XY Table To Point (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-table-view.htm" target="_blank"&gt;Make Table View (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 22:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524774#M87232</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-08-20T22:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524822#M87239</link>
      <description>&lt;P&gt;That does not appear to help, at least not in Pro 3.3.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that is helping is using arcpy.management.CopyFeatures to convert the gdb feature class path to a memory feature class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you don't convert it BEFORE doing a selection, then you have to convert the selection results back to a gdb feature class and then back to a memory feature class. If you just take the selection results and make a feature layer or new memory feature class, the XYTabletoPoint tool won't work (empty output). The crazy thing is the input data appears to be the same no matter what. It still has the same number of features and correct attributes. There just seems to be something mysterious hidden in the input object that the XY tool doesn't like.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 23:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524822#M87239</guid>
      <dc:creator>Scosh</dc:creator>
      <dc:date>2024-08-20T23:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524840#M87241</link>
      <description>&lt;P&gt;how are you running the script?&amp;nbsp; a python window from within Pro? a Pro notebook with Pro open? a standalone script with Pro closed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;a memory featureclass is a "view" of the data which may be why it works&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 00:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1524840#M87241</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-08-21T00:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1525082#M87257</link>
      <description>&lt;P&gt;I've been running it as a standalone script from IDLE.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1525082#M87257</guid>
      <dc:creator>Scosh</dc:creator>
      <dc:date>2024-08-21T14:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1525240#M87279</link>
      <description>&lt;P&gt;It requires a table view as suggested in my previous post, IDLE isn't connected to Pro whereas the python window is&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1525240#M87279</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-08-21T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy XYTableToPoint creating empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1528197#M87576</link>
      <description>&lt;P&gt;I don't understand what you mean. I tried creating a table view in my script and it didn't help.&lt;/P&gt;&lt;P&gt;Are you saying that table views don't work in IDLE, or are you just saying IDLE isn't connected to Pro, because of my comment that I was using Pro 3.3.1? I only mentioned that because I thought ArcPy got updated whenever a new version of Pro came out.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 20:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-xytabletopoint-creating-empty-feature-class/m-p/1528197#M87576</guid>
      <dc:creator>Scosh</dc:creator>
      <dc:date>2024-08-27T20:41:38Z</dc:date>
    </item>
  </channel>
</rss>

