Hi all,<br><br>I have this wfs layer that has more than 17,000/- points. This is causing the browser problems. So I thought that i could cut the shape file and made smaller shape files.<br>I was trying to dynamically load wfs layer via the featureType property.<br>
<br>I have the layer<br><br>var state= new OpenLayers.Layer.Vector(&quot;Bangalore Rural&quot;, {<br>        strategies: [new OpenLayers.Strategy.BBOX()],<br>        filter:&quot;&quot;,<br>        protocol: new OpenLayers.Protocol.WFS({<br>
            version: &quot;1.1.0&quot;,<br>            url: &quot;<a href="http://Aparna:8081/geoserver/wfs">http://Aparna:8081/geoserver/wfs</a>&quot;,<br>           <br>            featureType: &quot;&quot;,<br>            featureNS: &quot;<a href="http://opengeo.org/India">http://opengeo.org/India</a>&quot;<br>
        })<br>        <br>    });<br><br>and when the user selects a checkbox i want to load a wfs layer<br><br>this is what i tried<br><br>map.layers[2].protocol.featureType=&quot;k_220&quot;;<br>map.layers[2].refresh({force:true});<br>
<br>but i am getting this error<br><br><pre><font size="4"><code class="wrappedText focusRow">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
</code><code class="wrappedText focusRow">&lt;ows:ExceptionReport version=&quot;1.0.0&quot;
</code><code class="wrappedText focusRow">  xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://aparna:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport">http://aparna:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport</a></code><code class="wrappedText focusRow">.xsd&quot;
</code><code class="wrappedText focusRow">  xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:ows=&quot;<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>&quot;&gt;
</code><code class="wrappedText focusRow">  &lt;ows:Exception exceptionCode=&quot;NoApplicableCode&quot;&gt;
</code><code class="wrappedText focusRow">    &lt;ows:ExceptionText&gt;Could not locate {<a href="http://opengeo.org/India">http://opengeo.org/India</a>} in catalog.&lt;/ows:ExceptionText&gt;
</code><code class="wrappedText focusRow">  &lt;/ows:Exception&gt;
</code><code class="wrappedText focusRow">&lt;/ows:ExceptionReport&gt;<br><br></code></font></pre><br>Any Ideas anyone?<br><br>Thanks,<br>Aparna<br>