create association line not working after importing associations

871
13
Jump to solution
08-08-2023 09:00 PM
PierreloupDucroix
Occasional Contributor II

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

0 Kudos
13 Replies
PierreloupDucroix
Occasional Contributor II

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

0 Kudos
PaulLeBlanc1
Esri 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
Occasional Contributor II

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.

 

0 Kudos
PierreloupDucroix
Occasional Contributor II

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