Select to view content in your preferred language

create association line not working after importing associations

1014
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
1 Solution

Accepted Solutions
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.

View solution in original post

0 Kudos
13 Replies
MikeMillerGIS
Esri Frequent Contributor

Can you turn on debug mode and share the messages?

Open the toolbox and a tool

Open python window and type

import udms

udms.logging.setLevel('DEBUG')

0 Kudos
PierreloupDucroix
Occasional Contributor II

I have this error :

udms.logging.setLevel('DEBUG')
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'udms' has no attribute 'logging'

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

Sorry, .logger

Not at my computer and typed it by memory

0 Kudos
PierreloupDucroix
Occasional Contributor II

Here is the result :

udms 3.1.1

udms.logic.association_lines(
network='...UNPATH',
line_class='...PATH\EECUtilityNetwork_SAAsso',
connectivity=False,
containment=False,
attachment=True,
completely_within=None,
)
Describing network
In Path: ...UN Path...
URL: ...UN Path...
workspace: ...WKSP...
Path: ...UN Path...
Reading source features
StructureJunction
StructureBoundary
StructureLine
ElectricDevice
ElectricAssembly
ElectricJunction
ElectricLine
Reading associations
1
2
3
4
5
Joining attributes
Creating output feature class
Writing association records
1
2
3
4
udms.logic.association_lines 10.421187999999347

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

Hmm, not much help.  Will have to try to repo.  Is this services or Fgdb/mgdb

0 Kudos
PierreloupDucroix
Occasional Contributor II

This is a mobile geodatabase

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

Btw, those options should only give you attachments lines.  Connectivity it set to false 

0 Kudos
PierreloupDucroix
Occasional Contributor II

Yes but same things happens for each type of associations

0 Kudos
PaulLeBlanc1
Esri Regular Contributor

Create Association Lines relies on Feature.AssociationStatus field for synthesizing geometries. If this field gets out of sync with the association table, some associations will not be included.

After importing the associations, can you run Summarize Utility Network Errors (another GP tool in UDMS) with "Identify Association Inconsistencies"? If the output table has records, that will confirm this bug.

0 Kudos