Changing the layer order in a map document and republishing the service to ArcGIS for Server causes the pre-configured Query widget in Web AppBuilder to stop working.
Last Published: November 25, 2015ArcGIS for Server
Bug ID Number
November 14, 2015
August 21, 2020
ArcGIS for Server
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
If the layer ID for a given layer is changed in a web service, the client application is unaware of that change. Since the layers used by the query widget are dependent on the layer index, the client must be updated. This is true for all web clients.