Script tool - ExecuteError

3615
1
02-27-2016 10:18 AM
ElenaWenz
New Contributor

Hi,

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?

Error Message:

raise e

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).

My code:

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).

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus
0 Kudos