on 06-10-2008 9:06 AM
I am receiving an error in XI thrown in my Java UDF. The error is as follows:
com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload.Problem when calling an adapter by using communication channel Portal_DB_Receiver (Party: , Service: SUPPCONN_DATABASE_D, Object ID: 83faea76ab6738869ee4f0bde6aa28c5) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): java.sql.SQLException: ORA-01009: missing mandatory parameter '. com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel Portal_DB_Receiver (Party: , Service: SUPPCONN_DATABASE_D, Object ID: 83faea76ab6738869ee4f0bde6aa28c5) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): java.sql.SQLException: ORA-01009: missing mandatory parameter '.
The UDF is reponsible for querying/posting/deleting data from and to the database I am connecting to. There are about an average of 25 SQL statements being run however, on the last statement, this error shows up. Would the appearance of the & character have something to do with this (since the JDBC adapter converts the SQL statement to XML format)?
Here is the sample of the generated SQL statement that fails: INSERT INTO VENDOR_DELIVERY_SCH_HEADER(CONTRACT_NUMBER,PODATE,VENDOR_SAP_CODE_ID,VENDOR_NAME,VENDOR_STREET,CITY,PO_BOX,POSTAL_CODE,COUNTRY_KEY,COUNTRY_ISO,PGPLANT,PGPLANTNO) VALUES ('N6A-5500003691','20080414','0010001155','INTERNATIONAL FLAVORS & F','600 STATE HWY 36','HAZLET',null,'07730','US','US','AVENEL PLANT','1728').
Thanks.
Hi Rommel,
Can you paste the xml structure as coming in the Moni payload after mapping?
Regards,
Shamly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shamly,
Yep, already did that. I use DBVisualizer and it posts the data using the SQL statement I posted here.
Best Regards,
Rommel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
INSERT INTO VENDOR_DELIVERY_SCH_HEADER(CONTRACT_NUMBER,PODATE,VENDOR_SAP_CODE_ID,VENDOR_NAME,VENDOR_STREET,CITY,PO_BOX,POSTAL_CODE,COUNTRY_KEY,COUNTRY_ISO,PGPLANT,PGPLANTNO) VALUES ('N6A-5500003691','20080414','0010001155','INTERNATIONAL FLAVORS','600 STATE HWY 36','HAZLET',null,'07730','US','US','AVENEL PLANT','1728')
please remove & or
use \& in 'INTERNATIONAL FLAVORS & F'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rommel,
Did you copy this SQL statement from the message display tool?
Can you run this statement directly through some oracle tool and see whether it is inserting?
Regards,
Shamly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shamly,
All of the database fields are VARCHAR.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rommel,
Is the PODATE field defined as a varchar2 in the DB table or is it a date field?
Regards,
Shamly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.