1

I'm creating a python script (for the first time in quite a long time). And the basics are confusing me a little. With the below code I keep getting the error:

"ERROR 000732: Input Table: Dataset /MARCHNET does not exist or is not supported Failed to execute (AddField)."

enter image description here

In the "OK" folder there is a shapefile named MARCHNET and it is also currently open in an instance in ArcMap.

  • 1
    you should try: PmsNet = "MARCHNET.shp" – ChrisL Feb 24 '16 at 13:23
3

You forgot to mention the extension.

If you are working with shapfiles in a workspace you always have to add the '.shp', such as here:

PmsNet = r'MARCHNET.shp'

You can work with the name alone only if your workspace is a geodatabase, as feature classes in a geodatabase do not have file extensions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.