I am trying to query a table in a sequence and I'm using DTREEANCESTORS, but the number (which exists in the table) is being rejected in the query as being a:
ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause: The specified number was invalid.
*Action: Specify a valid number.
If I shorten the value by one digit, it executes (and returns nothing from the invalid value). The column ANCESTORID is described as:
ANCESTORID NUMBER(10,0). I don't know if this is a problem within SQL Developer or what. The query, if placed in a LiveReport fails also with the same Oracle code. What function do I use to get it accepted? I tried TO_NUMBER on both the column and the value. I tried TO_CHAR to render them into a different type. No workenzee. The value is a full 10 digits long. It's a DataID to a Project. It's in there twice, once as a positive value and the other as a negative value. Using either fails.
Colin Schmidt