on 2014 Feb 12 12:24 PM
Hi All,
I am working on a SOAP->JDBC synchronous scenario in PI 7.31 single stack.
I am getting an error while running the scenario saying "com.sap.aii.utilxi.misc.api.BaseRuntimeException; The content of elements must consist of well-formed character data or markup.". This error is encountered in response mapping.
I am running SQL_QUERY as access in mapping for the JDBC adapter and fetching a count. Query is like 'Select count(field) from table where (condition)'
Based on that, I have only one field in response structure 'COUNT'.
Since I'm getting error in response mapping, my guess is that the response structure is not correct. I was unable to find any thread which tells about the response structure in case of SQL_QUERY.
Please help me in identifying the issue that is causing the failure. Any guidance for JDBC response structures will be highly appreciated.
Thanks,
Abhishek
HI Ranjam
Check this link for SQL_QUERY response Defining an SQL_QUERY Statement - Advanced Adapter Engine - SAP Library
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Inaki,
Thanks again for replying. The link you provided has a scenario where a select is done on table fields and in response structure, the same fields are created.
My case is a bit different here. I'm not doing a select on field rather I'm doing a 'count'. I followed the approach similar to select fields and thus created 'COUNT' as the only field in my response structure as mentioned in the top of the thread.
Can we execute statements like select count(field) from table where (condition)?
Thanks,
Abhishek
Hi Inaki,
Thanks again. That is the same way I'd structured my JDBC response. Still, my error persists.
Below is the message log from message monitor:
MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_*****_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; The content of elements must consist of well-formed character data or markup.
Any idea what can be the root cause of this error?
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.