cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution not working for multiple files

Former Member
0 Kudos

Hi,

Have a scenario in which we are using Interface Collection with multiple files as output.

The naming of the files is derived from a payload field as follows.

payload:MT_OrdersAck,1,Order,1,File_Header,1,StoreNo,1

When the first file is generated this works fine, but fails for the rest of the files.

I guess this is because of the hardcoding 1 in

payload:MT_OrdersAck,1,Order,1,File_Header,1,StoreNo,1

how do we get around this problem?

Any Ideas?

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member191435
Contributor
0 Kudos

Hi Siva,

Check in mapping that store filed value is coming in 2nd file or not. I mean that in message split mapping test ur mapping in ESR by using this store value.

It has working fine for me.

Thanks,

Rohini

Former Member
0 Kudos

Hi Siva,

seems to be data is missing in "Store" field in file or the order of the data is inconsist in all files.

Check whether all file's data are in same order or not.

Former Member
0 Kudos

Hi, I suppose you are using Mapping-Based Message Split, right? Do the following files look the same like the first file with respect to File_Header?

Make sure that the payload structure (payload:MT_OrdersAck,1,Order,1,File_Header,1,StoreNo,1) is equal in all files and that first occurrence of StoreNo always has a value in all the files.

Regards, Martin

Former Member
0 Kudos

Hi,

If you are hardcoding that field, that means it is a constant value, hence you can give it in your filename schema of the communication channel rather than as a variable.

Regards,

Rohini