Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Execution of remote script in File Adapter OS Command


I'm having issues with a remote script placed on a file adapter which fails to execute in a clustered PI (Version 7.1), running on Windows 2008.

Our current setup is as follows.

- Machine A and Machine B make up a SAP PI Cluster node.

- Machine C is our network file share, used as a sandbox for receiving and sending files.

One given scenario would be having the Cluster picking up a file from a FTP folder (Machine D) and copying it over to a given location in Machine C. This is working without problems in the cluster environment.

Now, a very specific scenario requires that after copying the file (to folder INPUT), a given script shall be executed over the received file and decide which folder should that file be archived, TO_PROCESS or NO_PROCESS folders.

So, Outbound Channel is reading from the FTP, Inbound Channel stores in Machine C and has to run a script after message processing.

The problem here is that the script is stored also in Machine C, so placing the OS Command should refer to a shared path:


If I give the command of "\Scripts\procFile.bat %F" on the receiver channel, checking RWB, Communication channel says the command was executed with success but the file doesn't leave the INPUT folder.

The script is know to execute with success from both instances, I have logged into each one of them and executed with RFCUSER in SE38 w/transaction RSBDCOS0.

I have tried to replicate this issue, reducing even the procFile.bat script to just do an "echo" command but still doesn't work (RWB PI says it does).

It seems to me that executing scripts from remote shares is a no go? Does anyone have a previous experience dealing with these cases?



Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question