I get the following error while executing this code from Pycharm:
associationResult = arcpy.AssociationSelection_udms(
in_utility_network=UN_NAME,
layer_payload=layer_payload,
# json_payload="""[
# {
# "fromLayers": [],
# "fromSelectionType": "KEEP",
# "associationTypes": [],
# "toLayers": [],
# "toSelectionType": "NEW"
# }
# ]"""
)
where UN_NAME is the path to my main UN network
Traceback (most recent call last):
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 160, in
run(id_branc)
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 135, in run
epSepare(id_cable, percentage)
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 112, in epSepare
tigreUtils.SelectFeatureByAssociation("0 'Point de structure/Support' CLEAR ALL '-- All --' NEW")
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\tigreUtils.py", line 60, in SelectFeatureByAssociation
associationResult = arcpy.udms.AssociationSelection(
File "D:\Delaporte\TIGRE\Utility-Data-Management-Support-Tools-6_1_2023_3.1.1\UtilityDataManagementSupport.atbx", line 740, in AssociationSelection
File "D:\Delaporte\TIGRE\Utility-Data-Management-Support-Tools-6_1_2023_3.1.1\UtilityDataManagementSupport.atbx", line 737, in AssociationSelection
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 512, in
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Executing from standalone Python
Échec de l’exécution de (AssociationSelection).
I did not find any information on the internet
I get the following error while executing this code from Pycharm:
associationResult = arcpy.AssociationSelection_udms(
in_utility_network=UN_NAME,
layer_payload=layer_payload,
# json_payload="""[
# {
# "fromLayers": [],
# "fromSelectionType": "KEEP",
# "associationTypes": [],
# "toLayers": [],
# "toSelectionType": "NEW"
# }
# ]"""
)
where UN_NAME is the path to my main UN network
Traceback (most recent call last):
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 160, in
run(id_branc)
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 135, in run
epSepare(id_cable, percentage)
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\main_epsepare.py", line 112, in epSepare
tigreUtils.SelectFeatureByAssociation("0 'Point de structure/Support' CLEAR ALL '-- All --' NEW")
File "D:\Delaporte\TIGRE\Sprint3_EPSEP\tigre-epsepare\tigreUtils.py", line 60, in SelectFeatureByAssociation
associationResult = arcpy.udms.AssociationSelection(
File "D:\Delaporte\TIGRE\Utility-Data-Management-Support-Tools-6_1_2023_3.1.1\UtilityDataManagementSupport.atbx", line 740, in AssociationSelection
File "D:\Delaporte\TIGRE\Utility-Data-Management-Support-Tools-6_1_2023_3.1.1\UtilityDataManagementSupport.atbx", line 737, in AssociationSelection
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 512, in
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Executing from standalone Python
Échec de l’exécution de (AssociationSelection).
I did not find any information on the internet