<?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: Using Python to make XY Event Layer; get an error but the code continues in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787087#M1431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it looks like the error is coming from numpy, which could be used by other modules (op.py) that you are indirectly using.&amp;nbsp; It is checking if the object's (featureclass in this case maybe?) dataframe is an instance of a numpy array and failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably place that in a try/ except and just pass in the block to hide it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    XYEventsFL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeXYEventLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CleanedIncidentsPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Longitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Latitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;XYEventsTemp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; WGS84&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; SystemError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:59:07 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T08:59:07Z</dc:date>
    <item>
      <title>Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787086#M1430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using python 3.6.8 to make an XY Event layer. I first use the arcpy.MakeXYEventLayer_management(inputCSV, "Longitude", "Latitude", TempFeatureLayer, WGS84, "")&lt;/P&gt;&lt;P&gt;where TempFeatureLayer is defined earlier as "XYTemp", and WGS84 is the variable holding the GCS_WGS84 coordinate system info.&lt;/P&gt;&lt;P&gt;I pass this and get an error the first time that is pretty extensive but the end says: "&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;SystemError&lt;/SPAN&gt;: &amp;lt;built-in function isinstance&amp;gt; returned a result with an error set"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am able to continue running the code successfully inspite of this seeming error. I would like for this to simply not show up as the code will go to someone with little experience and i dont want this to trigger concern. &lt;/P&gt;&lt;P&gt;Interestingly when I run the code again for the next input, this error does not appear again....&lt;/P&gt;&lt;P&gt;Does anyone know of an exception handling i can use to eliminate this?&lt;/P&gt;&lt;P&gt;I am currently running 10.7 desktop and have been working in the jupityer notebooks version that comes with this desktop version.&lt;/P&gt;&lt;P&gt;i have attached the error and the python code i wrote. the section happens at line 277&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 19:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787086#M1430</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-13T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787087#M1431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it looks like the error is coming from numpy, which could be used by other modules (op.py) that you are indirectly using.&amp;nbsp; It is checking if the object's (featureclass in this case maybe?) dataframe is an instance of a numpy array and failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably place that in a try/ except and just pass in the block to hide it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    XYEventsFL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeXYEventLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CleanedIncidentsPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Longitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Latitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;XYEventsTemp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; WGS84&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; SystemError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;pass&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787087#M1431</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787088#M1432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the quick response!&lt;/P&gt;&lt;P&gt;One question- do I need to set “SystemError” as a variable by defining it before I write the “except SystemError” command?&lt;/P&gt;&lt;P&gt;I apologize for this newbee question- I am what you might call a “baby pythoner” right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 21:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787088#M1432</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-13T21:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787089#M1433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't have to assign it because it is a named built-in exception (others are Exception, RuntimeError, TypeError, etc).&amp;nbsp; You could assign it to a variable and then do stuff with it though like log it, message it, ignore it.&amp;nbsp; Python docs for it are here: &lt;A href="https://docs.python.org/3/library/exceptions.html" title="https://docs.python.org/3/library/exceptions.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Built-in Exceptions — Python 3.8.2 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    XYEventsFL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeXYEventLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;CleanedIncidentsPath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Longitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Latitude"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;XYEventsTemp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; WGS84&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; SystemError &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; se&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;se&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787089#M1433</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787090#M1434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mr. Kling.&lt;/P&gt;&lt;P&gt;I tried the following attempts:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;SystemError = "SystemError: &amp;lt;built-in function isinstance&amp;gt; returned a result with an error set"&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except SystemError:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: no change- error still raised&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except SystemError as se:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: no change- error still raised&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except SystemError:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: no change- error still raised&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I perhaps write the expression incorrectly?&lt;/P&gt;&lt;P&gt;Or do you perhaps have any other ideas? I was unsure how to even research this exception. I greatly appreciate the exceptions page you shared and will continue to look down that road but if you have any other insights I would be very appreciative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOPHIA THOMPSON&lt;/P&gt;&lt;P&gt;gis coordinator&lt;/P&gt;&lt;P&gt;o 505.924.3803&lt;/P&gt;&lt;P&gt;e ssthompson@cabq.gov&amp;lt;mailto:ssthompson@cabq.gov&amp;gt;&lt;/P&gt;&lt;P&gt;cabq.gov/planning&amp;lt;https://www.cabq.gov/planning&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787090#M1434</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-13T22:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787091#M1435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rats.&amp;nbsp; Looking at the error message again it starts with a ValueError.&amp;nbsp; Maybe try catching both (TypeError thrown in for good measure):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;except&lt;/SPAN&gt; &lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;ValueError,&lt;/SPAN&gt; &lt;SPAN class=""&gt;SystemError, TypeError&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;):
    pass

if those don't catch it, maybe defaulting to catching all through using just Exception:

&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;except&lt;/SPAN&gt; &lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;&lt;SPAN class=""&gt;:
    pass&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787091#M1435</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787092#M1436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for the alternative ideas! I will give those a try on Monday   &lt;/P&gt;&lt;P&gt;I hope you have a great weekend!&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787092#M1436</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-13T22:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787093#M1437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestions from &lt;A href="https://community.esri.com/migrated-users/278260"&gt;Jeff Kling&lt;/A&gt;‌ are effective but be careful catching and passing on a wide range of errors because you'll never know if there's a different problem you actually need to address.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787093#M1437</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2020-03-18T15:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787094#M1438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Thanks very much for the suggestions. I tried:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except (ValueError, SystemError, TypeError):&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except ValueError, SystemError, TypeError:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except ValueError, SystemError:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except (ValueError, SystemError):&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;    XYEventsFL = ap.MakeXYEventLayer_management(CleanedIncidentsPath, "Longitude", "Latitude",XYEventsTemp, WGS84, "")&lt;/P&gt;&lt;P&gt;except Exception:&lt;/P&gt;&lt;P&gt;    pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but unfortunately none of the above have prevented the errors from running. It appears that an error is triggered for each row in the csv table being used to make the XY Event layer and is quite extensive (greater than 80,000 records in some cases)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed when I run the code thru IPython in the 10.8 version or thru Jupyter notebook in the 10.8 version the error is not triggered….&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems really surprising to me that even Exception did not work….I feel I may be grasping at straws in light of this seeming override command not having any effect but do you by chance have any other thoughts?  Perhaps I did not write the code correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the help!&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787094#M1438</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-18T22:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787095#M1439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried just taking the try-except block out so that you get a 'failure' and the code stops?&lt;/P&gt;&lt;P&gt;Some reading&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/21553327/why-is-except-pass-a-bad-programming-practice" title="https://stackoverflow.com/questions/21553327/why-is-except-pass-a-bad-programming-practice"&gt;python - Why is "except: pass" a bad programming practice? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787095#M1439</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-18T22:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787096#M1440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I think in your attempts that have tried pretty much covered any combination options... I am kind of wondering if it is a mismatched package issue, seeing how its fine in python 2 (10.8) and 3 (3.6) it's not.&amp;nbsp; I get a ton of GDAL DLL errors in python 3 from the cloned environment, which I believe is caused by mismatched versions of the GDAL files and the version that the module is requesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe look at if the package needs to be upgraded/ downgraded a version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787096#M1440</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-18T22:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787097#M1441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Originally she had it without the try except and the code ran fine;&amp;nbsp; She was just trying to stop the errors from printing and possibly confusing the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787097#M1441</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-18T22:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787098#M1442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about running it in something other than a jupyter notebook? That would rule out a whole load of other issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787098#M1442</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-18T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787099#M1443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you ever tried this geoprocess using ModelBuilder instead of pure python?&amp;nbsp; I only say this because I have a geoprocess in ArcMap where an xy event layer is updated using a model every 5 minutes.&amp;nbsp; I recall trying to export the model out to python but it never worked in a pure python envionment so I reverted it back to a model and it is still running.&amp;nbsp; Just another option to try if this method does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 22:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787099#M1443</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-03-18T22:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787100#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;That is an interesting idea- I believe I have done so…I have run it in ipython and in the python window thru ArcMap but both generate the same extensive error list…The only time I don’t get the error is when I run it at home in 10.8. But at work our servers are older and 10.8 and Pro 2.5 do not support them so the client will have to run them in 10.7 or Pro 2.4 until we get our servers upgraded.&lt;/P&gt;&lt;P&gt;I have been using the Jupyter notebook extension since arcpy was integrated. I am wondering your perspective on this per this comment- is the integration still fairly buggy? Do you have an alternative preference?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787100#M1444</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-19T14:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787101#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Michael. I have tried it in model builder and it works fine. Unfortunately the client has limited GIS and python capabilities so I was trying to create a method that would have limited user tinkering…which is of course less than ideal but…. The current script continues to run- it just generates an mass of errors that are rather alarming. The errors don’t stop or break the code though. I just wondered if there was a way I could write in an exception handle to hide them since they are more like alarms than errors. Which is weird to me.&lt;/P&gt;&lt;P&gt;Sophia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787101#M1445</guid>
      <dc:creator>deleted-user-nik7HiqJkbED</dc:creator>
      <dc:date>2020-03-19T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to make XY Event Layer; get an error but the code continues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787102#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you don't have access to another Python IDE then?&lt;/P&gt;&lt;P&gt;Before I send you down that rabbit hole, sounds like you a running in a restricted environment and not in control of what you can use or do on your machine.&lt;/P&gt;&lt;P&gt;If you have some control, and do have an IDE other than jupyter, my suggestion was to try it to rule out issues.&amp;nbsp; jupyter is fine...just not as fine as other python interfaces &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;My blog has loads of posts about Spyder (python IDE), cloning (for Pro) and the like.&amp;nbsp; I wouldn't go there as a solution to your immediate problem however.&amp;nbsp; It just sounds like you have to use what you have got and continue to serve-the-servers, rather than the other way around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/using-python-to-make-xy-event-layer-get-an-error/m-p/787102#M1446</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-19T15:54:07Z</dc:date>
    </item>
  </channel>
</rss>

