<?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 Strange locking error when using REST api through ArcServer in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625982#M24097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; "error": {
&amp;nbsp; "code": 400,
&amp;nbsp; "message": "Unable to complete operation.",
&amp;nbsp; "details": [
&amp;nbsp;&amp;nbsp; "The current version does not support editing (base, consistent, or closed) [An open transaction was detected. All user transactions must be closed prior to StartEditing.]"
&amp;nbsp; ]
 }
}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to create feature via the REST endpoint on a Feature Service using the addFeatures method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears to be related to some kind of ArcSDE locking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a 10.1 arc server install using Oracle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get the edits to work once in a while, and some times for an hour or two on end. but then it breaks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i confirm in catalog that there are no locks on the sde connection used in the mxd for the feature service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought edits through the REST api would handle the opening and closing of the edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I never explicitly call "StartEditing" i just craft a string request in C# to send to the rest endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is going on here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 13:59:13 GMT</pubDate>
    <dc:creator>KevinGooss</dc:creator>
    <dc:date>2014-05-12T13:59:13Z</dc:date>
    <item>
      <title>Strange locking error when using REST api through ArcServer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625982#M24097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting this message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; "error": {
&amp;nbsp; "code": 400,
&amp;nbsp; "message": "Unable to complete operation.",
&amp;nbsp; "details": [
&amp;nbsp;&amp;nbsp; "The current version does not support editing (base, consistent, or closed) [An open transaction was detected. All user transactions must be closed prior to StartEditing.]"
&amp;nbsp; ]
 }
}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i try to create feature via the REST endpoint on a Feature Service using the addFeatures method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears to be related to some kind of ArcSDE locking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a 10.1 arc server install using Oracle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get the edits to work once in a while, and some times for an hour or two on end. but then it breaks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i confirm in catalog that there are no locks on the sde connection used in the mxd for the feature service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought edits through the REST api would handle the opening and closing of the edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I never explicitly call "StartEditing" i just craft a string request in C# to send to the rest endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is going on here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 13:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625982#M24097</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2014-05-12T13:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange locking error when using REST api through ArcServer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625983#M24098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had some locking issues with MS SQL.&amp;nbsp; Try setting the service pooling&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Maximum number of instances per machine:" to 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that fixes your problem the issue might be related.&amp;nbsp; There was a patch available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625983#M24098</guid>
      <dc:creator>AaronHeyman</dc:creator>
      <dc:date>2014-05-13T18:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Strange locking error when using REST api through ArcServer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625984#M24099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, did you find a fix for this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 23:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/strange-locking-error-when-using-rest-api-through/m-p/625984#M24099</guid>
      <dc:creator>jonathanrobinson</dc:creator>
      <dc:date>2017-06-14T23:44:13Z</dc:date>
    </item>
  </channel>
</rss>

