Esri / Esri/Utility-Data-Management-Support-Tools

Error: Executing from standalone Python

Open
#42 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
50
Forks
9
Avg merge
55m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.