Hi, I have a Postgres table with a serial column (autoincrement) and want to append new data to it using the DI Studio table loader. In the Table Loader I leave the column mapping empty for the serial column (__screening_id) hoping that it will not be loaded so that Postgres can fill it in itself: But that is not what is happening. It generates a mapping for __screening_id as follows: %put %str(NOTE: Mapping columns ...);
proc sql;
create view work.W5CY70T as
select
. as "__screening_id"n length = 8,
"__screen_id"n,
"__screening_job_run_id"n,
"__screening_object"n,
"__screening_dts"n,
"__screening_result"n,
"__screening_msg"n,
"" as "__update_user"n length = 32
format = $32.
informat = $32.,
. as "__update_dts"n length = 8
format = DATETIME25.6
informat = DATETIME25.6
from &etls_lastTable
;
quit; and then a proc append. This returns the following Postgres error: ERROR: During insert: ERROR: null value in column "__screening_id" violates not-null constraint Failing row contains (null, 5, null, WIKSTO.TAG_MEASURES_NUM_PI, 2016-11-04 17:18:00, PASSED, 0 rows passed, 0 rows failed, 0 screens passed, 0 screens failed, null, null).; Error while executing the query How can I make this work? Bart
... View more