<?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: Edit default version using SQL Developer in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430880#M2896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/overview-edit-versioned-data-with-sql.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/overview-edit-versioned-data-with-sql.htm"&gt;An overview of editing versioned data using SQL—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/edit-versioned-data-using-sql-oracle.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/edit-versioned-data-using-sql-oracle.htm"&gt;Edit versioned data in Oracle using SQL—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 15:50:14 GMT</pubDate>
    <dc:creator>AsrujitSengupta</dc:creator>
    <dc:date>2015-09-11T15:50:14Z</dc:date>
    <item>
      <title>Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430879#M2895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all. We are trying to create a nightly script that will set attachment flags, indicate a feature has an attachment available. This is not possible using hte ArcGIS front-end due to issues related to ArcFM AutoUpdaters (and also performance reasons), so we are attempting to develop a solution using SQL Developer (we cannot use MS Access or SQL Server due to incompatibilities with ST_GEOMETRY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am told that running an UPDATE query on a view will take care of updating all of the delta tables as well as the base table. The first feature I am running this on is a versioned view. Here is my code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;EXECUTE sde.version_util.set_current_version ('SDE.DEFAULT');


EXECUTE sde.version_user_ddl.edit_version ('SDE.DEFAULT', 1);
UPDATE GASVALVE_VW
SET ATTACH_FLAG = 'N';
Commit;
EXECUTE sde.version_user_ddl.edit_version ('SDE.DEFAULT', 2);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am being told I cannot edit the DEFAULT version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Error starting at line 3 in command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;EXECUTE sde.version_user_ddl.edit_version ('SDE.DEFAULT', 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Error report:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ORA-20500: Cannot edit the DEFAULT version in STANDARD transaction mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ORA-06512: at "SDE.VERSION_USER_DDL", line 941&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ORA-06512: at line 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am able to start an edit session in the DEFAULT version inside of ArcMap in the same GDB. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL Developer then tells me i cannot edit without being in an edit session (because the edit session could not be started by SQL Developer). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Error starting at line 4 in command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;UPDATE GASVALVE_VW&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;SET ATTACH_FLAG = 'N'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Error report:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;SQL Error: ORA-20504: Editing the DEFAULT version is not supported because the spatial attribute is not a spatial type or the table is registered as versioned with the option to move edits to base. The session must call edit_version to start an edit session before editing the view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ORA-06512: at "PSEG_GAS.V87_UPDATE", line 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ORA-04088: error during execution of trigger 'PSEG_GAS.V87_UPDATE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Not sure what I am doing wrong. Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430879#M2895</guid>
      <dc:creator>MarcCusumano</dc:creator>
      <dc:date>2021-12-11T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430880#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/overview-edit-versioned-data-with-sql.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/overview-edit-versioned-data-with-sql.htm"&gt;An overview of editing versioned data using SQL—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/edit-versioned-data-using-sql-oracle.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/using-sql-with-gdbs/edit-versioned-data-using-sql-oracle.htm"&gt;Edit versioned data in Oracle using SQL—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430880#M2896</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-09-11T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430881#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Asrujit - it looks like I will have to create a version first, make the edits and then post. However, existing versions will not be able to see the edits, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 17:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430881#M2897</guid>
      <dc:creator>MarcCusumano</dc:creator>
      <dc:date>2015-09-11T17:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430882#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the documentation that &lt;A href="https://community.esri.com/migrated-users/31350"&gt;Asrujit SenGupta&lt;/A&gt;​ links to:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 18pt;"&gt;Edit the Default Version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;You can use SQL to connect to the Default version and edit a versioned view. You do not need to open an edit session. When you start editing, you are automatically connecting to the current state of the Default version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva; font-size: 18pt;"&gt;Switch from editing a named version back to editing Default&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;If you need to go back to editing the Default version directly—for example, if your manager tells you other users at your site need to see a particular edit immediately—you can execute version_user_ddl.set_default to switch back to editing the Default version.&amp;nbsp; The edits you make to the Default version can be seen by other users connected to Default as soon as they refresh their client connections.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You are mixing the workflows for editing the Default version and editing named versions.&amp;nbsp; If you want to edit Default directly, you do not need to create a named version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2015 14:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430882#M2898</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-09-12T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430883#M2899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh, if you read my original post, you would have seen that I am being told I cannot edit the default version. That was the whole point of my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 12:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430883#M2899</guid>
      <dc:creator>MarcCusumano</dc:creator>
      <dc:date>2015-09-14T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430884#M2900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="margin-top: 1.26316em; margin-bottom: 0.63158em; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 2rem; color: #4d4d4d; background-color: #fefefe;"&gt;Edit the Default version&lt;/H2&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="font-size: 0.875rem; margin-bottom: 1.71429em; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #fefefe;"&gt;You can use SQL to connect to the Default version and edit a versioned view. &lt;STRONG&gt;You do not need to open an edit session.&lt;/STRONG&gt; When you start editing, you are automatically connecting to the current state of the Default version.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430884#M2900</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-09-14T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430885#M2901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also make sure that-- &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;your data is not stored in the binary geometry storage type.&lt;/LI&gt;&lt;LI&gt;The table or feature class to be edited is not registered as versioned with the option to move edits to base&lt;/LI&gt;&lt;LI&gt;If the versioned view was created prior to ArcGIS 10.1, you must re-create it; older versioned views cannot be edited in the Default version.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430885#M2901</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2015-09-14T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Edit default version using SQL Developer</title>
      <link>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430886#M2902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/14014"&gt;Marc Cusumano&lt;/A&gt;​, I did read your original post, hence the comment you are mixing up the two different workflows.&amp;nbsp; See &lt;A href="https://community.esri.com/migrated-users/31350"&gt;Asrujit SenGupta&lt;/A&gt;​'s recent post for some great tips if you are still having problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 15:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/edit-default-version-using-sql-developer/m-p/430886#M2902</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-09-14T15:24:31Z</dc:date>
    </item>
  </channel>
</rss>

