Hi everyone, we are using the Publish and overwrite web layers in ModelBuilder script by Jonah Lay to simplify the workflow from Pro to field maps for about 25 biologists in our agency. It runs successfully in Pro when shared to an AGO group but I need to share this workflow with those staff who are not very Pro--AGO savvy. We are getting an arcgis scripting ERROR 003999: Internal server error when it tries to upload the service definition. Is this a web layer ownership issue? If so, can the script be amended so that we can share the working model with others who need to use it? We are working in ArcGIS Pro 3.6. Error and screen snip of model builder tool attached. Thank you in advance for any suggestions!
If the layer you’re publishing/overwriting from in Pro is a service layer (hosted feature layer / feature service / map service), that’s very likely the cause of the 003999 at Upload Service Definition. Overwrite is designed to replace a web layer based on its source dataset (file/enterprise geodatabase, etc.). When the “source” is already a service, Pro often can’t stage a valid SD to overwrite, and you end up with generic server-side failures like 003999.
Best practice is to make the source a real dataset, not a service