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<SPAN class="punctuation token">.</SPAN>FeatureClassToFeatureClass_conversion<SPAN class="punctuation token">(</SPAN>feature_in<SPAN class="punctuation token">,</SPAN> feature_path_out<SPAN class="punctuation token">,</SPAN> feature_name<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
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 <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>MapDocument<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"CURRENT"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># it runs almost instantly</SPAN>
<SPAN class="comment token"># see what's there</SPAN>
mxd
<SPAN class="comment token"># should say: </SPAN>
<SPAN class="operator token"><</SPAN>MapDocument object at <SPAN class="number token">0x1b6c6c30</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="number token">0x1bc4fb40</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="operator token">></SPAN>
<SPAN class="comment token">#actually says:</SPAN>
RUNTIME ERROR<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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?