cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Variable Substitution

Former Member
0 Kudos

Hi,

We have a scenario where we need to use the data from Payload for further processcing of the messeges.The payload looks like the one given below.

<?xml version="1.0" encoding="utf-8" ?>

- <ns1:MT_NOTIFICATION xmlns:ns1="http://WM_ERRHAND" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

- <PROXYRESPONSE>

<STATUS>YES</STATUS>

<NAMESPACE>WM_INVOICE</NAMESPACE>

<INTERFACENAME>MI_INVOICE_MOORE_ACK_IN</INTERFACENAME>

<PROXYNAME>ZXIII_MI_INVOICE_MOORE_ACK_IN</PROXYNAME>

</PROXYRESPONSE>

</ns1:MT_NOTIFICATION>

In adapter, for variable substitution we have specified as below:

payload:MT_NOTIFICATION,1,PROXYRESPONSE,1,NAMESPACE,1

but getting an error "Message processing failed: Error during variable substitution: java.text.ParseException: Variable 'namespace' not found in variable substitution table"

Is the variable that we have declared is right or is there anything we have missed out. Any helpful answers will be rewarded

Thanks and regards,

Ram.

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Ram,

The substitution looks fine.

Did you read this,

<i>To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.

Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.</i>

Try seleting this option and checking the same.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Disabling the Security Checks for the adapter did solve the issue. Thanks a bunch. That was very precise and helpful :-).

regards,

Ram.

bhavesh_kantilal
Active Contributor
0 Kudos

Ram,

Nice to know that I had not tried it actually, nice to know that this option does work.

Regards,

Bhavesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You must have given a variable name and then the path in the next column.

Filename MT_NOTIFICATION,1,PROXYRESPONSE,1,NAMESPACE,1

Are you using the same name in the file name as

%filename%

Regards

Vijaya