Got a failure to add a graphicsLayer on the map. This piece of code worked well several days ago. I don't know why it breaks. The related code is below: var queryFeatures = featureSet.features; for (var i = 0; i < queryFeatures.length; i++) { queryFeatures.setSymbol(querySymbol); gLayer.add(queryFeatures); } map.addLayers([gLayer]); When I run debugging, at map.addLayers([gLayer]); I can view that the gLayer (GraphicsLayer) does have 27 records. After I press F10 to continue the debugging, it shows catch(g) g - undefined Hopefully, I can get a hint from you. Thanks in advance.