Max Domain Code Count

8330
4
12-21-2010 11:49 AM
CaseyBentz
Occasional Contributor II
I noticed that in my Server Manager Console, I see an error, 'Total number of coded domain values in this service exceeds the MaxDomainCodeCount, hence operation can not be performed.'  I found documentation on this error and it states that you can add the <MaxDomainCodeCount> tag to the cfg file.  I did this and changed the value a bunch of times, be still get the same error message.  I restarted the SOM after each change, but still not getting the desired result.  I set it at 1500000 just to see if that would work and it still didn't.  Does anyone have any experience configuring a service to return a large number of coded values?
Tags (2)
4 Replies
MattShetzer
New Contributor
I am coming across this same error.  Did you ever find a solution for it?

Thanks,
Matt Shetzer
0 Kudos
CaseyBentz
Occasional Contributor II
I found that I placed the tag in the wrong part of the config file. I was adding it to the end of the file, as its own tag, but it belongs in the properties tag. Once I plaved the tag inside the properties tag and restarted the SOM, it worked.
<Properties>
  <FileName>TransAndDist.msd</FileName>
  <OutputDir>d:\arcgisserver\arcgisoutput</OutputDir>
  <VirtualOutputDir>http://servername/arcgisoutput</VirtualOutputDir>
  <SupportedImageReturnTypes>URL</SupportedImageReturnTypes>
  <MaxImageHeight>2048</MaxImageHeight>
  <MaxRecordCount>1000</MaxRecordCount>
  <MaxBufferCount>100</MaxBufferCount>
  <MaxImageWidth>2048</MaxImageWidth>
  <IsCached>false</IsCached>
  <CacheOnDemand>false</CacheOnDemand>
  <IgnoreCache>false</IgnoreCache>
  <ClientCachingAllowed>true</ClientCachingAllowed>
  <CacheDir>d:\arcgisserver\arcgiscache\Delivery_TransAndDist</CacheDir>
  <SOMCacheDir>d:\arcgisserver\arcgiscache</SOMCacheDir>
  <MaxDomainCodeCount>5000000</MaxDomainCodeCount>    <-------------------------
  <SchemaLockingEnabled>false</SchemaLockingEnabled> 
 </Properties>
AnnStark
New Contributor II
It took some digging, but here is the location of the configuration files referred to above:
...\Program Files (x86)\ArcGIS\Server10.0\server\user\cfg\maps
0 Kudos
TrevorHart2
New Contributor III

I just came across this problem with ArcGIS Server 10.1. The problem was I had a coded domain with 1000+ items on it (Street Name) which was applied to almost all the layers in the map. Removed the values and the error disappeared. I guess one could hide the column from the web service if required?

0 Kudos