cancel
Showing results for 
Search instead for 
Did you mean: 

source and target directory file name should be same

Former Member
0 Kudos

Hi,

How can i generate the same file name in target directory without date and Timestamp.

for eg., Source File name : yeswanth.txt

and target File name also : yeswanth.txt

Note : here source side the file yeswanth.txt is constant and whenever it moves to target directory...should be overwrite.

Reward points for useful answers.

Thanks & Regards,

yeswanth.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mugdhal,

am getting this error when i sent the same file again.

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:

Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550

Yeswanth.txt: Cannot create a file when that file already exists.

But, here it should be overwrite the existing file.

Regards,

Yeswanth.

Former Member
0 Kudos

file construction mode - Create

Select check box "overwrite existing file" in receiver communication channel.

this option is visible if your transport protocol is FTP

Former Member
0 Kudos

Hi Mugdha,

Thanks for your solution...

Keep going.

I just log off the XI system and again i start the channel now..the new msg is passaway and finally it gets overwrite at Receiver side.

Regards,

Yeswanth.

Answers (2)

Answers (2)

Former Member
0 Kudos

Select adapter specific message attributes in sender and receiver communication channel.

you will get same file name in target as source

Former Member
0 Kudos

Hi Mugdha,

Thanks for your reply and i will let you know whenever the file get overwrite.

Currently am getting the same file name which is at receiver side.

Thanks & Regards,

Yeswanth.

prateek
Active Contributor
0 Kudos

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

Regards,

Prateek