Hi all, title says most of it.
We've built a tool in ModelBuilder to create a number of datasets for us that we then upload to our organization's AGOL account. That tool applies custom symbologies and creates specific fields that other people in our organization will use. Our tool has worked nicely for us, but we've added a new module that creates new feature classes (which we then add to a map from the output feature database, we'd love for these to add to the map automatically, but they don't, per a bug someone else has previously ID'd) we then want to upload those layers to AGOL using the "Share>Publish Web Layer" option on the whole group of new feature classes we've created.
The problem we're running into is that the display name for these new feature layers defaults to "Shape_Length" despite the fact that there are multiple other fields in the layer called "Project Name," "Label," etc. The ArcPro documentation here states that the display field is "By default, it is set to the first available string field in the feature layer containing the word name in the field name." This default behavior is not occurring and we do not know why.
Has anyone run into this issue before? Does anyone know how we can set in ModelBuilder or in the publish web layer menu the display name to not be "Shape_Length"?
To be clear, setting the display name individually in the layer properties is not an option, as we will be running this tool on hundreds of sites and do not have the bandwidth to set it all manually. Thanks!