Select to view content in your preferred language

Python API to Update Portal Hosted Feature Layer

829
3
05-05-2021 01:33 PM
MichaelVolz
Esteemed Contributor

I am trying to implement an ESRI sample python api script to updated a hosted feature layer but I am encountering errors.

The original code can be found at: 

https://www.esri.com/arcgis-blog/products/analytics/analytics/updating-your-hosted-feature-services-...

I am getting an error about the service already existing in Portal which is what others have encountered as per the following GeoNet post that contains a ton of useful info on the problem and it is difficult to determine if the original issue was ever resolved:

https://community.esri.com/t5/arcgis-web-appbuilder-questions/feature-layer-overwrite-error-data-ref...

 

0 Kudos
3 Replies
MichaelVolz
Esteemed Contributor

Would anyone know if there are limitations of the Python API in Portal with Active Directory authentication which could cause this script to fail?

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

There are some errors cited on the tech support site.  You don't give an error number, so here is one example

BUG-000139010: When authenticating with an Active Directory user in.. (esri.com)


... sort of retired...
0 Kudos
MichaelVolz
Esteemed Contributor

I think I was able to get past that issue when I added username as username@domain instead of just name.

0 Kudos