<?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: MakeXYEventLayer from python addin dataset does not exist in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72198#M5937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Can someone help me work out why this error message is persisting&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably because you are using Personal Geodatabase and things are executing in 64-bit processes (just a guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you move everything into a File Geodatabase and then run your script and see if it works.&amp;nbsp; Other than that, you'll likely need to explicitly set your script to run 32-bit because, well... that's MS Access (.mdb).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 19:56:19 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2015-12-07T19:56:19Z</dc:date>
    <item>
      <title>MakeXYEventLayer from python addin dataset does not exist</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72194#M5933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python addin which is running a custom toolbox. Part of the python script linked to the toolbox is suppose to use the arcpy.MakeXYEventLayer_management tool to create a point feature class from a table in my personal geodatabase. The problem I am having is that it keeps coming up with the error saying that the dataset does not exist or is not supported (below). When I do the same process manually it works fine and the MakeXYEventLayer tool creates the point feature class. I am not sure why it is unable to detect the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000732: XY Table: Dataset D:\SAGIS Conversion\SAGIS Models Test\Model_2_Wick River_T1 - Copy (17)\SAGIS_Wick_River_2.mdb\SimWaterBodiesT1 does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (MakeXYEventLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
import sys

SAGIS_model_new = [arcpy.GetParameterAsText(0)]
model_pos = 0
for model in SAGIS_model_new:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureList = arcpy.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "SimWaterBodiesCent" in featureList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("SimWaterBodiesCent feature class already exists within " + Model_Name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SimWaterBodies = os.path.join(SAGIS_model_new[model_pos], "SimWaterBodies")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SimWaterBodiesT1 = os.path.join(SAGIS_model_new[model_pos], "SimWaterBodiesT1")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x_coords = "CentroidX"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y_coords = "CentroidY"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_Layer = "SimWaterBodiesCent"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spatial_reference = arcpy.Describe(SimWaterBodies).spatialReference



&lt;SPAN style="color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeXYEventLayer_management(SimWaterBodiesT1, x_coords, y_coords, out_Layer, spatial_reference, "")&lt;/SPAN&gt;
&lt;SPAN style="color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(out_Layer, simcat, "SimWaterBodiesCent")&lt;/SPAN&gt;

&lt;SPAN style="color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model_pos = model_pos +1&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me work out why this error message is persisting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:47:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72194#M5933</guid>
      <dc:creator>BenjaminSimpson</dc:creator>
      <dc:date>2021-12-10T22:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer from python addin dataset does not exist</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72195#M5934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your python addin calling the above script? Can you show have you're calculating the path to the geodatabase? Are you just pointing to a known location or did you include the data within the addin structure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72195#M5934</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-12-07T17:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer from python addin dataset does not exist</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72196#M5935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be because of the parentheses that are in the file path to the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72196#M5935</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-12-07T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer from python addin dataset does not exist</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72197#M5936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my python addin is calling my custom toolbox which contains this script. Its being called from a toolbar button. The input for the tool is the SAGIS_model_new variable which allows the user to select the geodatabase. This is providing a list of selected geodatabase paths which the script is working from. This script will eventually run these processes and more on multiple geodatabases. The other arc tools which I have used in my full script have run correctly (e.g. AddGeometryAttributes, CreateTable and CreateFeatureclass).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that answer your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72197#M5936</guid>
      <dc:creator>BenjaminSimpson</dc:creator>
      <dc:date>2015-12-07T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: MakeXYEventLayer from python addin dataset does not exist</title>
      <link>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72198#M5937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Can someone help me work out why this error message is persisting&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably because you are using Personal Geodatabase and things are executing in 64-bit processes (just a guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you move everything into a File Geodatabase and then run your script and see if it works.&amp;nbsp; Other than that, you'll likely need to explicitly set your script to run 32-bit because, well... that's MS Access (.mdb).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 19:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/makexyeventlayer-from-python-addin-dataset-does/m-p/72198#M5937</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-12-07T19:56:19Z</dc:date>
    </item>
  </channel>
</rss>

