Skip to content

Unable to insert data into Postgres db via SSIS #2656

Closed as not planned
Closed as not planned

Description

@juliangordon

Hi,

I am unable to insert data into a Postgres db using SSIS.

Error:
column "p1" does not exist

Steps to reproduce:

  1. Create table on target postgres db:
    CREATE TABLE public.test (
    "id" INT NOT NULL
    );

  2. Create dataflow task in SSIS to insert a row into above table. Source data is from another Postgres database. Can be any table containing integer values.

  3. Map dataflow from source to above destination table and execute SSIS package.

  4. Failure occurs on insert. Seems to be the way in which the npgsql connector generates the insert sql command for data to be inserted into the target database.

Regards,

Julian

Further technical details

Npgsql version: 4.0.10
PostgreSQL version: Aurora PostgresSQL
Operating system: Windows Server 2012

ETL Tool to move data:
SSIS

Activity

  1. juliangordon commented on Sep 30, 2019

    @juliangordon
    Author

    ado destination mapping

  2. juliangordon commented on Sep 30, 2019

    @juliangordon
    Author

    failure on insert

  3. austindrenski commented on Sep 30, 2019

    @austindrenski
    Contributor

    @juliangordon Are there any logs showing the actual queries being sent?

  4. juliangordon commented on Sep 30, 2019

    @juliangordon
    Author

    @austindrenski - Below is what the query looks like, when checking activity on the postgres db:

    INSERT INTO public.test ("id") VALUES (p1)

  5. juliangordon commented on Oct 1, 2019

    @juliangordon
    Author

    @austindrenski - I see that issue #2660 has been closed. Does this fix resolve the issue I am experiencing?

  6. austindrenski commented on Oct 1, 2019

    @austindrenski
    Contributor

    @juliangordon Yes, that most likely fixes this too. Could you test the preview package for our next patch and report back?

  7. juliangordon commented on Oct 1, 2019

    @juliangordon
    Author

    @austindrenski - Could you provide me with an msi of your latest preview please?

  8. roji commented on Oct 14, 2019

    @roji
    Member

    Just a thought: in the SQL above it seems like the parameter placeholder (@) is missing. ADO.NET drivers do expose some information on how to construct placeholders, we may have some sort of issue there.

  9. added this to the Backlog milestone on May 13, 2020
  10. added a commit that references this issue on Mar 29, 2024
    2d941f6
  11. NinoFloris commented on Mar 29, 2024

    @NinoFloris
    Member

    @juliangordon it's been a long time ago but did you end up being successful in inserting data after updating npgsql?

  12. NinoFloris commented on Jun 27, 2024

    @NinoFloris
    Member

    Going to close this, we haven't had any other issues opened around this and we can't make a reproduction. There's probably a bug somewhere (could be in SSIS as well) but without more information we won't be able to fix it.

  13. added theissue type on Jun 18, 2025
  14. removed this from the Backlog milestone on Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions