<div dir="ltr"><p style="margin:0px;white-space:pre-wrap">Hi! </p><p style="margin:0px;white-space:pre-wrap">This regards QGIS version 3.26.0-Buenos Aires.</p><p style="margin:0px;white-space:pre-wrap">Attempting to import a gpkg poly layer to PostGIS I get this unexpected error.</p><p style="margin:0px;white-space:pre-wrap"><i>Error 6</i></p>
<p style="margin:0px;white-space:pre-wrap"><i>Feature write errors:</i></p>
<p style="margin:0px;white-space:pre-wrap"><i>Creation error for features from #-9223372036854775808 to #-9223372036854775808. Provider errors was: </i></p>
<p style="margin:0px;white-space:pre-wrap"><i>PostGIS error while adding features: ERROR:  Geometry type (MultiPolygon) does not match column type (Polygon)</i></p>
<p style="margin:0px;white-space:pre-wrap"><i>Only 0 of 179 features written.<br></i></p><p style="margin:0px;white-space:pre-wrap"><i><br></i></p><p style="margin:0px;white-space:pre-wrap">There is no option to set geometry type in the import settings, and a MultiPolygon table should anyway be able to accept single polygons. </p><p style="margin:0px;white-space:pre-wrap">A corresponding gpkg point table from the same source can be imported without problem. </p><p style="margin:0px;white-space:pre-wrap">I normally use FME to load PostGIS data, else I would probably have come across this sooner.</p><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4zZOnGEv-2kS9yJ4SFPKcrBg2xrtaASeGtsOWQ8PFU2R-I5XDcC8JIQkB5A6Q4xLk_LiNENK6g"><br></b></p><p><b>GisKraft</b>, Geodatakonsult</p><p>Mats Elfström,
Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden<br>tel: +46 70 595 39 35
/ <a href="http://www.giskraft.se" target="_blank">www.giskraft.se</a></p></div></div></div></div></div></div></div></span></div></div></div></div></div>