Select to view content in your preferred language

Utility Network Shape Length and ArcGIS Dashboards

349
5
Jump to solution
2 weeks ago
TheRrrr42
Occasional Contributor

Hello all!
We noticed that one of our dashboards using a query layer was giving us trouble after moving to the UN. This was due to query layers of Branch Versioned Features including all of the edits that had been done against the database inflating some of our milage numbers. We are now looking at reworking the dashboard using some other services based off of our UN Features. However, we have noticed that we are experiencing BUG-000147447:

In ArcGIS Dashboards, attempting to use an indicator to sum the Shape_Length field of a service published from a feature class participating in a utility network fails with the error message, "Cannot access data." returned.

I was curious if anyone else has a solution or work around to getting a UN Shape_Length to play nice inside of a dashboard? 

Best,

Ricardo  

 

 

1 Solution

Accepted Solutions
RobertKrisher
Esri Regular Contributor

As discussed in the Water User Group meeting, some users are working around this limitation using the measuredlength field in their model. Because this is a bug this will be fixed, check the support page for the bug to see what version includes the fix and where it has been patched.

View solution in original post

5 Replies
RobertKrisher
Esri Regular Contributor

As discussed in the Water User Group meeting, some users are working around this limitation using the measuredlength field in their model. Because this is a bug this will be fixed, check the support page for the bug to see what version includes the fix and where it has been patched.

NathanWolfe
New Contributor

Is there any sort of estimate of when this might be fixed?  It looks like it's been a known bug since March of 2022...

https://support.esri.com/en-us/bug/in-arcgis-dashboards-attempting-to-use-an-indicator-to-bug-000147...

0 Kudos
RobertKrisher
Esri Regular Contributor

That's something you'd need to reach out to support on. The original issue that was logged was actually fixed last year, but this separate issue was separate out because there is also a branch versioning specific aspect to this.

0 Kudos
JamesRains
Regular Contributor

Instead of creating a separate field for the length, we used Arcade to create an array that sums the Shape_Length fields and included any other necessary fields for our dashboard.

// Write an expression that returns a FeatureSet.

var fs = FeatureSetByPortalItem(
    Portal('<insert portal address>'),
    '27a5912865834591bbddbf97066f9c56',
    39,
    ['SHAPE.STLength()', 'LIFECYCLESTATUS', 'FEEDERID', 'ASSETTYPE'],
    false
);

// Build an array of new features
var features = [];

for (var f in fs) {
    var lifestatus = f["LIFECYCLESTATUS"];
    if (lifestatus == 'ACT'){
    var FeederID = f["FEEDERID"];
    var AssetType = f["ASSETTYPE"]
    var lengthFeet = f["SHAPE.STLength()"];
    var lengthMiles = Round(lengthFeet / 5280, 2)


    Push(features, {
        attributes: {
            length_miles: lengthMiles,
            length_feet: lengthFeet,
            FeederID: FeederID,
            AssetType: AssetType,
        },
    });}
}

// Define the fields (include the new one for miles)
var convertedValues = {
    fields: [
        { name: 'length_miles', type: 'esriFieldTypeDouble' },
        { name: 'length_feet', type: 'esriFieldTypeDouble' },
        { name: 'FeederID', type: 'esriFieldTypeString' },
        { name: 'AssetType', type: 'esriFieldTypeSmallInteger'}
    ],
    geometryType: '',
    features: features
};

return FeatureSet(convertedValues);
TheRrrr42
Occasional Contributor

Thanks James! We ended up doing the same, not the most performant but it should let us bridge the gap until this works natively in 12.1.