Error 000354 in create a new feature class?

223
1
04-24-2020 11:04 PM
SiqiHuang1
New Contributor

Hi!

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!

Reply
0 Kudos
1 Reply
DanPatterson_Retired
MVP Esteemed Contributor

code formatting should be used

/blogs/dan_patterson/2016/08/14/script-formatting 

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 

Reply
0 Kudos