I am running a custom geoprocessing tool on AGOL in a web application. I am getting the error:
- ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
- Failed to execute (Select Layer By Location (2)).
I have this tool set up in ArcGIS Pro in model builder where it accepts user input and runs three python scripts along with some built in tools. The error is thrown in the first part of the model where in a python script, I accept user input to select a chosen location and run the Generate Service Areas tool to create drive time polygons. Once this script finishes, I attempt to use Select Layer by Location on the output service area layer. This is where the tool seems to fail in AGOL. (It works no problem in Pro.)
Originally, I had this model working in ArcGIS Desktop and working as a geoprocessing tool in AGOL, but I transitioned to ArcGIS Pro in order to use the Generate Service Areas tool in Pro. Because this is the only change I made to the scripts, I believe the Generate Service Areas tool is the cause of the problem. However, it fails at the Select Layer by location which is the tool I call after running the script that calls Generate Service Areas tool.
Any ideas on what could cause this to fail?