Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

JDBC Receiver CC - sqlBindMode with Oracle sequence

$
0
0

Hello experts,

 

I have receiver JDBC CC with XML SQL notation.

 

I have usual requirement - store whole XML payload in DB table.

 

Problem is, that many of that payloads are bigger than 4000 chars (maximum for oracle statement) so I used sqlBindMode in Advanced Mode of CC.

 

But after that change new error came out -

 

java.sql.SQLSyntaxErrorException: ORA-01722: invalid number

 

Primary key of table AUDIT (table where I store XML payload) are column ID (number(19,0)) - which have to be filled by an Oracle sequence S_AUDIT.

 

I usually put there S_AUDIT.nextval string which fills the right value in DB processing.

 

But it cannot be done with combination of that sqlBindMode, because that error ORA-01722 appears. It seems to perceive that string (S_AUDIT.nextval) as plain string not the value of sequence.

 

How can I handle that?


Viewing all articles
Browse latest Browse all 6719

Trending Articles