Hello, I have published a map service on to the GIS server. I can see the service in the ArcGIS Server Manager. I have imported layers from the service in to my custom web app. Now I am trying to change the Maximum Number of Records Returned by server from 2000 to 4000. It got reflected on to my web app, I can see 4000 records in the table. But when I saved and restarted the service after changing the limit, it gave an error:
Service Started with errors.
<MapServerName>:
Instance of service <MapServerName> started with errors. The Layer:'Class 1' in Map: 'Map' is invalid.
There is no Class 1 named layer in my map. I don't understand what is the problem. When I changed back the limit to 2000 and pressed Save and Restart button, it gave the same error. But my Web app is working fine. All layers are loaded.
Hey @NarayanHamde
When it says started with errors, it's typically indicating that something is wrong, but it will allow it to pass. If you were to change it, and then attempt to select 4000 records, does it work? If so, then there's not much to be concerned about, as anything could end up throwing the error, and as you said there's no Class 1 layer in the map, so it could be redundant.
You may try looking through the REST directory at each layer and verifying if any of those layers are referred to as Class 1, or try pulling it into ArcGIS Pro and see if any present datasource errors.
Cody
Could you check ArcGIS Server Administrator Directory to inspect the service definition JSON reflects the value correctly or not.
What does - DEBUG logs says in ArcGIS Server Manager.
Could you try republishing the service