cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver Comm Channel in error

rasjoshi
Active Contributor
0 Kudos


Hi All,

I am getting below error in my receiver communication channel -

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to clone File Adapter receiver channel for parallel processing

This is just FiletoFile scenario. I am trying to use VARIABLE SUBSTITUTION here to give dynamic name to the file at receiver. I haven't use FCC here.

If I dont use VARIABLE SUBSTITUTION then scenario is working fine.

Thanks & Regards,

Rashmi Joshi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rashmi,

Did you check below thread

Regards,

Krupa

abhradeepbasu
Participant
0 Kudos

Hi,

Can you paste the screenshot of your configs (variable substitution part)

/A.B

rasjoshi
Active Contributor
0 Kudos

Hi Abhradeep Basu,

PFA screen shots -

Thanks & Regards,

Rashmi Joshi

iaki_vila
Active Contributor
0 Kudos

Hi Rashmi,

I think you cant use the asterisk to get the position under variable reference, you should use a concrete position to access to the value with the number 1 or 2 and so on. Check this link  Defining Variable Substitution for Target Directory/File Name - SAP Library

Regards.

abhradeepbasu
Participant
0 Kudos

Rashmi,

You need to provide the exact location of the field for which the value will be replaced in place of 'name' variable.

For example:

We have the below xml structure populated post mapping and we have to take 'NUMFIC' value from 'Pie' node and used as a variable substitution.

<?xml version="1.0" encoding="utf-8" ?>
<ns1:MT_Test xmlns:ns1="http://xxxxx/yyyyy/zzzz">
  <Detail>
  <NUMR>000001</NUMR>
  <NUMF>00066</NUMF>
  <CLI>100765</CLI>
  <PRO/>
  <FEC>20140215205725</FEC>
  <SIT>PE</SIT>
  <ORUT/>
  <ACC>A</ACC>
  </Detail>
  <Pie>
  <NUMREG>999999</NUMREG>
  <NUMFIC>00066</NUMFIC>
  </Pie>
</ns1:MT_Test>


The variable refernece value in the advanced section of your receiver adapter would be: payload:MT_Test,1,Pie,1,NUMFIC,1

Hope it helps.

You may have a look in the below blog also:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/04/16/variable-substitution-for-directo...

/A.B

rasjoshi
Active Contributor
0 Kudos

No use... I tried reference values like this "

namepayload:MT_File,1,Record,*,Vname,1

"

Still got same error.

Regards,

Rashmi Joshi

rasjoshi
Active Contributor
0 Kudos

Hi,

here is my mapping program.. It looks same -

abhradeepbasu
Participant
0 Kudos

Hi Rashmi,

Record,* doesn't interpret from which record the Vname should be taken. If you want to take the Vname populated from your first record node then you may use:

namepayload:MT_File,1,Record,1,Vname,1

/A.B

rasjoshi
Active Contributor
0 Kudos

Hi Abhradeep,

I am getting new error now -

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Vname

I have changed the reference value as -

Emp_IDpayload:MT_File,1,Record,1,Emp_ID,1

Thanks & regards,

Rashmi Joshi

abhradeepbasu
Participant
0 Kudos

Hi Rashmi,

Might be cache problem. Still it points to Vname. You may deactivate and activate your channel and execute it.

/A.B