In ERROR 000301: The workspace is of the wrong type , and https://community.esri.com/message/702068-re-work-space-wrong-type-error-000301?commentID=702068#comment-702068 the same error I'm experiencing is discussed. As in both the earlier posts I'm trying to run arcpy.ReconcileVersions_management().
My 'input_database' is set to a SDE-user connection to an egdb:
SDE_Connection <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'I:\GIS\ArcSDE\SdeUser\sde@RvecPBTEST.sde'</SPAN>
<SPAN class="comment token">#followed by</SPAN>
versionList <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>ListVersions<SPAN class="punctuation token">(</SPAN>SDE_Connection<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>ReconcileVersions_management<SPAN class="punctuation token">(</SPAN>SDE_Connection<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"ALL_VERSIONS"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"PreWork"</SPAN><SPAN class="punctuation token">,</SPAN> versionList<SPAN class="punctuation token">,</SPAN><SPAN class="string token">'blah'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'blah'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'blah'</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I'm trying to reconcile all the versions that are spawned from an intermediate version called 'PreWork'. When I examine the contents of versionList[] all the versions are there, so I'm connected to the workspace.
Joshua Bixby and Dan Patterson; you guys commented on the earlier threads; any guidance as to where I should be looking?