cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Filename

Former Member
0 Kudos

Hi

i am using the variable substitution method in file adapter for dynamic filenam.e But the adapter is throwing error saying

"Message processing failed: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1"

am using the variable %var1%.dat in the filename.

Any idea why happens. Am in SP14.

And if use Adpter specific message properties, it is saying FileName missing. Even if i give this as variable it is not taking.

Regards

Andy

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Anandan,

Where do you want the file adapter to take the name from..have you specified the correct reference-payload data?

Although this might sound silly, do check if the name that you want to take from payload is present in the payload:)

The following blog by Jayakrishnan Nair discusses the same, do have a look at it:-

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Regards,

Sushumna

bhavesh_kantilal
Active Contributor
0 Kudos

hi,

Just check this link out,

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

And read the contents under variable substitution and it will help you understand the concepts better.

As for your Adapter Specific Identifiers not being able to identify the file name, make sure that you have also enabled the file name in the Sender File adapter in the Adapter Specific Parameters.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Andy,

I think you have to reimport the SAP-BASIS 640 (SP14) Objects into the repository. Please refer thread for more details.

Regards,

Ananth

Former Member
0 Kudos

Anandan

Check the help..If its part of message Payload you need to prefix with <b>payload:</b>

%% isused incase of attributes of the message header

Chk the help@

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm</a>