What does "insufficient data left in message" mean and how to avoid it?

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jmuehlenhoff
Posts: 36
Joined: Fri 30 Apr 2010 11:25

What does "insufficient data left in message" mean and how to avoid it?

Post by jmuehlenhoff » Fri 21 Nov 2014 10:57

Hi,

under certain conditions one of our customers gets:

EPgError "insufficient data left in message"

Our code is using the TPgLoader component to copy data to Postgres.

What exactly does this message mean? Are there any limitations we need to be aware of?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: What does "insufficient data left in message" mean and how to avoid it?

Post by azyk » Fri 28 Nov 2014 09:54

The error "insufficient data left in message" can occur in cases when a value in incorrect format is passed to a table field on the server. For example, if you pass a value 'abccd' (string) for a field of the uuid data type. A script for creating such a table:

Code: Select all

CREATE TABLE tbl_customer_master_data (credit_controller_id uuid);

jmuehlenhoff
Posts: 36
Joined: Fri 30 Apr 2010 11:25

Re: What does "insufficient data left in message" mean and how to avoid it?

Post by jmuehlenhoff » Fri 28 Nov 2014 10:44

Thanks, we'll have a look at the data types and loader input. :)

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: What does "insufficient data left in message" mean and how to avoid it?

Post by azyk » Wed 03 Dec 2014 13:11

Feel free to contact us if you have any further questions.

Post Reply