Bug report #15519

Import vector layer error

Added by baditaflorin - over 7 years ago. Updated over 6 years ago.

Category:DB Manager
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:23443


While trying to load a file from DB Manager, i got this error :

Error 7
Feature write errors:
Creation error for features from #0 to #0. Provider errors was:
PostGIS error while adding features: ERROR: Geometry type (MultiPolygon) does not match column type (Polygon)

Only 0 of 3 features written.


#1 Updated by R. R. about 7 years ago

See also: #15487

#2 Updated by Giovanni Manghi over 6 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to invalid
  • Description updated (diff)
  • Status changed from Open to Closed
  • Category set to DB Manager

That is a message from postgresql: you are trying to add a multipart geometry to a table that is not multipart.

Also available in: Atom PDF