Skip to Content
0

Error in file to Proxy Interface while FCC

May 31, 2017 at 09:04 AM

285

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Iñaki Vila May 31, 2017 at 12:29 PM
0

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.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Inaki,

I changed the value of Recordset per message to 1. but it is still showing the same error. Can you help me by looking at the file about

RECORD.fieldSeparator

it should be + or something else ? Also I have unchecked multiline option in XPATH.

0

Hi Sherwin,

Can you see the messages generated in the monitoring according you XML structure?

Regards.

1

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

test-file.txt (5.2 kB)
0

Can you check if NEW FCC is fine ?

new-fcc.png (15.7 kB)
0
Evgeniy Kolmakov May 31, 2017 at 01:44 PM
0

Hi Sherwin!

I'd suggest to change condition syntax to something like this:

/p1:MT_StarOrder_TP/RECORD[Record_Type = "53"] EX

Regards, Evgeniy.

Show 11 Share
10 |10000 characters needed characters left characters exceeded

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

ex.png (21.7 kB)
editor.png (34.5 kB)
new-fcc.png (15.7 kB)
0

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.

1

Hi Evgeniy,

I have updated the FCC but still getting error. do i need to change anything in Advance tab or do i need to use any module config as well?

Advanced Tab

Module TAB

fcc-updated.png (15.9 kB)
advance.png (14.4 kB)
module.png (11.1 kB)
0

And what is your source XML coming after all changes?

1

HI,

Channel is not able to pick the file. it is giving the error

Error: com.sap.aii.adapter.xi.routing.RoutingException: InterfaceDetermination did not yield any actual interface

0

Hi Sherwin!

Channel picks the file but can't find interface for the condition.

Regards, Evgeniy.

1

Hi Evgeniy,

Yes true. So what should be my next approach?

Thanks ,

Sherwin

0

Provide us the source XML after FCC transformation.

Regards, Evgeniy.

1

For that I need to delete the condition. Or else is there any way I can get the source message ?

0

Try enabling Staging and logging in ICO at all steps and see if the file picks ?

1

Hi Manoj,

I will read about it. thanks for the support. is there any other alternative ? I need to complete this interface asap.

Thanks,

Sherwin

0
Lokesh Kumar Jun 01, 2017 at 07:24 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Lokesh,

yes, I will be doing it.

Thanks for the support.

Sherwin

0
Priyanka Anagani Jun 01, 2017 at 07:17 AM
0

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

Show 10 Share
10 |10000 characters needed characters left characters exceeded

Hi Priyanka,

So you mean that I have to create 5 MM and 1 OM , right ?

Thanks,

Sherwin

0

Yes, Correct!

1

Hi Priyanka,

I am getting below error when i made one OM by using 5 MM. I did no change in MM.

New OM

error-in-om.png (37.5 kB)
new-om.png (41.8 kB)
0

In the OM, you need to enter 5 Inbound service interfaces and in MM in the signature tab enter 5 message types of 5 inbound service interfaces.

Then perform mapping to split one source message into 5 target messages based on RecordType/CompCode.

0

Hi Priyanka,

I just to be clear when you say 5 Inbound SI you meant Target SI ? and, I have to make 5 MM and 1 OM right ?

Thanks,

Sherwin

0

Yes, Target SI.

And in MM-->1 Source Message Type and 5 target message types. Not 5 MM.

0

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.

mm-2.png (45.4 kB)
new-mm.png (22.9 kB)
mm3.png (35.7 kB)
0

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.

1

Hi Priyanka,

Yes it worked. But now I am also getting empty message node as well. I dont want it. what should be the logic for the same ?

last-test.png (20.7 kB)
0

Hi Sherwin,

Empty Nodes Message 1 and 5 will be removed automatically during RunTime. It will not create any empty messages.

Thanks-Lokesh

0