ORA-01861: literal does not match format string [message #232077] |
Thu, 19 April 2007 05:09 |
BillyJim
Messages: 3 Registered: April 2007 Location: Oslo
|
Junior Member |
|
|
Hello!
I am really sorry to bother you with this but I am still unsure how to correct this error.
ORA-01861: literal does not match format string
ORA-06512: at "SCHEMA.TRIGGERNAME", line 87
ORA-04088: error during execution of trigger 'SCHEMA.TR_TIGGERNAME'
ORA-02063: preceding 3 lines from DBLINK$USER
What is freaks out on is:
,TO_CHAR(TO_DATE(:NEW.PORTING_DATE,'DD.MM.RRRR')), 'Porting_Date');
The PORTING_DATE is a DATE column.
Any obvious error in the TO_CHAR(TO_DATE conversion??
Thanks alot.
Kind regards,
Andreas
|
|
|
|
Re: ORA-01861: literal does not match format string [message #232082 is a reply to message #232080] |
Thu, 19 April 2007 05:27 |
BillyJim
Messages: 3 Registered: April 2007 Location: Oslo
|
Junior Member |
|
|
Ok.
Sorry Maaher.
Was abit rushed in my first post here..Appologize for not formatting code and not explaining good enough.
PORTING_DATE is where it reads the value.
It is trying to insert it into a VARCHAR2 column.
INSERT INTO letteruser.customer_letter_values
(customer_letter_value_id
, letter_value_id
, customer_letter_id
, VALUE
, NAME
)
VALUES (letteruser.customer_letter_values_pk_seq.NEXTVAL
, 4
, letteruser.customer_letter_pk_seq.CURRVAL
, TO_CHAR (TO_DATE (:NEW.porting_date, 'DD.MM.RRRR'))
, 'Porting_Date'
);
[Updated on: Thu, 19 April 2007 05:53] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|