I am using dynamic layer to load different data on map when we search. There are two ways to search:
1. by using country name
2. by using country as well as state name.
When we search using state and country name, then I am not having any issue. But when I search using just country name then I am getting "Error 500: Internal server error". I am using proxy for calling the arcgis services.
To set the new definition for layer:-
So,when we are searching using "Country", then a huge amount of data comes in variable 'layerDefinitions' and I am getting the above issue where 'POST' call is failing. But if we change the data and reduce the the amount of data in 'layerDefinitions', then It is working fine and data is getting loaded on the map (same case as search using 'State+Country').
Earlier, we were not using proxy and there were no issues.
Can anybody please tell me what changes can I do or is there any other way to set the map layer definition for such a huge amount of data for layer definition?
Thanks in advance.