Select to view content in your preferred language

MakeXYEventLayer_management tool no longer works in the SDK

159
0
02-18-2026 03:37 PM
MeleKoneya
Frequent Contributor

 

Good afternoon,

We are running this code in an ArcGIS Pro Add -In and it fails

 

MeleKoneya_0-1771457761249.png

 

 

private static async Task<IGPResult> MakeXYEventLayer(string adorTablePathName, string layerName)
{
var parameters = Geoprocessing.MakeValueArray(adorTablePathName, "xcoordinate", "ycoordinate", layerName, 2868);
return await Geoprocessing.ExecuteToolAsync("MakeXYEventLayer_management", parameters);
}

However, If I run the GeoProcessing tool in ArcGIS Pro the tool works but not in code.

Any help would be appreciated.

Thank you

Mele

0 Kudos
0 Replies