4 I want to get the layer from


and when I try to add a layer (via add new ArcGis Feature Server Layer) I got the message

Layer is not valid: The layer crs='EPSG:32647' filter='' url='http://3d-cpd.bangkok.go.th/ArcGIS/rest/services/BMA3D_2D_WMS_TTD/MapServer/15' table="" sql= is not a valid layer and can not be added to the map. Reason: AFSProvider getObjectIds failed: Error 400 - Unable to complete operation.

What is the cause of this? and could I get the data after all?

  • Can you provide more information in the question on how you've tried to add this layer
    – nmtoken
    Commented Jun 21, 2019 at 9:17
  • If you click on the link and then right click on the link location bar (e.g, Mapserver) and copy the link location, then use that as the url when adding an ArcGISMapServer layer, that might work. I just was able to do it in my 3.10
    – John
    Commented Nov 19, 2019 at 18:08

2 Answers 2


You've tagged QGIS, so I assume you're trying to view it there. However, it doesn't even load in a simple JS viewer: http://3d-cpd.bangkok.go.th/ArcGIS/rest/services/BMA3D_2D_WMS_TTD/MapServer?f=jsapi Console error:

Unchecked runtime.lastError: The message port closed before a response was received.

I dont think there is much you can do. It looks like a Server/Service problem that they have to fix.

In short, your only course of action would to get in touch with the server owners and inform them of the error and hopefully they'll fix it.

  • Try searching for it on arcgis.com. Perhaps there's another link to the same layer, or a similar one available.
    – csk
    Commented Jun 21, 2019 at 21:43
  • Hi KHibma, for me the map in your link is loaded as usual. So is it a problem from the server ? (Thanks for your help btw ) Commented Jun 22, 2019 at 11:09

I also get the same error as you when trying to use the ArcGIS FeatureServer Layer functionality.

QGIS generates a request like:

ArcGIS FeatureServer Layer request

I find I can get some data showing if I use the WMS interface.

One thing to note is the data is scale layered, so for example you'll need to zoom in some way to see anything from the Hydro layer


Example GetMap request generated by QGIS that shows a map:


GetMap request for Hydro layer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.