Select to view content in your preferred language

Errors with sharing .PPKX containing Model Builder and Overwrite web layers script

228
1
3 weeks ago
KristalWalsh
Frequent Contributor

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! 

Kristal Walsh, Florida Fish and Wildlife
Office of Conservation Planning
0 Kudos
1 Reply
Robert_LeClair
Esri Esteemed Contributor

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

  • Use a FGDB or enterprise geodatabase feature class as the authoritative source in the map.
  • Publish/overwrite the hosted feature layer from that dataset. This is the most reliable “push updates to Field Maps” pattern.

 

0 Kudos