Select to view content in your preferred language

Publish feature layer without domain descriptions

619
4
08-05-2022 08:23 AM
BobBoutiette
Occasional Contributor

I am using ArcPro 3.0 to publish a feature layer from an enterprise geodatabase.  Is there a way to turn off the domain descriptions before publishing?  I trying to end up with the published layer only having the domain code in the table and not description.  I'm trying to do this without messing with the schema of the layer.  

Publish this                        Not this

BobBoutiette_0-1659712926058.png

 

Tags (2)
0 Kudos
4 Replies
Robert_LeClair
Esri Notable Contributor

One easy idea that comes to mind is convert the gdb feature class to a shapefile as shapefiles do not have subtypes or domains.  Then share the shapefile as a web feature layer.

Not sure if this would work but worth a shot - open the attribute table for the feature class in mind, click the options button (far right) and uncheck the "show domains and subtype description", then share as a web feature layer.  What is the result?

0 Kudos
BobBoutiette
Occasional Contributor

Thanks for the input, but I am trying to remain in the geodatabase arena. 

0 Kudos
RhettZufelt
MVP Notable Contributor

You can calculate that to a new field before publishing using Arcade and DomainName function.

DomainName($feature, theField)

R_

0 Kudos
RhettZufelt
MVP Notable Contributor

This "new" forum format, can't tell which post you are replying to.

What is it that would keep you from remaining in the geodatabase arena?

R_

0 Kudos