cleggfr
01-23-2003, 09:06 AM
I've got a problem thats driving me nuts. I've got a procedure thats failing with the following error:
declare
*
ERROR at line 1:
ORA-01861: literal does not match format string
ORA-06512: at line 83
Line no 83 of my code is the end of the following cursor:
for r_mpan in c_mpan loop
concat_mpan := r_mpan.mpan_rec||r_mpan.mpan_ref1||r_mpan.mpan_ref2||r_mpan.mpan_ref3;
Insert into esales.mpan (mpan_id)
values (concat_mpan); <<<<----------- LINE 83
My question is - is it this loop thats causing the problem or is the error caused by the next loop? I'm 99.99% sure this loop is OK - the concat_mpan variable is a VARCHAR2(13) and all the rows returned by the cursor are 13 characters long.
Any help would be appreciated as I'm about to tear my hair out!!!
declare
*
ERROR at line 1:
ORA-01861: literal does not match format string
ORA-06512: at line 83
Line no 83 of my code is the end of the following cursor:
for r_mpan in c_mpan loop
concat_mpan := r_mpan.mpan_rec||r_mpan.mpan_ref1||r_mpan.mpan_ref2||r_mpan.mpan_ref3;
Insert into esales.mpan (mpan_id)
values (concat_mpan); <<<<----------- LINE 83
My question is - is it this loop thats causing the problem or is the error caused by the next loop? I'm 99.99% sure this loop is OK - the concat_mpan variable is a VARCHAR2(13) and all the rows returned by the cursor are 13 characters long.
Any help would be appreciated as I'm about to tear my hair out!!!