I have created a script to convert GPX into features with python. This script works but now I want to add all these separate feature classes (point features) in one featureclass/layer and convert it into a line feature. The following is the coding I did to merge the layers.
import arcpy
import os
arcpy.env.overwriteOutput = True
MergeFolder = "D:\Altwym_2017\programmeren\Geo_data.gdb"
Total = "D:\Altwym_2017\programmeren\output\total"
arcpy.env.workspace =MergeFolder
Mylist= arcpy.ListFeatureClasses(feature_type= "point")
arcpy.Merge_management (Mylist, Total)
The following Error occurs;
Traceback (most recent call last): File "D:/Altwym_2017/programmeren/scripts/Merge.py", line 13, in arcpy.Merge_management (Mylist, Total) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\management.py", line 4124, in Merge raise e ExecuteError: ERROR 999999: Error executing function. Failed to execute (Merge).
I think the listing is the problem since no error occurs if I replace the Mylist with the actual filenames of the converted GPX files. Does anyone know how I should change my way of listing (or use some other function/command to select a huge amount of files).
Filling in/ using some function for finding the right names is not possible since the names have nothing in common.