cancel
Showing results for 
Search instead for 
Did you mean: 

File receiver: Dynamic Filenames error

Former Member
0 Kudos

Hi

I get an error in my File receiver adapter..

Receiver Adapter v1730 for Party '', Service 'SenderSystem':

Configured at 19:32:43 2005-08-01

Last message processing started 19:33:26 2005-08-01, Error: Message processing failed with java.text.ParseException: Variable 'test' not found in variable substitution table

We are currently on XI Sp12 patch level3.I have enabled the Variable substitution option and have defined a variable "test" used in defining the file name scheme.The reference points to a node value in the payload.

I have checked the config xml for the channel which does contain this value test in the variable table..Am I missing anything???

the config xml is as below:

[code]2005-08-01 19:32:43 : ToFile

      • Raw configuration data ***

Transport protocol: File, version

Message protocol: File, version 3.0.0527

ftp.user|anonymous

file.varSubstitution|true

file.adapterStatus|active

file.addParameterParams|*** TABLE , 0 ROWS DEFINED ***

file.execute|

file.targetFileName|%test%.xml

ftp.overwrite|false

file.counterMode|immediately

file.encoding|

file.overwrite|true

ftp.transferMode|bin

ftp.anonymous|false

ftp.port|21

file.advanced|false

file.varSubstitutionDisableSecurity|true

ftp.targetDir|null

ftp.host|null

file.counterSeparator|

file.counterFormat|00000

file.varSubstitutionParams|*** TABLE , 1 ROWS DEFINED ***

file.varSubstitutionParams|file.varSubstitutionParams$0$file.varSubstitutionParamName$test

file.varSubstitutionParams|file.varSubstitutionParams$0$file.varSubstitutionParamValue$payload:input,1,filenode,1,filename,1

file.type|bin

file.targetDir|//10.201.103.253/download

ftp.password|***

ftp.putSafe|YES

file.writeMode|addTimeStamp

ftp.writeMode|addTimeStamp

file.recordsetStructure|null

file.conversionParameters|*** TABLE , 0 ROWS DEFINED ***

ftp.connection|permanently

file.counterStep|1

      • Used configuration data ***

'MessageProtocol': 'File'

'TransportProtocol': 'File'

'file.adapterStatus': 'active'

'file.advanced': 'false'

'file.encoding': ''

'file.execute': ''

'file.overwrite': 'true'

'file.targetDir': '//10.201.103.253/download'

'file.targetFileName': '%test%.xml'

'file.type': 'bin'

'file.varSubstitution': 'true'

'file.varSubstitutionDisableSecurity': 'true'

'file.waitForExecute': '0'

'file.writeMode': 'addTimeStamp'

OK - initialized

[/code]

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sri,

You have specified payload:input,1..... in ur variable substitution configuration. Is "input" the name of ur Message Type object in repository. If not, specify the name of the Message Type referred to in ur inbound interface.

We tried this option and generated an additional field in the XML data given as input to the file receiver adapter, to be used for substitution purpose only. We avoided specifying this field in our content conversion , however it still gets written to the file!! if u able to crack it let us know

-Saravana

sid-desh
Advisor
Advisor
0 Kudos

Hi Sarvana,

With the file content conversion we were able to do that but that was for files having fixed lengths only. Where file has a field separato it is not possible that is what we have found out.

Regards

Sidharth

Former Member
0 Kudos

Sidharth , Just now, we managed to avoid the filename field getting written even fr configs with file seperator specified. let me know if you are trying this out

-Saravana