cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with overwriting files

Former Member
0 Kudos

Hi experts,

I have a receiver CC with File Transfer Protocol and File Content Conversion. This CC write files on an external AS400 server.

Files are created with "D"+DDDHHMMSS. I cannot change this filename convention.

Sometimes happens that 2 files are created in the same second (SS), so second file overwrites the first file.

It's possible to avoid that?

I need that PI throws a system error in this case.

I've tried to use:

put file: use temporary files

and

overwrite existing files not checked

but PI throws an error because the temporary file created is too long for AS400 (AS400 has max file name length=10 characters)

Thanks

Fabio

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Fabio,

You can try using Thread.sleep(1000); via UDF in mapping. It will delay file creation by 1 second.

Regards,

Mark

Answers (0)