Hi,
I'm working a script to automate the updating of subnetworks against the default version and when run it keeps returning the following error message:
arcgisscripting.ExecuteError: ERROR 000228: Cannot open the dataset.
The utility network service was created using a user that has permissions to update the default version and if I run the code snippet from a ArcGIS Pro session it will run fine, even if I'm logged into the portal as a regular user. I have also tried changing the credentials by importing them from a server connection file with the correct user credentials but the script also fails.
import arcpy
retval = arcpy.un.UpdateSubnetwork('https://my_server/server/rest/services/UN_UPDATE_IaaS_DB1/FeatureServer/0','Pipeline', 'System', 'SPECIFIC_SUBNETWORK', 'DS 01-0247', 'STOP_ON_FAILURE',include_barriers='INCLUDE_BARRIERS',traversability_scope='BOTH_JUNCTIONS_AND_EDGES')
Any suggestions?