invalid byte sequence for encoding "UTF8": 0xc9 CONTEXT: COPY address_site, line 94109
andrewharvey opened this issue · comments
I'll try to investigate but it looks like an issue with the source data, any one else run into the same issue?
root : INFO SQL FAILED! : COPY raw_gnaf_202002.address_site FROM '/tmp/work/gnaf/G-NAF/G-NAF FEBRUARY 2020/Standard/NSW_ADDRESS_SITE_psv.psv' DELIMITER '|' CSV HEADER; : invalid byte sequence for encoding "UTF8": 0xc9
CONTEXT: COPY address_site, line 94109
Yes, a manual edit is required on that line - it has an invalid character which I presume was meant to be an E with an accent on it.
The Admin Bdys also have issues with four shapefiles - where there are extra, invalid columns. Issue is with ANZLIC and the PSMA.
Yes I just noticed that second one too
root : WARNING Importing QLD_LOCALITY_POLYGON_shp.shp - Couldn't run Shapefile SQL
shp2pgsql result was: column "qld_locali" of relation "aus_locality_polygon" does not exist
LINE 4: ..." ("lc_ply_pid","dt_create","dt_retire","loc_pid","qld_local...
A quick edit to remove the offending fields does the job