<div dir="ltr">Hi All,<br><div><br></div><div>Simple question, but this doesn't work and I have no idea why.</div><div><br></div><div>The following returns False, and has no features. Can someone please tell me what I am doing wrong -  this seems so simple and really there is nothing I can think of that is wrong with this, but doesn't work? </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">QgsVectorLayer('<a href="https://services.arcgis.com/quV9d0y7GW2PJkRl/arcgis/rest/services/rpt_spv_str_restr_prod_ogcfl/OGCFeatureServer">https://services.arcgis.com/quV9d0y7GW2PJkRl/arcgis/rest/services/rpt_spv_str_restr_prod_ogcfl/OGCFeatureServer</a>', "layer_name", "OAPIF").isValid()</font></div></blockquote><div><br></div><div>For reference, this is QGIS v3.16.11. Also, this DOES work when I add this URL as a WFS / OGC API to the QGIS Browser.</div><div><br></div><div>Thanks in advance,</div><div>Andrew</div><div><br></div><div><br></div></div>