Select to view content in your preferred language

create association line not working after importing associations

2197
13
Jump to solution
08-08-2023 09:00 PM
PierreloupDucroix
Frequent Contributor

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

CEO of MAGIS
0 Kudos
13 Replies
PierreloupDucroix
Frequent Contributor

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

CEO of MAGIS
0 Kudos
PaulLeBlanc1
Esri Regular Contributor

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.

0 Kudos
PierreloupDucroix
Frequent Contributor

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.

 

CEO of MAGIS
0 Kudos
PierreloupDucroix
Frequent Contributor

[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"
)
CEO of MAGIS
0 Kudos