Hi all,
I get the following error when I run the script with find_nearest function or any other function from use_proximity module. I am lost, tried all kinds of workarounds, nothing worked so far. I would appreciate any help.
The script is as following:
Solved! Go to Solution.
I changed the environment to conda and the script ran successfully. I don't quite understand why, because arcgis was installed on both environments. Any ideas?
I think because you have only imported find_nearest from use_proximity, when you then reference use_proximity.find_nearest() it croaks.
perhaps try just find_nearest() or otherwise - from arcgis.features import use_proximity
Thank you, I tried what you've proposed before, still same error no matter what.
When I try this create_bufferes function on any hosted layer, I get the same result. I am thinking - can there be a problem with geoprocessing on my end because of my negative arcgis credits balance?
Hi Yulia,
That is definitely possible. A lot of these analysis tools use the default ArcGIS Online utility services, which can incur a credit cost. A worthwhile test may be to add a table/hosted feature layer to a new Web Map in your Portal organization, and then click the Analysis button from the toolbar. Here, we can run the same tools manually, including Find Nearest. If run in the web map, does the tool succeed?
Also, what do you see listed under Portal -> Organization -> Settings -> Utility Services -> Directions and Routing -> Closest Facility (Asynchronous)? If this is an ArcGIS Online URL, then it means that the operation will cost credits according to the credit breakdown here: https://doc.arcgis.com/en/arcgis-online/administer/credits.htm#ESRI_SECTION1_709121D2C7694DCAB9B8592...
The Find Nearest tool using this utility service endpoint to perform the operation.
Thanks,
Calvin
Hi Calvin,
I realized that this issue is not related to credits, because my colleague successfully ran the same script with the same account credentials.
I don't know what else I can do about it. The error persists with all analysis module functions.
Thank you,
Yulia
I changed the environment to conda and the script ran successfully. I don't quite understand why, because arcgis was installed on both environments. Any ideas?