When ever request send from arcgis java script application to arcgis map service layer the arcgis server truncating where clause and in SQL server query is generating without where clause.
The attachment shows in sql server where clause in not appended what ever where clause send from rest api.
ArcGIS Server :10.4.1
SQL Server :2016
Arcgis Javascript :3.17