Hello,
I try to edit the associations table with the REST or GIS API, however I get an error when using deleteFeatures or applyEdits
--> AGS Logs, no additional logs in FINE or VERBOSE mode
| SEVERE | 6 nov. 2024, 09:04:23 | An error occurred. |
When doing it programmatically in python, I get this error :
2024-11-06 04:26:20,835 ERROR Unable to complete operation.
Unable to perform applyEdits operation.
An error occurred.
(Error Code: 500) - Traceback (most recent call last):
.....
File "D:\arcgis_enterprise\server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\features\layer.py", line 3306, in edit_features
return self._con.post_multipart(path=edit_url, postdata=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\arcgis_enterprise\server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1270, in post_multipart
return self._handle_response(
^^^^^^^^^^^^^^^^^^^^^^
File "D:\arcgis_enterprise\server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1001, in _handle_response
self._handle_json_error(data["error"], errorcode)
File "D:\arcgis_enterprise\server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1024, in _handle_json_error
raise Exception(errormessage)
Exception: Unable to complete operation.
Unable to perform applyEdits operation.
An error occurred.
(Error Code: 500)
Is it possible to edit this table through the REST or GIS API ?
Were you able to get anywhere with this, do you have a case or bug #?
I'm running into the same thing, I can add associations no problem with the python api but cannot delete them. Can add update delete all other layers no problem, just not delete associations. My error is:
{'error': {'code': 500, 'extendedCode': -2147467259, 'message': 'Unable to complete operation.', 'details': ['Unable to perform applyEdits operation.', 'Error: This operation is not allowed while editing [gdb_version_name].']}}
Hello,
I opened a case, and they created an enhancement request
ENH-000173298 - Add a sample code in the UN documentation regarding how to edit the 500001 association table with the arcgis Python API
On our side, we use REST API instead of ArcGIS API to delete associations