Hi Rajesh, I do not see the PL/SQL block but my first guess is that your issue is related to the date format. Oracle seems to try to convert a ‘NOV’ to an ‘11’ or something. My next step would be to understand the date formatting and if needed, convert explicitly to VARCHAR2 and then to date.
Regards, Roel
Hi Roel,
Thanks for the response. Here is PLSQL block. I have tried formatting the date in different ways with no success. I could make it make it working in PLSQL developer. but it does not work on the client in custom menu.
IFSAPP.
Equipment_Object_Meas_API.Mark_Rec_Reading_Incorrect('&VALUES_SEQ','&CONTRACT','&MCH_CODE','&TEST_POINT_ID','&PARAMETER_CODE', 'Wrong running hour entry','®_DATE','&TEST_PNT_SEQ');
commit;
EXCEPTION
WHEN Error_SYS.Err_Security_Checkpoint THEN
raise;
WHEN OTHERS THEN
rollback;
raise;
END;
Regards,
Rajesh A
Hi Rajesh, my date formats are a bit different than yours, but I suspect that putting in this:
to_date('®_DATE','DD/MM/YYYY HH:MI:SS AM','NLS_CALENDAR=GREGORIAN')
instead of passing on the date value into the method directly should resolve your error. try to get it to work in PL SQL putting in String instead of Date as a test value for a valid test in PL SQL.
Good luck,
Roel