0

I have a hosted layer in ArcGIS Online, and I've updated its maxRecordCount value as per the instructions at https://support.esri.com/en/technical-article/000012383

Max Record Count: 25000

Whenever I update that hosted layer (either via the ArcGIS Pro Overwrite Web Layer tool or via Python), the value reverts to the default of 2,000 features.

How can I maintain the changed maxRecordCount value when updating a hosted feature layer in ArcGIS Online?

4
  • The number may exceed the maximum maximum. 25K is a huge number of features to burden someone else's server with. If you have you own Server, you might be able to get it that high, but you might regret it.
    – Vince
    Jul 21, 2021 at 2:52
  • @Vince yep, we've tested the performance and 25k works fine. So the question is how to preserve that value after updating the layer Jul 21, 2021 at 3:28
  • Overwrite deletes the previous service, so when you reset the service, it uses default values. You'll need to make the same modifications after reset or include the massive feature count in the overwriting definition.
    – Vince
    Jul 21, 2021 at 12:49
  • @vince Do you want to put that as an answer and i'll accept it? Jul 22, 2021 at 1:08

1 Answer 1

0

As per Vince's comment it seems that re-publishing the layer to ArcGIS Online unavoidably resets the maxRecordCount.

The workaround is to change the value again after re-publishing, either manually or programatically.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.