I created a python script tool and exported it as a web tool to use in the geoprocessing widget. It converts a selected layer to KML and exports it. The selection and input layer works fine, but when I export I get a URL to the exported KMZ location, and the URL fails with the error code below:
![GeoRenewable_0-1720564234218.png GeoRenewable_0-1720564234218.png](https://community.esri.com/t5/image/serverpage/image-id/109271i0B6D4094FA92D1AC/image-size/medium?v=v2&px=400)
Here's the web tool code for reference:
![GeoRenewable_1-1720564462580.png GeoRenewable_1-1720564462580.png](https://community.esri.com/t5/image/serverpage/image-id/109272iD92D656D5FE614E8/image-size/medium?v=v2&px=400)