Cannot load WFS via QGIS into PostGIS

postgispostgresqlqgis

I try to load this WFS https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_lor_plr_2021 into PostGIS using QGIS.
However, I always get the following error

Error: 6
Object writing error:
Object create error: from #-9223372036854775808 to #-9223372036854775808. FError was: PostGIS-Error on adding attributes: FEHLER: Geometry type (MultiPolygon) does not match column type (Polygon)

Only 0 from 542 Objects written

Screenshot import dialog

Whats going wrong?

Best Answer

Apparently there are mixed geometries in the Input Dataset. PostGIS does not like that (see Comments on my Questions)

They way I solved it now: Since I opened the data in QGIS anyway, and it complained bout mixed geometry types I converted all the geometries to single geometries.

Processing Tools -> Vector -> Multi- to Single Geometries.

Since I know the data this is fine!

Related Question