I have been trying to narrow down at what stage the domains get assigned so I was monitoring the StructureJunction XML definition in the database throughout the AssetPackageToUtilityNetwork execution and found something I wasn't expecting to ... the domain does get assigned and then later on it is removed. In reference to the attached log ... at 18:45 the definition of the ElectricWaterCrossing subtype looked like this (note at line 7 the domain is assigned):
<Subtype xsi:type="typens:Subtype">
<SubtypeName>Electric Water Crossing</SubtypeName>
<SubtypeCode>271</SubtypeCode>
<FieldInfos xsi:type="typens:ArrayOfSubtypeFieldInfo">
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>ASSETTYPE</FieldName>
<DomainName>6_AssetType_StructureJunction_ElectricWaterCrossing</DomainName>
<DefaultValue xsi:nil="true" />
</SubtypeFieldInfo>
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>ASSOCIATIONSTATUS</FieldName>
<DomainName>EQL_6_AssociationStatus</DomainName>
<DefaultValue xsi:type="xs:short">0</DefaultValue>
</SubtypeFieldInfo>
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>SUBNETWORKNAME</FieldName>
<DomainName />
<DefaultValue xsi:type="xs:string">Unknown</DefaultValue>
</SubtypeFieldInfo>
</FieldInfos>
</Subtype>
</Subtypes>
At 18:56 it is still assigned. However by 18:58 the domain has been removed:
<Subtype xsi:type="typens:Subtype">
<SubtypeName>Electric Water Crossing</SubtypeName>
<SubtypeCode>271</SubtypeCode>
<FieldInfos xsi:type="typens:ArrayOfSubtypeFieldInfo">
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>ASSETTYPE</FieldName>
<DomainName />
<DefaultValue xsi:nil="true" />
</SubtypeFieldInfo>
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>ASSOCIATIONSTATUS</FieldName>
<DomainName>EQL_6_AssociationStatus</DomainName>
<DefaultValue xsi:type="xs:short">0</DefaultValue>
</SubtypeFieldInfo>
<SubtypeFieldInfo xsi:type="typens:SubtypeFieldInfo">
<FieldName>SUBNETWORKNAME</FieldName>
<DomainName />
<DefaultValue xsi:type="xs:string">Unknown</DefaultValue>
</SubtypeFieldInfo>
</FieldInfos>
</Subtype>
Here is an excerpt from the log:
2020-05-06 18:57:17 ...SetSubnetworkDefinition (48/121)
2020-05-06 18:57:28 Start Time: Wednesday, 6 May 2020 6:57:19 PM
Succeeded at Wednesday, 6 May 2020 6:57:24 PM (Elapsed Time: 4.52 seconds)
2020-05-06 18:57:28 ...SetSubnetworkDefinition (49/121)
2020-05-06 18:57:40 Start Time: Wednesday, 6 May 2020 6:57:31 PM
Succeeded at Wednesday, 6 May 2020 6:57:36 PM (Elapsed Time: 4.49 seconds)
2020-05-06 18:57:40 ...SetSubnetworkDefinition (50/121)
2020-05-06 18:57:51 Start Time: Wednesday, 6 May 2020 6:57:43 PM
Succeeded at Wednesday, 6 May 2020 6:57:47 PM (Elapsed Time: 4.62 seconds)
2020-05-06 18:57:51 ImportRules (14/24)
2020-05-06 18:57:51 ...ImportRules (51/121)
2020-05-06 18:58:07 Start Time: Wednesday, 6 May 2020 6:57:53 PM
Succeeded at Wednesday, 6 May 2020 6:58:03 PM (Elapsed Time: 9.65 seconds)
2020-05-06 18:58:07 DisableEditorTracking (15/24)
2020-05-06 18:58:07 ...DisableEditorTracking (52/121)
Could ImportRules be causing this? Seems like an unlikely candidate.