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.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Feb 24, 2016 at 13:15
1
  • 1
    you should try: PmsNet = "MARCHNET.shp" Commented Feb 24, 2016 at 13:23

1 Answer 1

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.

answered Feb 24, 2016 at 13:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.