AnsweredAssumed Answered

ArcMap Python console arcpy runtime error

Question asked by uhlmann@mcmjac.com on Oct 16, 2020

I know everyone is excited by that title.  In other news, I did have a respectable early stage Geonet profile going, but had to switch over to a different account within my company.  New protocol - keeping this on my personal account.  Anyways I can program in Python and am experienced in ArcMap (not yet Pro - thinking I should).

 

My question is this:  What is going on with the Python console in ArcMap?  Multiple times a day arcpy stops functioning.  For instance:

 

arcpy.FeatureClassToFeatureClass_conversion(feature_in, feature_path_out, feature_name)

yields >>> Nothing.  It runs in no time, but nothing happens.  No errors, no copied feature class.  I have to close ArcMap, do the exact same thing again and voila!  It works.  Another instance today:

mxd = arcpy.mapping.MapDocument("CURRENT")
# it runs almost instantly
# see what's there
mxd
# should say:
<MapDocument object at 0x1b6c6c30[0x1bc4fb40]>
#actually says:
RUNTIME ERROR

I get no object back.  Then I have to quit and open the mxd again.  I've tried reload(arcpy) to no avail.  

Once again a critical ArcGIS piece of functionality that doesn't function in a fatal way to my workflow.

Any ideas?

Outcomes