<?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 001333: Unregister as versioned is not supported for a dataset in a feature dataset in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865281#M5945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you unregistered, then truncating the table, only to registered it? &amp;nbsp;It kinda defeats the purpose of versioning. &amp;nbsp;You can truncate a versioned table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the error, it would be helpful to see your script. &amp;nbsp;Can you post the code or at least the part that is having the problem? &amp;nbsp;I have seen this error when working with a table that is part of a relationship. &amp;nbsp;But if it works in pyscripter but not ArcGIS, it is most likely a parameter problem (can't simply use&amp;nbsp;sys.argv, you need to use the &lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;GetParameter) or a syntax issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 15:09:03 GMT</pubDate>
    <dc:creator>KevinDunlop</dc:creator>
    <dc:date>2017-09-19T15:09:03Z</dc:date>
    <item>
      <title>ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865280#M5944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - I created an Arcpy script that will unregister a table as versioned, truncate the data, register the data as versioned and then cleans up the data. The data is not stored in a feature dataset nor does one exist in the geodatabase. The script runs fine in Pyscripter but when I add it to a Script Tool in ArcCatalog I get the following error when I run it: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what could be happening? I have searched around but I haven't been able to find anything about this error happening to others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865280#M5944</guid>
      <dc:creator>VinceLegendre</dc:creator>
      <dc:date>2017-09-19T14:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865281#M5945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you unregistered, then truncating the table, only to registered it? &amp;nbsp;It kinda defeats the purpose of versioning. &amp;nbsp;You can truncate a versioned table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the error, it would be helpful to see your script. &amp;nbsp;Can you post the code or at least the part that is having the problem? &amp;nbsp;I have seen this error when working with a table that is part of a relationship. &amp;nbsp;But if it works in pyscripter but not ArcGIS, it is most likely a parameter problem (can't simply use&amp;nbsp;sys.argv, you need to use the &lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;GetParameter) or a syntax issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865281#M5945</guid>
      <dc:creator>KevinDunlop</dc:creator>
      <dc:date>2017-09-19T15:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865282#M5946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Versioned data is not supported for the Truncate tool:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/truncatetable.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/truncatetable.htm"&gt;Truncate Table—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;Versioned data is not supported as input. Data must be unregistered as versioned before the tool will execute successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865282#M5946</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-09-19T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865283#M5947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right. &amp;nbsp;For versioned tables use the Delete Rows tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865283#M5947</guid>
      <dc:creator>KevinDunlop</dc:creator>
      <dc:date>2017-09-19T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001333: Unregister as versioned is not supported for a dataset in a feature dataset</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865284#M5948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention that I have another version of the script that uses the Delete tool and that does not cause an error but it takes a very long time to complete since the table has 318K records and it is growly quickly. I was trying speed the deleting process so I thought I would try Truncate. The script is below. I currently don't have any parameters and have hard coded the workspace in the code. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;BR /&gt;import arcpy, datetime, pymssql&lt;BR /&gt;#from arcpy.da import SearchCursor&lt;/P&gt;&lt;P&gt;#connection to the SDE databse&lt;BR /&gt;workspace = arcpy.env.workspace = "Database Connections\AutoAssign_Test.sde"&lt;/P&gt;&lt;P&gt;print "Unregister MVIEW as versioned"&lt;BR /&gt;arcpy.AddMessage("Unregister MVIEW as versioned")&lt;BR /&gt;arcpy.UnregisterAsVersioned_management("dbo.MVIEW", "NO_KEEP_EDIT", "NO_COMPRESS_DEFAULT")&lt;BR /&gt;print "Truncate MVIEW"&lt;BR /&gt;arcpy.AddMessage("Truncate MVIEW")&lt;BR /&gt;arcpy.TruncateTable_management("dbo.MVIEW")&lt;BR /&gt;print "Register MVIEW as versioned"&lt;BR /&gt;arcpy.AddMessage("Register MVIEW as versioned")&lt;BR /&gt;arcpy.RegisterAsVersioned_management("dbo.MVIEW", "EDITS_TO_BASE")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-001333-unregister-as-versioned-is-not/m-p/865284#M5948</guid>
      <dc:creator>VinceLegendre</dc:creator>
      <dc:date>2017-09-19T16:36:39Z</dc:date>
    </item>
  </channel>
</rss>

