cancel
Showing results for 
Search instead for 
Did you mean: 

Input file should be deleted only after the output file is successful.

Former Member
0 Kudos

Hi Experts,

Could you pleas solve the below issue.

In a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.

In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.

If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.

And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

How do u identify whether file is processed sucessfuly or not ?

According to u what do u mean by file got processed in correct mode ?

Well i think to achieve this u have to write command line (batch file) , no other option would work out.

Your logic has to be completetly put across in Command line.

Guys any views

regards

sRINI

Former Member
0 Kudos

Hi Venkat,

In Receiver communication channel I have used the below command in Run Operating System.And I have kept the processing mode of sender communication channel as test.

cmd.exe: /C "del /Leela/test.xml"

But it is not executing the command line.

Have any ideas regarding this....?

Former Member
0 Kudos

Hi,

In Receiver communication channel I have used the below command in Run Operating System

.And I have kept the processing mode of sender communication channel as test.

cmd.exe: /C "del /Leela/test.xml"

You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.

Try this:

Try to run the command line in the Sender File Adapter Side

"Place this in " --> Run OS Command After Message Processing.

Hope this would work and get in parrallel with u r requirement.

regards

Srini

Former Member
0 Kudos

Dear Venkat,

I have done the same as u have said. But it not executing the command.

Former Member
0 Kudos

Hi,

Well have u executed that command line on OS and tested.

check below blog of Michel

See that OS is compatible with u r commands.

Creating u r Commands in Windows and using it in u r XI Box which wud b runing on UNIX would be

plz check it was a thought.

regards

Srini

Former Member
0 Kudos

Dear Venkat,

I have tested the "del /Leela/test.xml" in OS and tested.

It is working fine.

cmd.exe /C "del /Leela/test.xml----


In this /C means....Is it a drive?

Former Member
0 Kudos

To be honest am not sure ,

Hope u r using Transport protocol of type NFS.

Give u r XI box drive here (if it is on D:/)

lemme know what happens now.

regards

Srini

Former Member
0 Kudos

Hi...

I am not using NFS. I am using FTP.