on 05-31-2017 10:04 AM
HI,
I have a file to Proxy scenario. I am getting a file from third party in which there is a data for 5 different interfaces. Receiver is one(ECC). There are 5 different target structures. So I made 5 Target DT, 5 Target MT, 5 Target SI, 5 MM and 5 OM. I have made 1 Source DT, 1 Source MT, 1 Source SI. I have to send the data according to the first words like 53,54, 56, 60, 61 to different interface. but now I am getting this error.
Error: com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface
This is condition I have put in condition in ICO for receiver interface
Condition in ICo for Inbound processing since i am using MM and OM.
File content conversion.
File
I know that it is not able to identify the interface. Please suggest.
Hi Sherwin,
In sample file the values starts with field separator "+". As per your FCC the first value will be blank, Field(Company_Code) will have values (53,54...). You can do the following,
In your condition, use the field Company_Code instead of Record_Type.
or
Add a Null field before Record_Type in your structure.
Thanks,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can achieve this by using multi mapping. In the operation mapping use one sender interface and multiple receiver interfaces and in the message mapping use condition to determine which message has to be created.
Your existing logic might not work because in the same input message you have records of all types(53,54 etc.) and to split that to multiple messages you need to use multi mapping.
--Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, Correct!
HI Priyanka,
I did it. When I am testing in MM I am not able to generate the records for which I am putting the company code as 54, 56 or 60. it is generating only one record. I might be having wrong logic. I am giving my the screenshots below.
MM it is also showing the logic which I have put for one of the MT.
Signature tab in MM. I have made occurrences of source and target MT as (0,unbounded)
Test tab
Please suggest. I am looking into it.
It's creating only one because of the context changes. You need to adjust the context.
Use remove context after company code and see the result.
Hi Sherwin!
I'd suggest to change condition syntax to something like this:
/p1:MT_StarOrder_TP/RECORD[Record_Type = "53"] EX
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
I have just used the condition but still it is giving the same error. Since I need to put condition on Company_code, I have put the condition on it. is there any space issue ? I mean between Company_code=Space"53"] is there. I tried by removing it but still the same issue. Can you check my FCC, is it correct ? I am attaching New FCC
NEW FCC
Hi Sherwin!
From your test message given above I see additional tag "Recordset" that isn't mentioned in your condition.
If it exists, change condition to:
/p1:MT_StarOrder_TP/Recordset/RECORD[Record_Type = "53"] EX
Else use ignoreRecordsetName parameter in FCC.
Regards, Evgeniy.
And what is your source XML coming after all changes?
Hi Sherwin!
Channel picks the file but can't find interface for the condition.
Regards, Evgeniy.
Provide us the source XML after FCC transformation.
Regards, Evgeniy.
Try enabling Staging and logging in ICO at all steps and see if the file picks ?
Hi Sherwin,
May be i'm wrong but according with your file seem to have several record_type that should go to different receiver. Why don't set in Recordset per message the value 1, and you will as much messages as recordsets?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sherwin,
Can you see the messages generated in the monitoring according you XML structure?
Regards.
HI,
I just deleted all the conditions and was able to generate xml. One thing I noticed that I was putting the condition at wrong field. I corrected the field but still i am getting the same error. test-file.txt
I have attached the xml . please check and suggest.
Thanks,
Sherwin
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.