Select to view content in your preferred language

Reconcile operation - Error code:-2147217146 'The version could not be located'

1055
8
Jump to solution
03-26-2024 12:40 AM
Ram
by
Emerging Contributor

Hi,

I have performed reconcile operation by referring the URL https://developers.arcgis.com/rest/services-reference/enterprise/reconcile.htm. I am getting the error message 'The version could not be located'. What could be the reason for this error?

Also, it is mentioned reconcile operation requires 'Advanced Editing user type extension'. Will it create this kind of error?

Note: I have published version management service using ArcGIS enterprise 11.1.

Any suggestions will be appreciated. 

0 Kudos
1 Solution

Accepted Solutions
RobertKrisher
Esri Regular Contributor

To reiterate what @AnthonyRyanEQL , that extension is only required once you upgrade to 11.2 or later, which if you're on the Network Management Release plan won't be until you upgrade to 11.3.

The most likely scenario is that there is a typo in the version name you are using. Can you post a screenshot of the version name you're trying to reconcile and the corresponding version name in the version management dialog (or the version name from the rest endpoint)?

View solution in original post

8 Replies
AnthonyRyanEQL
Frequent Contributor

Advanced editing user type is only from 11.2

0 Kudos
Ram
by
Emerging Contributor

Hi @AnthonyRyanEQL ,

That is ok. I need to know whether 'Advanced Editing user type extension' dependency is the reason for the error 'The version could not be located'. 

0 Kudos
RobertKrisher
Esri Regular Contributor

To reiterate what @AnthonyRyanEQL , that extension is only required once you upgrade to 11.2 or later, which if you're on the Network Management Release plan won't be until you upgrade to 11.3.

The most likely scenario is that there is a typo in the version name you are using. Can you post a screenshot of the version name you're trying to reconcile and the corresponding version name in the version management dialog (or the version name from the rest endpoint)?

Ram
by
Emerging Contributor

Thanks @RobertKrisher . Actually, we have to pass version GUID not the version name. There was typo error in that, I corrected it. 

Can you explain about session Id parameter we have to pass in that operation. As mentioned in this post 'Version Management Service - Start Editing Session... - Esri Community', I have used online UUID generator and passed session id value. Is this correct way? After that I am getting the error 'Object has no schema locks'. How it could be resolved?

0 Kudos
RobertKrisher
Esri Regular Contributor

Because the REST services are stateless we rely on the session ID to establish/clear the locks. You can generate that GUID however you want, just make sure it's random for every session and instance of your application. Previously discussed in this community post: Version Management Service - Start Editing Session... - Esri Community

Sergio
by
Emerging Contributor

Hi @RobertKrisher 

I'm facing with the same issue when trying to open editing session according to this guide: https://developers.arcgis.com/rest/services-reference/enterprise/start-reading 

I'm trying to send following request: 

https://myportalUrl/server/rest/services/myServerFolder/myPublishedLRS/VersionManagementServer/versi... of default version for my feature service}/startEditing

and pass as form-data sessionId (generated GUID), token (generated on portal using user who is editor) and f=json, but get this JSON in response:

{
    "success": false,
    "error": {
        "extendedCode": -2147217146,
        "message": "The version could not be located",
        "details": []
    }
}
 
Guid of default version is 100% correct - I've copypasted it from response on this query: https://myportalUrl/server/rest/services/myServerFolder/myPublishedLRS/VersionManagementServer/versi...and also tried with and without curly brackets.
 
Database is branch versioned and is LRS dataset. Actually I'm trying to follow this video: https://www.youtube.com/watch?app=desktop&v=VQzW-EZCEKc but stuck with the above error. Maybe I'm using wrong version GUID?
 
Thank you in advance!
0 Kudos
RobertKrisher
Esri Regular Contributor

I just tested this out locally, and in order to access the version URL you need to remove the curly braces. If I forget to remove the curly braces, then I get the error you see above. Another important thing to remember is that you can't undo or discard edits in default so you shouldn't need to start/stop editing. If you try to start editing in default you will get this error:

RobertKrisher_0-1729857401566.png

 

Sergio
by
Emerging Contributor

Hi @RobertKrisher ,

This is it - there should be no curly braces on the URL. Also I've sorted out that I should create version first and then work with it (this step in the video is missed). 

Thank you very much for your input - it saved me a lot of time.

0 Kudos