Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations

From: jam paydavousi <jampaydavousi(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations
Date: 2022-05-25 21:55:51
Message-ID: 219475353.1702092.1653515751420@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Never mind I solved the problem. I had to replace 'INT' with 'BIGINT'  forgot 10 digit mobile numbers require 8 bytes.
I will go and close the ticket.  

Jam
On Wednesday, May 25, 2022, 02:20:33 PM PDT, jam paydavousi <jampaydavousi(at)yahoo(dot)com> wrote:

Thank you for following up Tom.  I did what you instructed- i.e., filing distinctly from pgAdmin link you provided.
However, I have the same issue when I attempt to import the csv file via the command line interface on mac terminal. It copies 0 rows

postgres-# \copy alove from '/Users/jam/alovel.csv' delimiter ',' csv header;

COPY 0
postgres-#
I am able to see the same databases that I see in pgAdmin by running ... psql \l ...from the command line.  So I am not sure what troubleshooting I need to do.  The csv file that I am trying to import is a small csv file with 80 rows of 10 digit mobile numbers.  And on the SQL side, I created a table with one column with the same header 'Mobile' with values of type INT.
Any suggestions on troubleshooting from command line interface side?
Thank you
Jam Paydavousi 
On Wednesday, May 25, 2022, 01:06:14 PM PDT, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Receive Failed: error code 1) when importing any csv file from pgAdmin with
> no explanations in the 'Details' section

It seems likely that that is a pgAdmin problem, not a problem in
core Postgres, in which case this is the wrong place to report it.
See https://www.pgadmin.org/support/issues/ instead.

If you can reproduce a similarly uninformative failure without
using pgAdmin -- say, by using COPY in psql -- then it'd be
appropriate for this list to look closer.

            regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2022-05-25 21:57:18 Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations
Previous Message Tom Lane 2022-05-25 20:06:09 Re: BUG #17498: Receive Failed: (error code 1) when importing any csv file from pgAdmin with no explanations