I am doing a script tool to iterate over tables (txt file) in a folder with the "XY to Line" tool - for each table I want to create one shapefile.
I get an error message that the first table "does not exist or is not supported". I know it exists, and if I run the tool on it without iteration (path as string), it works fine. The iteration over the tables also works fine when I test it in a script outside of ArcMap. Any ideas?
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Table: Dataset myout1.csv does not exist or is not supported
Failed to execute (XYToLine).
I did not show all parameters of the XY to line tool because it is so long, but these should not be the problem (works fine with one input table when I define the path as string).