|
POST
|
Try this, my only guess is that adds or deletes is an empty array and maybe that is causing an issue // Arrays to store edits
var edits = [];
var adds = [];
var deletes = [];
// Get all District features
var allDistricts = FeatureSetByName($datastore, "District");
// Find District features that intersect this Municipality feature
var intersectingDistricts = Intersects(allDistricts, $feature);
// Determine which District features that this Municipality overlaps with 80% or more
var overlappingDistrictGlobalIds = [];
for (var district in intersectingDistricts) {
var districtGeometry = Geometry(district);
var districtArea = Area(districtGeometry);
var intersectionGeometry = Intersection(Geometry($feature), districtGeometry);
var intersectionArea = Area(intersectionGeometry);
if ((intersectionArea / districtArea) >= 0.8) {
// This district overlaps, so store the GlobalID for it
Push(overlappingDistrictGlobalIds, district.GlobalID);
}
}
// Determine which relationships to add (new District features that overlaps with at least 80%)
var relatedDistricts = FeatureSetByRelationshipName($feature, "Municipality_District_Rel", ["GlobalID"]);
for (var index in overlappingDistrictGlobalIds) {
var districtGlobalId = overlappingDistrictGlobalIds[index];
Console(districtGlobalId);
var relatedDistrict = First(Filter(relatedDistricts, "GlobalID = @districtGlobalId"));
if (relatedDistrict == null) {
// A relationship didn't exist, so add it
Push(adds, {
'attributes': {
'Municipality_GlobalID': $feature.GlobalID,
'District_GlobalID': districtGlobalId
}
});
}
}
// Get existing relationships between Municipality and District features
var allRelationships = FeatureSetByName($datastore, "Municipality_District_Rel", ["*"]);
var relationships = Filter(allRelationships, "Municipality_GlobalID = '" + $feature.GlobalID + "'");
// Determine which relationships to delete (no longer overlapping with at least 80%)
for (var relationship in relationships) {
if (!Includes(overlappingDistrictGlobalIds, relationship.District_GlobalID)) {
// No longer overlapping enough, so delete the relationship
Push(deletes, {'GlobalID': relationship.GlobalID});
}
}
// Return edits dictionary if there are changes to the relatio
if (Count(adds) == 0 && Count(deletes) == 0) {
return;
}
var edit_payload = {
'className': "Municipality_District_Rel",
}
if (Count(adds)){
edit_payload['adds'] = adds
}
if (Count(deletes)){
edit_payload['deletes'] = deletes
}
Push(edits, edit_payload);
return {
'edit': edits
};
... View more
03-20-2026
05:55 AM
|
0
|
1
|
487
|
|
POST
|
Take a look at the Create Association Record tool in the utility network package toolset https://doc.arcgis.com/en/arcgis-solutions/latest/tool-reference/utility-network-package/create-association-records.htm
... View more
03-17-2026
08:28 AM
|
0
|
0
|
311
|
|
POST
|
Also, an AssetGroup/Type only supports one role, a container or structure(attachment). So two associations do not make sense which different types.
... View more
03-15-2026
06:56 AM
|
0
|
0
|
321
|
|
POST
|
I posted a pre-release of version of the UDMS for 3.5 that supports maintaining attachments in the Transfer UN Data tool - https://github.com/Esri/Utility-Data-Management-Support-Tools/issues/64
... View more
03-03-2026
10:35 AM
|
1
|
0
|
581
|
|
POST
|
The only other way is added a directional device so the blue controller cannot trace to the yellow controller. Something like a network protector right after the yellow controller.
... View more
03-03-2026
05:58 AM
|
0
|
0
|
990
|
|
POST
|
You will need to open another device to isolate the yellow subnetwork from that section then. In the current state, the network sees two subnetworks on that line. Meaning it is energized from both directions.
... View more
03-03-2026
04:22 AM
|
1
|
2
|
1011
|
|
POST
|
Then you need to define a condition barrier that separates those two subnetworks at that device. You need a condition barrier for both NS is open or OS is open.
... View more
03-03-2026
03:33 AM
|
0
|
4
|
1015
|
|
POST
|
Is the device between the blue and yellow a subnetwork controller? Can you verify the blue line is connected to a different controller than the yellow line?
... View more
03-03-2026
02:53 AM
|
0
|
6
|
1024
|
|
POST
|
This is as expected in a version with eventing off. This is caused by how Branch versioning works. In a version, a row only exist if it was modify. So take Eds example 1: Create Version - At this point, there are zero records with that branch ID 2: Open Fuse - This edit adds a new record to the device table with the updated attributes. The Branch ID of that row references this active version 3: Save/Validate/Update Subnetwork- Since there is only one row with this versions branch ID, this is the only record that can be updated. If Update Subnetwork were to update the affected down stream features, those edits would show up in default. Hopefully this helps. Running a subnetwork trace will display the correct results.
... View more
02-23-2026
11:55 AM
|
1
|
1
|
311
|
|
POST
|
It also might occur if you have an Attachment Rule and the association type is a structure.
... View more
02-19-2026
03:55 AM
|
2
|
0
|
645
|
|
POST
|
Sure, but you probably need to remove their assignment or delete the field they are assigned to.
... View more
02-17-2026
11:13 AM
|
1
|
1
|
483
|
|
POST
|
During migration, depending on order, we do not know the Asset Group/Type of the feature, so it is really hard to calc that in the data loading process. That is why it is best to have the Data Loading move the data, then run tools to sync the values in the C tables so they align to the records and how they were mapped/transferred.
... View more
02-17-2026
10:28 AM
|
1
|
0
|
651
|
|
POST
|
We will provide a version for 3.7, as that is part of the Long Term Release. We strongly suggest organizations use versions of ArcGIS Pro and Enterprise that are part of the Long Term Utility Network release. There are/will be fixes applied to 3.5 patches that will not be made available for 3.6 in regards to the Utility Network. If you are not familiar with this plan, here is an article that might help https://www.esri.com/arcgis-blog/products/utility-network/data-management/announcing-the-2025-network-management-release-plan https://www.esri.com/arcgis-blog/products/utility-network/announcements/announcing-the-network-management-release-plan
... View more
02-17-2026
06:25 AM
|
0
|
0
|
726
|
|
POST
|
Since 3.6 is not part of the Long-Term Support (LTS) Network Management release for ArcGIS Utility Network, we are not planning on releasing a version of the UDMS for 3.6.
... View more
02-17-2026
06:06 AM
|
0
|
2
|
744
|
|
POST
|
What type of association are you trying to achieve? You can load the primary and foreign keys into the from and to global IDs of the c_assocation table and set the association type, then run the Sync C tables (https://esri.github.io/Utility-Data-Management-Support-Tools/docs/3.1/SyncAssetPackageDataTables.html) tool to set their Asset Groups/Types.
... View more
02-17-2026
03:32 AM
|
1
|
2
|
668
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | a month ago | |
| 1 | 05-12-2026 08:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|