arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

Branch editing error

Open hildermesmedeiros opened this issue 2 years ago • 5 comments

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):

  • OS: Win Server 2019
  • Browser chrome
Name Version Build Channel
arcgis 2.0.1 py39_2825 esri
arcgispro 3.0 0 esri

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

hildermesmedeiros avatar Jan 17 '23 14:01 hildermesmedeiros

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?

nanaeaubry avatar Jan 27 '23 15:01 nanaeaubry

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

hildermesmedeiros avatar Feb 02 '23 18:02 hildermesmedeiros

@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!

nanaeaubry avatar Feb 03 '23 01:02 nanaeaubry

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.

  • [ ] First, if we use the with methods in edit or reading mode it shouldn't try to acquire a lock again.
  • [ ] And If you can help me why the commit is not persisting, saving, might be a bug or I'm doing a simple mistake.

hildermesmedeiros avatar Feb 03 '23 12:02 hildermesmedeiros

@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.

hildermesmedeiros avatar Mar 12 '24 14:03 hildermesmedeiros