AnsweredAssumed Answered

Can the Python API be used in a Web Tool for managing Portal Items?

Question asked by rhughes522 on Mar 24, 2020
Latest reply on Jun 1, 2020 by rhughes522



I've created a Script Tool in ArcPro 2.5 that uses the Python API to manage hosted layers.  It is not passing the Analyze step in the Web Tool publishing workflow to publish to Portal 10.8.  The line where the GIS is being declared is causing a broken project data source error.  This is a real bummer.  I think I have to scrap this entire model.  It is simple, but very critical for copying an empty hosted layer in Portal to a new service for a user to edit in a web app.


Any thoughts on whether the Python API can be used in a GP Service?  My alternatives are a custom server side app or the javascript api and do it all in the widget.  This solution of the python API would be perfect.