Select to view content in your preferred language

Domain does not update when service is republished

2834
18
07-12-2023 07:51 AM
ZachBodenner
MVP Regular Contributor

Hello,

I have a feature service which references an Enterprise gdb feature class. I created a new domain, applied it to one of the fields in the feature class, and overwrote the service (Enterprise 11.1). Despite everything saving correctly and publishing correctly, I'm not able to select from the values in the domain when I go to edit the feature in a web environment. Also, the REST endpoint does not show the coded values in the attribute info. 

This has been kind of a long running problem - sometimes a similar issue will get fixed if I overwrite a service like 10 times, and other, like now, I just can't get the changes to stick.

18 Replies
MattiasEkström
Frequent Contributor

In my case it was not a completly new domain, just a new value to an existing domain. However I could see the new domain value if I went to the REST interface and used the queryDomains operation on my layer. for example  https://myserver/mywebadaptor/rest/services/myservice/FeatureServer/queryDomains

But I could not see my new domain value in the layers page https://myserver/mywebadaptor/rest/services/myservice/FeatureServer/[mylayerid] and therefor not in my webapps either.

I was asked by Esri sweden support to just restart the service, I thougt I had tried this, but this time it worked to just stop and start the service from ArcGIS Server Manager. I tried adding another new domain value, and it was the same, republishing the service is not enought, it does show up in the queryDomains but not on the layers page. Restarting the service from ArcGIS Server Manager solved it again.

DavidFlack
Regular Contributor

@MattiasEkström we found the same issue at 3.2.  Restarting the service in ArcGIS Server Manager also updated the domain in our feature layer.

0 Kudos
amyw
by
Occasional Contributor

I was having the same issue in ArcGIS 3.2.2.  I ran "assign domain to field" even though the data model field editor showed the renewed domain name & I saved the changes.  This extra step seemed to resolve same issue I was having in overwriting a web layer with an update to a coded-value domain.  The domain updated this time!

0 Kudos
CalvinHarmin
Occasional Contributor

I've had the issue of domains not being correctly updated/reflected in web maps when republishing after changes were made to a domain. The 'fix' if you can call it that on my end seems to be some combination of

  • closing all other instances of ArcGIS Pro except for the project I'm publishing from;
  • close all but the map in question within that project being used for publishing;
  • recheck domain settings/values 
  • save & close the project and restart it to make sure it's loaded fresh; 
  • republish again
  • maybe do this twice?

It's pretty wonky sometimes. I'm not sure why it takes sometimes and not others. 

Enterprise 11.1, SQL Server 2016 for SDE, ArcGIS Pro 3.1

0 Kudos
TimWillson
Occasional Contributor

I've been running into these issues as well, even with 3.3. Seems the only fix for me is to restart ArcGIS Server service, not just the REST service.

DallasShearer2
New Contributor

Having similar problem. The service I have is published as a shared instance. If I toggle it to a dedicated instance, the domain shows up. If I toggle it back to a shared instance, it disappears. This is repeatable multiple times. Going to talk to my admin guy to see what we can do to either change the pooling to make this work better or make this permanently dedicated.

0 Kudos
LISARAYBURGodot
Emerging Contributor

this is what actually worked for me!! I was having  the same issue of the domains not updating over to AGOL... and this helped! Thanks

0 Kudos
CalvinHarmin
Occasional Contributor

@LISARAYBURGodot 

Which fix worked for you? A few different things have been suggested so I am curious. 

Also, are you using Dedicated, or Shared resource pooling?

0 Kudos
LISARAYBURGodot
Emerging Contributor

If I publish as shared instance, everything will show up as it should on the AGOL side. But when I had to go back and make changes to domains, and didn't publish as a dedicated instance, then the domain changes would not show up. Then once I switched to "dedicated" and overwrote the service, the domain chanages were there!