I am trying to import data from Spatialite into PostGIS through drag and drop in DB Manager but all I received was an error:

Feature write errors:
Creation error for features from #1 to #202. Provider errors was:
PostGIS error while adding features: ERROR: invalid input syntax for integer: ""

enter image description here

Is there any way to fix this?

  • 2
    You can answer you own questions and even accept your own answers. Please post an answer or close your question so it does not appear as "unanswered" anymore.
    – underdark
    Mar 1, 2013 at 10:33

1 Answer 1


It was my stupidity: after inspections, I found my Spatialite Integer columns contain "" - fixed it by turning them all to null and import again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.