<?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: VersionedVIew update in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516374#M9211</link>
    <description>&lt;P&gt;When I try to run python script, I am getting "Table already exists"&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 21:45:15 GMT</pubDate>
    <dc:creator>vijaybadugu</dc:creator>
    <dc:date>2024-08-07T21:45:15Z</dc:date>
    <item>
      <title>VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516277#M9205</link>
      <description>&lt;P&gt;We've registered datasets as versioned with the traditional type. This generated versioned views with default triggers on them: v[versionnumber]_insert, _update, and _delete. Recently, we updated a few more columns in the existing feature class with GLOBAL_ID. When I try to open those views in the SQL client, the new columns do not appear in the view. What needs to be done to update the view with the latest columns? How can I see those updated columns in the view and triggers?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 18:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516277#M9205</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-07T18:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516289#M9206</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/386769"&gt;@vijaybadugu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you add the global ID field? Was it done with our ArcGIS Pro using Fc properties ? (manage --&amp;gt; add global IDs) ?&lt;/P&gt;&lt;P&gt;I did a quick test adding the Global ID using Pro and the version view is updated with new column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marlon&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 18:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516289#M9206</guid>
      <dc:creator>MarlonAmaya</dc:creator>
      <dc:date>2024-08-07T18:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516292#M9207</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/386769"&gt;@vijaybadugu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you make schema changes to the featureclass that is registered as traditional version, e.g. add a new field, then the ArcCatalog and ArcGIS Pro shall have updated the multi versioned view behind the scenes, however I ran into situations that if you had many connections opened at the time you make the schema change then the proper code to update the multi versioned view and evw view triggers might not have executed, hence always when making schema changes you need to close Pro and connect only with the data owner user, make the schema change and close Pro and reopen.&lt;BR /&gt;&lt;BR /&gt;You can unregister as traditional version and register again, this shall recreate the multi versioned view and the evw view triggers.&lt;BR /&gt;&lt;BR /&gt;If you cannot do that because you will lose data in geodatabase versions, then these are the alternatives.&lt;BR /&gt;&lt;BR /&gt;Drop the _EVW view in the database and use ArcCatalog 10.8.2 to Enable SQL Access to recreate the multi versioned view.&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/enable-sql-access-from-arcgis-desktop.htm" target="_blank" rel="nofollow noopener"&gt;Enable SQL Access&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For more information about “Enable SQL Access” open the link below&lt;BR /&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/enable-sql-access-from-arcgis-desktop.htm" target="_blank" rel="nofollow noopener"&gt;Enable SQL access on geodatabase data from ArcGIS Desktop—ArcMap | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;Remarks:&lt;/STRONG&gt;&amp;nbsp;“Enable SQL Access” is only available via the context menu, there is no Geoprocessing Tool in ArcCatalog.&lt;BR /&gt;&lt;BR /&gt;“Enable SQL Access” is not available in Pro, neither via the context menu nor via a Geoprocessing Tool.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remarks:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-versioned-view.htm" target="_blank" rel="nofollow noopener"&gt;Pro GP Tool - Create Versioned View (Data Management)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;This is a deprecated tool. This functionality is no longer needed because versioned views are automatically created when data is registered as versioned.&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Geodatabase administrators still need this tool; it should not have been removed, there are many customers still working with traditional versioning in Pro.&lt;/P&gt;&lt;P&gt;Although the tool is deprecated, it is still possible to use it via python in Pro.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.management.CreateVersionedView&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(see the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Appendix A&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;below)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;##Appendix A:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;if you open in Pro the toolbox&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;gdb_tools_pro.tbx, see zip attached at the bottom,&amp;nbsp;&lt;/STRONG&gt;then you will find the "&lt;STRONG&gt;CreateVersionView&lt;/STRONG&gt;" GP tool that I created, you can add multiple featureclasses and tables as the input.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;#How to execute this tool using Pro:
#open a command window and run
#"C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat" CreateVersionedView.py

#Import arcpy module
import arcpy
#Local Variable
fcname = r"C:\temp\gdb_cnn_files\mcsdboralnx7_mcs1_topo1_gis.sde\GIS.Streets"

#Process: Create Versioned View
try:
  print ('create versioned view...')
  arcpy.CreateVersionedView_management(fcname)

except arcpy.ExecuteError:
  #Get the geoprocessing error messages
  msgs = arcpy.GetMessage(0)
  msgs += arcpy.GetMessages(2)
  #Return gp error messages for use with a script tool
  arcpy.AddError(msgs)
  #Print gp error messages for use in Python/PythonWin
  print (msgs)
except:
  #Get the traceback object
  tb = sys.exc_info()[2]
  tbinfo = traceback.format_tb(tb)[0]
  #Concatenate information together concerning the error into a message string
  pymsg = tbinfo + "\n" + str(sys.exc_type)+ ": " + str(sys.exc_value)
  #Return python error messages for use with a script tool
  arcpy.AddError(pymsg)
  #Print Python error messages for use in Python/PythonWin
  print (pymsg)&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I hope this clarifies the question.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516292#M9207</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-07T19:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516334#M9208</link>
      <description>&lt;P&gt;What we did was, after creating the view with _vw (earlier version), one of our administrators renamed the view to a simpler name. That could be one of the reasons. Here are the steps I need to follow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Compress the database.&lt;/LI&gt;&lt;LI&gt;Unregister the dataset (which has topology).&lt;/LI&gt;&lt;LI&gt;Register it again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have another question: Will this change all version IDs associated with the previous feature classes?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516334#M9208</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-07T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516345#M9209</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 20:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516345#M9209</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-07T20:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516357#M9210</link>
      <description>&lt;P&gt;if you unregister as traditional version then the edits in the geodatabase versions are lost, before that post and reconcile all versions child of sde.default, then delete the child versions, then execute a geodatabase sde compress multiple times, then gather new statistics, then rebuild indexes, this will bring the geodatabase to state lineage 0, then is safe to unregister as traditional version, then after schema changes are completed, register as traditional version again, create new child versions and resume editing.&lt;BR /&gt;&lt;BR /&gt;Recommended Enterprise Geodatabase Training for Database Administrators&lt;BR /&gt;&lt;A href="https://www.esri.com/training/catalog/57630436851d31e02a43f104/deploying-and-maintaining-a-multiuser-geodatabase/" target="_blank" rel="noopener"&gt;Deploying and Maintaining a Multiuser Geodatabase | Esri Training Instructor-Led Course&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.esri.com/training/catalog/57630435851d31e02a43ef9c/implementing-versioned-workflows-in-a-multiuser-geodatabase/" target="_blank" rel="noopener"&gt;Implementing Versioned Workflows in a Multiuser Geodatabase | Esri Training Instructor-Led Course&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 20:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516357#M9210</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-07T20:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516374#M9211</link>
      <description>&lt;P&gt;When I try to run python script, I am getting "Table already exists"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 21:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516374#M9211</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-07T21:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516377#M9212</link>
      <description>&lt;P&gt;Use the toolbox from the attached zip above instead, there you&amp;nbsp;&lt;SPAN&gt;will find the "&lt;/SPAN&gt;&lt;STRONG&gt;CreateVersionView&lt;/STRONG&gt;&lt;SPAN&gt;" GP tool that I created using a python script and the "&lt;STRONG&gt;arcpy.management.CreateVersionedView"&lt;/STRONG&gt;, you can add multiple featureclasses and tables as the input.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 21:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516377#M9212</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-07T21:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516382#M9213</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaybadugu_0-1723067991006.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111883i9E8D24285AD08406/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaybadugu_0-1723067991006.png" alt="vijaybadugu_0-1723067991006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am getting this error&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 22:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516382#M9213</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-07T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516385#M9214</link>
      <description>&lt;P&gt;copy the geodatabase connection file to a folder like c:\temp, close/open Pro, connect using the c:\temp gdb connection file and try again, if still get an error you will need to troubleshoot the python script to find out the cause of the error.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 22:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516385#M9214</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-07T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516628#M9217</link>
      <description>&lt;P&gt;I did copy to the temp folder ,/close/open pro. i am getting the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaybadugu_0-1723121202204.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111925i665B946024A00F85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaybadugu_0-1723121202204.png" alt="vijaybadugu_0-1723121202204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 12:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516628#M9217</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-08T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516635#M9218</link>
      <description>&lt;P&gt;I tried with another database. after enabling Registered as versioned, it ran without any issues for the first time. after that, it starts throwing same error. does view register anywhere&amp;nbsp; in database ? like GDB_ITEMS&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516635#M9218</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-08T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516649#M9220</link>
      <description>&lt;P&gt;It worked. The problem is, we have to drop the view from SQL Server and run the tool to regenerate. At&amp;nbsp;the same time, the name is updated in registry table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to rename existing one and regenerate again ?&lt;/P&gt;&lt;P&gt;CreatingVersionedView, does it only creates a view in sql server ? After creating a view, can we rename and update manually in registrytable with an update statement?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516649#M9220</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-08T13:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516730#M9226</link>
      <description>&lt;P&gt;You cannot register multi versioned views with the Geodatabase Repository. The multi versioned views are created by ArcGIS software to work exclusively with Traditional Versions. We use the multi versioned views to select and edit data via SQL statements in the Traditional Versions. You shall not rename multi versioned views, if becomes invalid, then drop the view and try to create it again. Also, you shall not try to edit the view information directly in the ArcSDE Repository Tables or you risk corrupting the Geodatabase. Note, multi version views are different from regular database views that you can register with the geodatabase, for more info about database views see the ArcGIS documentation. I hope this clarifies.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-saphana/views-in-geodatabase.htm" target="_blank"&gt;Views in an enterprise geodatabase—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516730#M9226</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-08T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516838#M9227</link>
      <description>&lt;P&gt;Thanks. There is an extra argument to pass name of the view to the&amp;nbsp;CreateVersionedView method. Firstly, i will drop the view from SQL Server and re create using python script that you shared.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516838#M9227</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-08T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516926#M9228</link>
      <description>&lt;P&gt;I successfully created a versioned views. I am trying to add a trigger on A' table , using update statement of versioned view, I am getting below error while editing the data in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaybadugu_0-1723147445778.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111986i4C9818CBDF3F3563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaybadugu_0-1723147445778.png" alt="vijaybadugu_0-1723147445778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516926#M9228</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-08-08T20:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: VersionedVIew update</title>
      <link>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516929#M9229</link>
      <description>&lt;P&gt;this type of changes to the multi version view are not supported, the multi version view code cannot be modified manually because you will break the multi version view functionality and behavior to work with geodatabase traditional versions, you can look into adding a trigger to the featureclass base table or to the Adds Table, but that also can lead into issue when editing the data in traditional versions using ArcGIS Pro, and you will need to test the trigger extensively and make sure no issues happens after geodatabase version reconcile and post. The overall recommendation is to not tamper with the geodatabase and not try to implement logic via triggers, you can corrupt the geodatabase behavior and cause issues with traditional versioning, instead you need to use ArcGIS Pro Attribute Rules.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/versionedview-update/m-p/1516929#M9229</guid>
      <dc:creator>MarceloMarques</dc:creator>
      <dc:date>2024-08-08T20:17:42Z</dc:date>
    </item>
  </channel>
</rss>

