<div dir="ltr">Hi All,<br><div><br></div><div>I am trying to create a python script that takes a URL as input and creates/outputs an ArcGIS Feature Service Vector Layer (used for further processing downstream). However, 

I believe I am doing something wrong with how I am trying to return the layer.</div><div><br></div><div>The script in question can be found here:</div><div><br></div><div><a href="https://github.com/ahhughes/pyqgisorama/blob/main/CreateArcGISFeatureLayer.py#L132">https://github.com/ahhughes/pyqgisorama/blob/main/CreateArcGISFeatureLayer.py#L132</a><br></div><div><br></div><div>Help would be great as I am very new to QGIS and have spent a fair bit of time trying to fix this without reaching out.</div><div><br></div><div>Thanks in advance</div><div>Andrew</div><div><br></div></div>