TransWikia.com

'Layer is not valid' error in QGIS for delimited text layer

Geographic Information Systems Asked by vastava on December 7, 2020

I am trying to add a CSV that contains lat/long coordinates as a layer to a project in QGIS but I keep getting a ‘layer is not valid’ error. Here is a picture of the data preview before I click Add:

enter image description here

And here’s the error message I’m getting:

CRITICAL Layer is not valid : The layer file:///(path)/(name)?type=csv&detectTypes=yes&xField=Longitude%0D(Decimal%20format)&yField=Latitude%0D(Decimal%20format)&crs=EPSG:4326&spatialIndex=no&subsetIndex=no&watchFile=no is not a valid layer and can not be added to the map. Reason:

Note: I didn’t include the file path and file name in the Error message because this is a work-related project. And yes, the reason is blank. It’s driving me insane!

One Answer

I just had this exact problem. Turns out that (for me) it was because the file I was attempting to import existed on a network drive. (so the usual rather lengthy pathname towards the file). I moved the data file onto a local folder (like C:Documents) and it worked fine.

Answered by MM0TJR on December 7, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP