Dear Esri team,
When I'm adding a layer to an ArcGIS Javascript map, the layer will automatically be queried from the REST API. In the automatically generated URL, the maxRecordCountFactor is set to 4, so with a maxRecordCount of 2000, 8000 features should be loaded. This works fine for a layer that is published in ArcGIS Online (Example). When I publish this same layer to our ArcGIS Enterprise 10.9 environment, the same query only returns 2000 features, so it looks like the maxRecordCountFactor is not applied. This leads to the problem that only 25% of the data is visible on the map when the layer is added in ArcGIS JS.
Is there any workaround for this problem?