on 09-29-2015 12:23 PM
We have the below message structure,
MarketTraceInformation_Enhanced
HeaderMarketTrace
FileName
VendorID
IntermediateMarketTrace
Shipto_Cust_Num
Shipto_Cust_Name
We are doing variable substitution for 'FileName' variable, so maintain the below configuration in the receiver channel,
filename payload:MarketingTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1
Even, this while running that channel, we are getting the below error,
Message processing failed. Cause: 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: filename
Could you please suggest on the same.
Regards,
Praloy
Hi Experts,
Thanks for your inputs.
Actually we have interface scenario, 1. ChargeBack & 2. MarketTrace and in both the case, we have used this variable substitution by using the same field.
Moreover, in both the case, we received same length of value. But unfortunately, for Chargeback it is working fine but only getting issue in this Market Trace interface scenario.
Kindly suggest, what would be difference between in these two scenario.
Regards,
Praloy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praloy,
You can check at the DT defined for both the scenarios and see if there is any difference.
Otherwise to come to know the root cause, as suggested by Bhargava, just maintain a shorter name in the file name field and trigger a sample data and check the outcome end to end.
In this way, we can come to know atleast whether interface is working or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Interesting contribution Bhargava, that length name could be problematic in some OS. I think, Praloy, you should try with a short and easy file name, with "normal" characters. Also pay attention if you don't use a message mapping that the target payload can be validated with your target xsd.
Regards.
Hi Vinay & Raghuraman,
I maintained the same in the Channel and tried but it didn't worked.
Regards,
Praloy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do a cache refresh if not done yet
also make sure to take extreme care in synchronising the capitals and small letters
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghuraman, Inaki & Vinay,
I tried with your suggestion but still I am getting the same error,
Message processing failed. Cause: 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: filename
Regards,
Praloy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praloy,
The variable substitution path is looking good(payload:MarketingTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1)
Can you check if there is any cache issue.
Also, in the filename level, did you mention %var1% and after enabling the variable substituion did you maintain the varibale name correctly(var1 = payload:MarketingTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1)
Pls share the screenshots of the filename pattern and variable substitution maintained in the channel.
Hi Praloy,
plz verify the File name scheme which you specified in the communication channel.
For ex: Generate the file name which should include the Filename value coming in the data.
for Purchase order
Variable name: filename
Reference: payload:MarketTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1
my File name Schema : PO%filename%.xml
we should mention the variable name in file name scheme which we defined in the advanced tab.
Regards
Bhargava Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Praloy,
Too add more,
The name you give in the variable name in the variable subsitution and variable name in the filename scheme should be idenitcal(case-sensitive as well).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praloy,
Check the payload in the monitoring, pay attention that the XML path is case sensitive in the variable names.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
spelling mistake
payload:MarketTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1
also
it should actually be
payload:MarketTraceInformation_Enhanced,1,FileName,1
No Need to mention Header as both filename and Header are at same level
For example, to reference the element that is in bold in the XML structure below, the following expression is used: payload:root,1,e1,1,e2,2
The parser searches for the first occurrence of the root element at the first level.
It then searches for the first occurrence of e1 at the second level and for the second occurrence ofe2at the third level.
The content of the last element (“Example Value”) is set as the value for a specified variable.
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<dummy>
<e1>
<e2>Data_1</e2>
<f/>
<g attr="abc">text</g>
<e2>Data_2</e2>
</e1>
</dummy>
<e1>
<e2>illegal/value</e2>
<f/>
<g attr="abc">text</g>
<e2 attr="fghij">Example Value</e2>
</e1>
</root>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praloy,
Seems typo error, you are using incorrect value in Parameter..can you try with this & check
filename payload:MarketTraceInformation_Enhanced,1,HeaderMarketTrace,1,FileName,1
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you check the message after mapping and also check the Case for file name is it a FileName or filename or somthing else..
Regards
GB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.