Page 1 of 1

ORA-00904 Invalid identifier

Posted: Tue Mar 06, 2007 1:25 pm
by CLOPES
Hi All,

I create a simple job with DS => TRT => OCI
I read a single column in the dataset (ID Bigint) then i add a column timestamp (UPDT_DATE CurrentTimestamp()) in the transformer.
I insert them into a table IVRS_DATA_LOG in load and append with parallel option and NLS WE8ISO8859P1.
There's just one line.

Then i have this message error :
SQL*Loader-925: Error while uldlpim: OCIStmtExecute
ORA-00904: "MESSAGE_NUM": Invalid identifier

I don't know where this column come from ?!!?? :shock:
My oracle table have four columns and i insert data into two of them.
This column doesn't exist. So anybody have an idea ??

Posted: Tue Mar 06, 2007 1:27 pm
by DSguru2B
What about your metadata? Do you have this column there? Do you have user defined sql?

Posted: Tue Mar 06, 2007 1:33 pm
by csrazdan
Add a environment variable APT_STRING_PADCHAR to your job and set the value to 0X00

Hope it helps....

Posted: Tue Mar 06, 2007 1:39 pm
by CLOPES
[quote="DSguru2B"]What about your metadata? Do you have this column there? Do you have user defined sql?[/quote]

this column don't exist in the target and i don't use user defined in this case.

Posted: Tue Mar 06, 2007 1:41 pm
by CLOPES
[quote="csrazdan"]Add a environment variable APT_STRING_PADCHAR to your job and set the value to 0X00

Hope it helps....[/quote]

i'l see it tomorow at work thanks.

Posted: Tue Mar 06, 2007 3:02 pm
by DSguru2B
Make sure you have the correct qualified name for the database table.

Re: ORA-00904 Invalid identifier

Posted: Mon Mar 12, 2007 1:29 pm
by CLOPES
FOUND.

OCI PX stage need to read/write an Oracle view using LOAD (SqlLoader) and it seems that in Oracle 9i or in the Database i want to insert data 9.2.0.1 version, there's just a column MESSAGE and not MESSAGE_NUM.
I changed to upsert and it works,

Thanks.