dnc

arcgis server rest: error 500 with international characters

Discussion created by dnc on Jul 3, 2019
Latest reply on Jul 8, 2019 by dnc

So I've been really baffled by this problem: portal and agol mapviewer stop working when I remove some layers from an arcgis server map service.

 

After digging around, I saw that the error only happens when the layers have international characters, like ã, á, etc.

 

Looking at chrome console I cought an example of an offending request, with error 500. Very simple request:

https ://server/instance/rest/path_to_service/MapServer/export?
dynamicLayers=[{"id":4,"name":"group2-layer1á","source":{"type":"mapLayer","mapLayerId":4},"minScale":0,"maxScale":80000}]
&dpi=96&transparent=true&format=png32&layers=show:1,2,4,5&
token=bla
&bbox=-906856.5268948763,4616056.5285397945,-827362.0174784001,4661307.249284557
&bboxSR=102100
&imageSR=102100
&size=1040,592
&_ts=1562172529985
&f=image

This gives a 500 error.

 

Just replacing the name of the dynamiclayer marked in bold above to something with ansi characters it works fine.

 

So I'm justing asking if someone has seen this? Is there a feasible workaround?

 

Versions details: AGS 10.7.0, windows 2008 r2 x64.

Outcomes