cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with variable substitution

Former Member
0 Kudos

Hi specialists!

I try to take file name from one of the payload fields. But it didn't work.

Here is my message:

<InputMT>

<Message>

<data1> </data1>

<data1> </data1>

<data1> </data1>

<FileName> </FileName>

</Message>

<Row>

.

.

.

</Row>

<Line>

.

.

.

</Line>

</InputMT>

Here is my variable substitution:

var1 payload:ImportOrderFileMT,1,FileName,1

My File Name Scheme in CC:

ERRBED120%var1%.txt

The error is:

The following variable was not found in the message payload: var1

What's wrong?

Accepted Solutions (1)

Accepted Solutions (1)

former_member206760
Active Contributor
0 Kudos

Jani,

the filename field whose content u want to use in the filename should be there in the target structure and not in the source structure.

suppose my target structure is

Shipmentdeliveryorder_ID

Record

Material number

Material text

filename

then

var1------>Shipmentdeliveryorder_ID,1,Record,1,filename,1

Also as michal suggested if u dont wanna go for variable substituion u can go for Adapter spec message attr.

hope this would help

Edited by: Tarang Shah on Mar 22, 2009 4:23 PM

Former Member
0 Kudos

Thanks Tarang Shah! Thats it.

former_member206760
Active Contributor
0 Kudos

Dear Dani,

glad that it helped

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

please don't use variable susbstitution

use adapter specific identifiers

they allow to se the filename in a much better way (in a mapping)

and they work for all adapters in the same way

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

I'am building the file name in my message mapping, so I don't see, how I can use adapter specific identifiers.

Former Member
Former Member
0 Kudos

Hi Michal,

I'am building the file name in my message mapping, so I don't see, how I can use adapter specific identifiers.