<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error 000301: Wrong Workspace Type in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739845#M57234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah... that's what I was going to say &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt; SDEvil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 18:13:36 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-09-27T18:13:36Z</dc:date>
    <item>
      <title>Error 000301: Wrong Workspace Type</title>
      <link>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739843#M57232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In&amp;nbsp;&lt;A href="https://community.esri.com/thread/197831" target="_blank"&gt;ERROR 000301: The workspace is of the wrong type&lt;/A&gt;&amp;nbsp;, and&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/702068-re-work-space-wrong-type-error-000301?commentID=702068#comment-702068" title="https://community.esri.com/message/702068-re-work-space-wrong-type-error-000301?commentID=702068#comment-702068" target="_blank"&gt;https://community.esri.com/message/702068-re-work-space-wrong-type-error-000301?commentID=702068#comment-702068&lt;/A&gt;&amp;nbsp; the same error I'm experiencing is discussed. As in both the earlier posts I'm trying to run&amp;nbsp;arcpy.ReconcileVersions_management().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 'input_database' is set to a SDE-user connection to an egdb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;SDE_Connection &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'I:\GIS\ArcSDE\SdeUser\sde@RvecPBTEST.sde'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#followed by&lt;/SPAN&gt;

versionList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListVersions&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SDE_Connection&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ReconcileVersions_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SDE_Connection&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ALL_VERSIONS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PreWork"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; versionList&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'blah'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'blah'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'blah'&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3420" target="_blank"&gt;Joshua Bixby&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/migrated-users/3116" target="_blank"&gt;Dan Patterson&lt;/A&gt;‌; you guys commented on the earlier threads; any guidance as to where I should be looking?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739843#M57232</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T07:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000301: Wrong Workspace Type</title>
      <link>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739844#M57233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The devil is in the details... Notice in Line 7 above, I don't list the owner of the PreWork version.&amp;nbsp; When I put the owner in, it works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ReconcileVersions_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SDE_Connection&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ALL_VERSIONS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'REC_VEC_DATA.PreWork'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; versionList&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NO_LOCK_ACQUIRED"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NO_ABORT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"BY_OBJECT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FAVOR_EDIT_VERSION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POST"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"DELETE_VERSION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;### note 'REC_VEC_DATA.PreWork' as version name&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line: error 000301 can be a catch all generic message.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739844#M57233</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000301: Wrong Workspace Type</title>
      <link>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739845#M57234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah... that's what I was going to say &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt; SDEvil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 18:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000301-wrong-workspace-type/m-p/739845#M57234</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-09-27T18:13:36Z</dc:date>
    </item>
  </channel>
</rss>

