Can you create XY event source from ArcPy?

Can you create XY event source from ArcPy?

Error 000212 Cannot create XY event source from arcpy.MakeXYEventLayer_management? I am using ArcPy to create an output feature layer. I am using the command: where wells is my input csv file and wells_layer is the path for the output feature layer.

What happens if there is an error in ArcPy?

Within this error-handling routine, you can retrieve the error message from ArcPy and react accordingly. If a script does not have an error-handling routine, it fails immediately, which decreases its robustness.

What does the XY event layer do in ArcGIS?

The table containing the X and Y coordinates that define the locations of the point features to create. The field in the input table that contains the x-coordinates. The field in the input table that contains the y-coordinates. The name of the output point event layer.

When to run an ArcPy routine in Python?

The following sections offer a few techniques that introduce the basics of Python exception handling. When a tool writes an error message, ArcPy generates a system error, or an exception. Python allows you to write a routine that is automatically run whenever a system error is generated.

How to make XY event layer in ArcGIS?

Right-clicking a table in the Table of Contents (when in List by Source view). Clicking File > Add Data > Add XY data. Clicking the Make XY Event Layer tool from within Data Management Tools > Layers and Table Views. Note: This article pertains to ArcGIS versions 9.x and 10.0.

Why is the add XY data tool in the wrong location?

Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools. The following list contains some of the potential causes for the data to appear in the wrong location during the creation of a XY Event Layer.

How to display X and Y fields in ESRI?

In the Table Of Contents, right-click the Export_Output table, and select Display XY Data. In the Display XY Data dialog box, select Longitude1 for the X Field and Latitude1 for the Y Field to specify the coordinates.