cancel
Showing results for 
Search instead for 
Did you mean: 

File being overwritten when using SFTP adapter in SAP CPI

0 Kudos

Hello Experts,

I have a scenario where I would have to break a big file using a general splitter.

I have used a content modifier before the general splitter where I have mentioned the Camel file name

CamelFileName : Leave_${date:now:yyyyMMddHHmmssSSS}${random(10000)}.XML

The file still overrides . I have attached the iflow screen shot below

capture.png

capture1.png

capture2.png

Can you please advice .

Thanks

Regards

Advit

Accepted Solutions (1)

Accepted Solutions (1)

r_herrmann
Active Contributor

Hi Advit,

have you tried setting the Content Modifier behind the splitter step? A splitter breaks one message into multiple ones. If you place the Content Modifier before the splitter, than there's only one message modified. All messages, generated by the splitter, will share the same header values of the initial message. If you want unique file names for each splitted message, you should place the Content Modifier behind the splitter. Thus it will change each of the message generated by the splitter.

Regards,
Raffael

Thanks Raffael,

This did the job

Answers (0)