I’m running an isolation trace on a Utility Network through a geoprocessing tool.
In one of the steps, I’m using Add Trace Locations with the Load Selected Features option.
I can successfully run the geoprocessing tool in ArcGIS Pro, but when I publish it and run it through the Portal, I get the following error:
ERROR 000228: Cannot open the dataset.
Failed to execute (AddTraceLocations).
Here’s the relevant part of my code:
arcpy.un.AddTraceLocations(
in_utility_network="https://myportal/server/rest/services/Agua/Agua/FeatureServer/8",
out_feature_class=temp_starting,
load_selected_features="LOAD_SELECTED_FEATURES",
clear_trace_locations="CLEAR_LOCATIONS",
trace_locations=None,
filter_barrier="TRAVERSABILITY_BARRIER"
)
My temp_starting variable is a feature class created before in the scratch_gdb, using the same schema as UN_Temp_Starting_Points.
Does anyone know if there are any behavioral differences for this tool when running in ArcGIS Pro versus in a Portal environment?