Error 000354 in create a new feature class?

04-24-2020 11:04 PM
New Contributor


I am working with ArcGIS Pro. I am trying to use an insert cursor to create a new polyline feature from a list of coordinates in pythonWin. Here is what my code is. Could anyone tell me what am I doing wrong or missing?

Thank you!

0 Kudos
1 Reply
MVP Esteemed Contributor

code formatting should be used


If you are creating a featureclass, you need to specify *.shp if a shapefile is required and its destination is a folder, otherwise, you need to specify a geodatabase location.

Also, you need to "raw encode" you paths if using a single backslash

eg... r"C:\YourFolderPath\AnotherFolder\A_geodatabase.gdb"

Create Feature Class—Data Management toolbox | Documentation 

0 Kudos