on 03-23-2009 11:00 AM
Hi Guys,
//write your code here
String Query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
// Build the Query String
Query = "Select BASE_ID from SAP_BASE where BASE_ID = '" + "BASE_ID[0]";
try{
//Determine a channel, as created in the Configuration
channel = LookupService.getChannel("BS","CC_BASE");
//Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
accessor = LookupService.getDataBaseAccessor(channel);
//Execute Query and get the values in resultset
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("BASE_ID"));
}
}
catch(Exception ex){
result.addValue(ex.getMessage())
}
finally{
try{
if (accessor!=null) accessor.close();
}
catch(Exception e){
result.addValue(e.getMessage())
}
}
I get below error
Problem when calling an adapter by using communication channel CC_BASE(Party: , Service: BS, Object ID: 3a9ec0b92330329980a80ca13202779a) XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error: invalid receiver channel '3a9ec0b92330329980a80ca13202779a''
CC_BASE -- Receiver JDBC Adapter (BS - Business System)
Any view on above
Rgds
srini
hi
views
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Any ibouts
rgd
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have an active version of Business System (BS) and Channel (CC_BASE) in ID?
If not create them and activate.
Else you already have them do a cache refresh.(SXI_CACHE and CPA Cache)
Edited by: Praveen Gujjeti on Mar 23, 2009 4:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
channel = LookupService.getChannel("BS","CC_BASE");
check
1. Is the business systems name BS?
2. Does CC_BASE exist in ID under the Business system BS?
Note that you should use a valid Business system and a valid receiver JDBC adapter under that business system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.