calling a package: Invalid Number error [message #468679] |
Sun, 01 August 2010 06:18  |
avrillavinge
Messages: 98 Registered: July 2007
|
Member |
|
|
i am trying to pass below date value but i get below error
ORA 01722 inavlid number
Database driver error...
CMN_1022 [CALL EDWH.IIC_PACKAGE.POST_IIC_CON(TO_DATE('07/31/2010', 'MM/DD/YYYY'))
ORA-01722: invalid number
[EDITED by LF: fixed topic title typo; the original was "apckage"]
[Updated on: Mon, 02 August 2010 04:12] by Moderator Report message to a moderator
|
|
|
|
Re: calling a PACKAGE Invalid Number error [message #468683 is a reply to message #468679] |
Sun, 01 August 2010 06:59   |
avrillavinge
Messages: 98 Registered: July 2007
|
Member |
|
|
THIS IS THE ERROR MESSAGE FROM THE LOG FILE
AM USING A CLIENT TOOL FOR EXTRACING DATA AND IT IS GIVING ME THE ERROR FOR ORACLE.
any ideas on this.
i checked the oracle error codes and it says
An ORA-01722 error occurs when an attempt is made to convert a character string into a number, and the string cannot be converted into a valid number. Valid numbers contain the digits '0' thru '9', with possibly one decimal point, a sign (+ or -) at the beginning or end of the string, or an 'E' or 'e' (if it is a floating point number in scientific notation). All other characters are forbidden.
[Updated on: Sun, 01 August 2010 08:42] Report message to a moderator
|
|
|
|
|
|
|
Re: calling a apckage Invalid Number error [message #468697 is a reply to message #468688] |
Sun, 01 August 2010 12:12   |
 |
Michel Cadot
Messages: 68758 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
avrillavinge wrote on Sun, 01 August 2010 16:50My Apologies for the mistakes .
i will take care of them in future
As you say the same thing after 86 posts, I doubt you will do it but anyway I will help as soons as I'll se that.
In the meantime:
Quote:Use SQL*PLus and call the same package and copy and paste your session as well as your package code with the line numbers.
Regards
Michel
[Updated on: Sun, 01 August 2010 12:12] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: calling a apckage Invalid Number error [message #468776 is a reply to message #468774] |
Mon, 02 August 2010 03:37   |
 |
rahulvb
Messages: 924 Registered: October 2009 Location: Somewhere Near Equator.
|
Senior Member |
|
|
With limited details
Your Main ASSIGN_LEAF Signature.
PROCEDURE ASSIGN_LEAF(P_SYS_ID_NUM NUMBER,
P_NEW_PARENT NUMBER,
P_LEAF_NODE NUMBER,
P_EXCEPTION NUMBER);
At line 1452 you have
ASSIGN_LEAF(HIER_REC.SYS_ID_NUM,
NODE_REC.ROLLUP_NODE,
LEAF_REC.LEAF_NODE,
0);
So Just try Following
ASSIGN_LEAF( TO_NUMBER(HIER_REC.SYS_ID_NUM),
TO_NUMBER(NODE_REC.ROLLUP_NODE),
TO_NUMBER(LEAF_REC.LEAF_NODE),
0);
This is just A TRY. and you might want to print all the values before passing ASSIGN_LEAF.
[Updated on: Mon, 02 August 2010 03:42] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|