Topic: Importing error into warehouse1
Hi
I'm importing a lot of existing records from our Recorder 6 database into the BRC warehouse1. I have been successful with the majority of records - even ones with vague dates and date ranges that I wasn't sure would work.
However, I'm having a problem with two sets of vague dates in mmm-yy format:
Feb-97 (and all other years) I get the following error: There was an SQL error: ERROR: date/time field value out of range: "1997-02-29"
LINE 1: ...sref", "date_start", "date_type", "geom") VALUES ('1997-02-2...
^ - INSERT INTO "samples" ("date_end", "location_name", "survey_id", "recorder_names", "created_on", "created_by_id", "updated_on", "updated_by_id", "entered_sref_system", "entered_sref", "date_start", "date_type", "geom") VALUES ('1997-02-29', 'Pubble Forest', 53, NULL, '20121102 15:16:18', 1, '20121102 15:16:18', 1, 'osie', 'H3346', '1997-02-01', 'O', '010300002031BF0D000100000005000000F45C1E0CA47429C1A00FA051479D5B416C8028668B7429C1112EAA6CF49E5B41CBA794052A6729C1A724E949F19E5B41BBC3DC6A436729C1518D4F2F449D5B41F45C1E0CA47429C1A00FA051479D5B41')
Oct-92 (and all other years) I get the following error: Please supply a date for your observation.
The weirdest thing is that the system accepted all other months in this format. I just can't figure out what is going wrong.
Any ideas?
Many thanks,
Fiona
CEDaR Website Officer
www.nmni.com/cedar