Select to view content in your preferred language

Selection "Set as Analysis input" ignoring attributes and only bringing geometry to input of custom web tool

254
3
12-06-2024 01:33 PM
Labels (1)
tssaus
by
Emerging Contributor

EB Developer Edition v 1.16

 

I have a custom geoprocessing service (Python Toolbox) published to ArcGIS Enterprise, and it is being used in the Analysis widget within my Experience Builder.

 

 

When I make a selection on a layer with the Select widget, and use "Set as Analysis input" to my custom tool (the input parameter type is GPFeatureRecordSetLayer), it seems to only send the OBJECTID, Shape_Length, and Shape_Area attributes & its geometry. It ignores all other attributes. Since my tool depends on other attributes, it of course fails.

The layers I am using are feature services referenced to an SDE.

I know this isn't a problem with my code, because when I use the entire layer as the input, the attributes go to the tool as expected.

This seems like a bug? Is there a workaround for this, either within my script or in EB?

 

@Wei_Ying (I saw you are involved with this specific data action on other posts)

0 Kudos
3 Replies
Wei_Ying
Esri Regular Contributor

Hi @tssaus thanks for your feedback! Looks like a bug.

Would you be able to share with me the tool? 
And meanwhile, can you try loading your data in Table widget, and then select some records from table, to "Set as Analysis input " to the tool. See if the data attributes are passed correctly? 

0 Kudos
tssaus
by
Emerging Contributor

Hey! The attributes do pass correctly when sending from the Table widget off of a selection, and the tool functions as normal. It seems there is a bug with the select widget.

0 Kudos
Wei_Ying
Esri Regular Contributor

Thanks for confirmation. We will investigate the select widget issue. 

0 Kudos