Hi,
I recently imported a bunch of associations using the ImportAssociations toolbox in python.
I now want to use UDMS's "create association line" toolbox in ArcGIS Pro to visualize containment associations with lines.
The toolbox returns no lines, until I add new associations manually, or modify any existing association (removing then recreating)...
Do you know what I can do to make it work for all imported associations ?
Thanks
Solved! Go to Solution.
Hi Paul,
the "association status" field is always set to None, while the "Expected status" contains valid values like Container...
Also when creating UN system table views, the Association view always has "Status" = 0
The issue is probably with import associations then.
Is your network topology disabled? I've reproduced a similar issue internally with import associations, but only when topology is disabled on mobile geodatabase.
Hi Paul,
I am migrating data, so my topology is disabled.
Importing my associations after enabling the topology solved the problem.
But after importing 170 000 associations, it takes a while to validate topology (40 mn), so it is not a good solution in my migration process.
[EDIT] :
Instead of validating network topology, I found it really, really, really faster to disable, then re-enable topology :
The code :
# arcpy.ValidateNetworkTopology_un(un, 'Default')
arcpy.un.DisableNetworkTopology(
in_utility_network=un,
)
arcpy.un.EnableNetworkTopology(
in_utility_network=un,
max_number_of_errors=1000000,
only_generate_errors="ENABLE_TOPO"
)