Select to view content in your preferred language

ArcGIS Server error

214
6
a week ago
NarayanHamde
Emerging Contributor

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.

0 Kudos
6 Replies
CodyPatterson
MVP Regular Contributor

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

NarayanHamde
Emerging Contributor

Thanks for the reply. Whatever the limit I put for the records, it gives the same error but allows to pass, it works. You said to look through the REST directory, where can I find it?

0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @NarayanHamde 

If you're using Portal, you can access the rest directory on the Feature Layer under the item details here:

CodyPatterson_0-1762778631345.png

Or you can do this from server manager here after selecting the layer:

CodyPatterson_1-1762778696444.png

To me this appears as if it is a warning, but as I saw in your other message that it crashes above 4000, that could be a larger issue. I would recommend reaching out to Esri support as well to get a case started with them too!

Cody

 

0 Kudos
NarayanHamde
Emerging Contributor

I checked through the REST directory, none of the layers are referred as Class 1 Layer. I will look up ESRI support regarding the max count issue. But I think any api retrieving a large quantity of records into a web app shall crash the app.

0 Kudos
Priya_Das
Esri Contributor

Hi @NarayanHamde 

Could you check ArcGIS Server Administrator Directory to inspect the service definition JSON reflects the value correctly or not.

https://support.esri.com/en-us/knowledge-base/problem-unable-to-edit-the-maximum-record-count-for-fe...

What does - DEBUG logs says in ArcGIS Server Manager.

Could you try republishing the service



 

NarayanHamde
Emerging Contributor

Hi @Priya_Das, I checked the DEBUG logs, I could not find anything related to this error. I will try overwriting the service again. I can edit the number of max records, and it also reflects on to the custom web app. But when the max records is above 4000, the app crashes so I guess there is nothing much we can do.

0 Kudos