Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.9k stars 1.1k forks source link

Branch editing error #1435

Open hildermesmedeiros opened 1 year ago

hildermesmedeiros commented 1 year ago

Describe the bug Branch editing in python is not working properly.

Screenshots to reproduce image image image

error: Exception: Unexpected operation (Error Code: 0)

Expected behavior Through rest api it is working, I expect the same behaviour as I do not intent to build this workflow if the arcgis module intent to implement it.

with vms.get('version name', "edit") as version:
    #version.start_editing()
    update_result = version.edit(<>)

# I expected this to work

Platform (please complete the following information):

Additional context Add any other context about the problem here, attachments etc.

nanaeaubry commented 1 year ago

Hello, We made a minor change in the version edit method and it was pushed into a 2.1.0.2 release. Can you update to this release and see if the issue you are encountering was addressed?

hildermesmedeiros commented 1 year ago

It does not throw error now but it is not saving the edits. May be I'm doing something wrong. image

nanaeaubry commented 1 year ago

@hildermesmedeiros Glad it's not throwing the error but sorry it isn't saving. I am not familiar enough with branch editing to be of help with this. If I find something out I'll post it here!

hildermesmedeiros commented 1 year ago

Thanks, but just to clarify. The with method needs revision.

 with vms.get('version name', "edit") as version:
    code   

This code above will throw error.

But that way it will not.

 with vms.get('version name') as version:
    #start reading or editing
    code   
   #stop reading or editing.

So in short the enter exit method should be revised.

hildermesmedeiros commented 8 months ago

@jyaistMap Hello, I've noticed that the progress on this bug seems to be stalled. Could you kindly provide an update on any plans to address it? Thank you for your attention to this matter.