Hi, I have a postgresql database I am writing to it has the following fields:
changedetect_date timestamp without time zone NOT NULL DEFAULT now(),
changedetect_uuid character varying(36) COLLATE pg_catalog."default" NOT NULL DEFAULT uuid_generate_v4(),
pk_index integer NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
All these fields do not need to be inserted into by FME but FME is trying to insert NULL's into them even through the fields are not explicitly set in my feature writer (set to automatic and does not have these fields).
When it inserts postgres gives an error
'ERROR: null value in column "pk_index" violates not-null constraint DETAIL: Failing row contains (...'
POSTGIS writer: A fatal error has occurred. Check the logfile above for details
Successfully closed POSTGIS database writer
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
What can I do to get around this? I tried using manual instead of automatic fields but FME still tries to populate the pk_index field with NULL.
Many Thanks for your help as always!