<?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: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1206685#M8660</link>
    <description>&lt;P&gt;In ArcPro SDK, I tried utilitynetwork.subnetworkmanager.&lt;SPAN&gt;UpdateAllSubnetworks&amp;nbsp;&lt;/SPAN&gt;(tierName,true), which is takes 8 to 10 minutes. Which is working fine and there is no schema locks error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second case, I directly call the REST API through URL(like '......../UtilityNetworkServer/updateSubnetwork') to updates the subnetwork. After this am getting schema locks error while trying to edit the current version features. if I can resolve this i will call this REST API though and Add-Inn.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One observation is that when we update subnetwork of a branch version by standing in default version, after updation switching back to the branch version and trying to edit the features is working without any schema errors. But my requirement is that if we click a button, the current branch versions subnetworks should be update.&amp;nbsp;&lt;BR /&gt;Any help?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 11:01:51 GMT</pubDate>
    <dc:creator>MohammedHilal_K</dc:creator>
    <dc:date>2022-08-26T11:01:51Z</dc:date>
    <item>
      <title>Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1202315#M8588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was trying to create an Add-Inn to update the subnetworks through REST API GP Service, because it is very fast compare to the inbuild tool in ArcGIS Pro. For testing purpose I used REST API GP Service directly, the process got success in my branch version. But after the update When I Try to create a feature in current branch version, am getting 'Object has no schema locks' Error. Sometimes I could solve that by switching the branch versions, but sometimes not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions should be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 10:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1202315#M8588</guid>
      <dc:creator>MohammedHilal_K</dc:creator>
      <dc:date>2022-08-12T10:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1202553#M8590</link>
      <description>&lt;P&gt;Branch versioning does not support multiple concurrent editors against a single version. When you are updating a subnetwork with a direct REST call it's creating a second editing session. That's the source of the schema lock errors.&lt;/P&gt;&lt;P&gt;Have you tried using the Pro SDK to update the subnetworks rather than REST?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1202553#M8590</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-08-12T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1203617#M8602</link>
      <description>&lt;P&gt;HI Rich,&lt;/P&gt;&lt;P&gt;I tried Pro SDK and it is taking about 10 minutes to updates the subnetwork, but when I tried with REST call, it is taking only less than one minute. Is there any way to solve the Schema locks error?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1203617#M8602</guid>
      <dc:creator>MohammedHilal_K</dc:creator>
      <dc:date>2022-08-17T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1203764#M8607</link>
      <description>&lt;P&gt;The time difference here is alarming and unexpected. &amp;nbsp;Do you have fiddler installed? I'm wondering if you could examine the call to update subnetwork that is generated by the Pro SDK and see if it matches what happens when you manually call it? &amp;nbsp;Is the Pro SDK updating multiple subnetworks?&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1203764#M8607</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-08-17T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1205313#M8633</link>
      <description>&lt;P&gt;Hi Rich,&lt;BR /&gt;Both the REST call and ArcPro SDK is doing the same work, like updating multiple subnetworks. REST call is super fast taking about 1 minute. while ArcPro SDK taking about 8 to 10 minutes to update the subnetwork on first time. Second time the processing time is decreasing to 3 to 4 minutes. That's why I'm focusing to the REST call.&amp;nbsp;&lt;BR /&gt;Also I noticed that if we are updating subnetwork for branch version from SDE.Default, not getting any schema locks error. But My task is to update the current branch version.&amp;nbsp; Is there any idea that can add in to the Add-Inns,&amp;nbsp; like switching the versions before and after updating the subnetwork?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1205313#M8633</guid>
      <dc:creator>MohammedHilal_K</dc:creator>
      <dc:date>2022-08-23T10:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1205489#M8634</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Both the REST call and ArcPro SDK is doing the same work, like updating multiple subnetworks. REST call is super fast taking about 1 minute. while ArcPro SDK taking about 8 to 10 minutes to update the subnetwork on first time. Second time the processing time is decreasing to 3 to 4 minutes. That's why I'm focusing to the REST call.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When you call the Pro SDK to update a subnetwork, how long does the REST call take?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;Also I noticed that if we are updating subnetwork for branch version from SDE.Default&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm not sure what you mean here. Are you updating the subnetwork on the branch version or the default version?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 17:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1205489#M8634</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-08-23T17:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1206685#M8660</link>
      <description>&lt;P&gt;In ArcPro SDK, I tried utilitynetwork.subnetworkmanager.&lt;SPAN&gt;UpdateAllSubnetworks&amp;nbsp;&lt;/SPAN&gt;(tierName,true), which is takes 8 to 10 minutes. Which is working fine and there is no schema locks error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second case, I directly call the REST API through URL(like '......../UtilityNetworkServer/updateSubnetwork') to updates the subnetwork. After this am getting schema locks error while trying to edit the current version features. if I can resolve this i will call this REST API though and Add-Inn.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One observation is that when we update subnetwork of a branch version by standing in default version, after updation switching back to the branch version and trying to edit the features is working without any schema errors. But my requirement is that if we click a button, the current branch versions subnetworks should be update.&amp;nbsp;&lt;BR /&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1206685#M8660</guid>
      <dc:creator>MohammedHilal_K</dc:creator>
      <dc:date>2022-08-26T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1206782#M8664</link>
      <description>&lt;P&gt;The schema locks error is expected. When you edit a version by calling the REST endpoint, it creates a write lock, since only one connection can be editing at a time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to understand is why it takes so long to call update all subnetworks from the SDK. If we can fix that problem then you'll be able to use the SDK instead of the REST endpoint, and the schema locks problem will be solved.&lt;/P&gt;&lt;P&gt;--Ric&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 15:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1206782#M8664</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2022-08-26T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1286891#M9787</link>
      <description>&lt;P&gt;I get the same&amp;nbsp;&lt;SPAN&gt;'Object has no schema locks' error when trying to list branch version differences using ArcGIS API for Python. Is this also expected?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;VersionList = _version.VersionManager(my_vms, my_gis).all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Version = VersionList[-1]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Version.differences(result_type = 'objectIds', moment = None)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;... line 648, in _handle_json_error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;raise Exception(errormessage)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Exception: Object has no schema locks.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;(Error Code: 0)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 18:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1286891#M9787</guid>
      <dc:creator>Dwarburg</dc:creator>
      <dc:date>2023-05-08T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332421#M10474</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/477067"&gt;@Dwarburg&lt;/a&gt;&amp;nbsp;did you ever resolve this? Specifically the no schema locks error via the python api. I am running into the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332421#M10474</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2023-09-26T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332483#M10475</link>
      <description>&lt;P&gt;I resolved this issue by using SDK. REST end point is not able to resolved my issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332483#M10475</guid>
      <dc:creator>MohammedHilal_K</dc:creator>
      <dc:date>2023-09-26T15:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332710#M10477</link>
      <description>&lt;P&gt;Thanks. I figured it out for the python api, basically I just needed to call StartReading() and StopReading() methods on the version object.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 21:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1332710#M10477</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2023-09-26T21:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1345721#M10649</link>
      <description>&lt;P&gt;Yes, in the Python API this is resolved by .start_reading and .stop_reading which lcoks and unlocks the version for your script to read from it. I posted a description here on stack exchange.&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/441245/extracting-data-shown-in-version-changes-on-branch-versioned-feature-service-bef" target="_blank" rel="noopener nofollow noreferrer"&gt;arcpy - Extracting data shown in Version Changes on Branch-Versioned feature service before reconcil...&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;Version.start_reading()
Differences = Version.differences(result_type=&lt;SPAN class=""&gt;'objectIds'&lt;/SPAN&gt;, moment=&lt;SPAN class=""&gt;None&lt;/SPAN&gt;) 
Version.stop_reading()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1345721#M10649</guid>
      <dc:creator>Dwarburg</dc:creator>
      <dc:date>2023-11-03T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Object has no Schema locks Error while trying to create new feature, after Subnetwork Update through REST API GP Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1345840#M10650</link>
      <description>&lt;P&gt;I’m curious if you have had a use case where you need to do some edits to a version while the user has it in a project or actively using it somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently needing to update some values in a versioned layer once a user finishes their edit. Right now I’m using just a normal update cursor with not many issues but it’s slow. Was testing with just using the .edit method on a version object through the API and I have to remove their lock in order to establish my own and update the data. After this they still need to reconcile and post, but are getting errors related to no schema locks. I am using .start_editing() and .stop_editing() which I thought would allow their lock to be reestablished, but doesn’t look like that is the case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 22:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-object-has-no-schema-locks-error-while/m-p/1345840#M10650</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2023-11-03T22:44:12Z</dc:date>
    </item>
  </channel>
</rss>

