cancel
Showing results for 
Search instead for 
Did you mean: 

How to append source file payload to target file payload

Former Member
0 Kudos

Hi Friends,

In my File to File Scenario,When ever new message is maintained at source directory then it should be append to target directory file content.Generally it should overwrite the target directory file content when ever we changed the file content of source directory.But here my requirement is i just want to view all new messages in single file of target directory.Please suggest me to acheive this.

Thanks

pullarao

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

I'm not sure if I get it correctly

but why don't use just use APPEND mode

of the receiver file adapter ?

Regards,

michal

Former Member
0 Kudos

Hi Michal,

I used append mode and its working fine now,but the problem is while appending i want to eliminate <?xml version=1.0 ..> tag from payload.For example,

My first mesg is,

<?xml; version=1.0 ...>

<Emp>

<Name> Ram </Name>

</Emp>

Second Mesg :

<?xml version=1.0 ...>

<Emp>

<Name> Rao </Name>

</Emp>

Now i'm getting target mesg like this,

<?xml; version=1.0 ...>

<Emp>

<Name> Ram </Name>

</Emp>

<?xml version=1.0 ...>

<Emp>

<Name> Rao </Name>

</Emp>

But according to my requirement target mesg should be like this,

<?xml; version=1.0 ...>

<Emp>

<Name> Ram </Name>

</Emp>

<Emp>

<Name> Rao </Name>

</Emp>

Can u guide me to acheive this.

Former Member
0 Kudos

HI,

If you want to add the records , then we have an option , APPEND in file adapter,

But as you said , you want to add the file to xml??

Why dont you try with FCC, without column names

then all the records will be added..

Regards

Chilla

Former Member
0 Kudos

Hi Sekar,

I also tried with FCC,File getting in CSV format,but i need target file should be in xml tags.

Former Member
0 Kudos

Take a look at my reply in this thread.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Sanker,

i was gone through that thread.It is same as my requirement it seems.please suggest me better solution.