After publishing a hosted service based on a gdb we would like to regulerly update the service using the overwrite functionality in Python API 1.4.1.
This works fine if the service resides in AGOL, but when trying the same in Portal the API throws an error. Apparently the FeatureLayerCollectionManager calls an unimplemented method: _overwrite_portal.
Traceback (most recent call last):
File "c:\test\overwrite.py", line 19, in <module>
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py", line 1030, in overwrite
AttributeError: 'FeatureLayerCollectionManager' object has no attribute '_overwrite_portal
In managers.py this is implemented as this, which also explains the difference between AGOL and Enterprise: