arcgis-python-api
arcgis-python-api copied to clipboard
Branch editing error
Describe the bug Branch editing in python is not working properly.
Screenshots to reproduce
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.
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?
It does not throw error now but it is not saving the edits. May be I'm doing something wrong.
@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!
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.
@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.