Hi Everyone!
I’ve created a JDBC adapter service with the following custom SQL insert statement and is getting this error (“ORA-01008: not all variables bound”). This statement works fine when i tested in Toad (replacing ? with values). Any help would be greatly appreciate it.
INSERT INTO TEST_TABLE (
TEST_ID, PARTNER_ID, PARTY_ID,
ADDRESS1, ADDRESS2, ADDRESS3,
CITY, REGION, ZIP_CODE, COUNTRY, RECEIVE_DT )
VALUES ( ?, ?, ?,
DECODE(GREATEST(LENGTH(?),50),50,?,SUBSTR(?,1,50)),
DECODE(GREATEST(LENGTH(?),50),50,?,SUBSTR(?,1,50)),
DECODE(GREATEST(LENGTH(?),50),50,?,SUBSTR(?,1,50)),
?, ?, ?, ?, SYSDATE )