on 01-12-2007 5:21 PM
Hi experts,
I am getting a problem, i am using receiver file adapter with NFS(transfer protocal),
the file is coming to file system. from file system i am trying to put file into ftp server.
i wrote a bat file in that i gave all details (like connect to ftp server,user name, passward, put file from file system to ftp server) of ftp server, i am giving this bat file as commandline attribute in receiver communication channel
the problem is xi executing the bat file, but it is always showing sucess in adapter engine monitering irrespective of wheter file is put in ftp server or not. can anyone help?
thanks in advance
Ravi,
We cannot the handle the errors on the FTP side in XI. So first what you do is first execute the batch job at OS level manually. Be in the XI root directory and run the script. If it is successfully completed then XI will definitely run the script and give the output. If it runs at OS level and not at XI level then there is a problem with the authorizations. So better have the same authorizations and run the scenario once again.
-
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ravi,
It always happens like that. XI shows that as success if it runs the batch file. But if some statements in batch file fails, there is no way XI would know this. because there is no mechanism there to tell that particular batch file is failed. So, it just runs the command and says its success. It doesnt mean that whatever you are doign in the bacth file is success.
Earlier I worked in webMethods EAI tool, there also we have option for commandLine to execute the batch or shell scripts. Even webMethods shows success always just like XI for running that batch file. Its the standard functionality all middleware has.
--Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you want to monitor a ftp transfer via XI use FTP and not NFS. can you please post the bat file? i think there is the problem.
XI is showing sucess, because the bat file is executed. a work around:
- specify a time out in the adapter for the comand
- if the transfer didn't worked, cause a time out in the script (i.e.: PING 127.0.0.1 -n 100)
But i would recommend to use the ftp file adapter. Whats the reason to do it this way?
Regards
J.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is fle to file scenario with bpm, in the bpm it uses jdbc adapter to get data from jdbc and put it that as file in other side, when we use ftp both sides we got problem in receiver side, so we switched to NFS in receiving side, but our goal is to put file on the ftp server, so thats why we used bat file to put file on ftp server
go through this link. it talks about sending email from shell script.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.