Failure of OS command in Process Chain

Hi All,
I have OS command in a process chain. Sometimes this process gets failed and sometimes it is completed successfully.
When it fails following message appears in Process Chain Maintenance Log View:
==== Output of System Commands: Repeat # 0 ====
mv: cannot stat `/usr/sap/transBD1/upload/BP1/StockPosition/StockPosition_BNL.txt': No such file or directory
External program terminated with exit code 1
Kindly reply if anyone has any idea about it.
Many Thanks in advance.!
Regards,
Swati Ramteke

Hi Vikram and Srinivas
In the process chain, file is first loaded to cube from the specified path. There is no problem in loading, it is completing successfully.
Next, this file is archived from specified path to archived folder by OS Command.
OS Command is:
#!/bin/ksh
FILEDATE=`date +%m%d%y`
mv /usr/sap/transBD1/upload/BP1/StockPosition/StockPosition_BNL.txt /usr/sap/transBD1/upload/BP1/StockPosition/processed/StockPosition_BNL.$FILEDATE
The file is archived successfully in processed folder but OS command process in process chain is getting failed with mentioned error in previous thread.
Regards,
Swati

Similar Messages

  • OS command in Process Chain

    Hi all,
    I'm using the OS Command in a process chain and I have the "Evaluate Output of Command" checked along with It will be repeated" selected.  It's looking for a file on the app server and repeating every 3600 seconds for 24 hours.  The issue is if the 24 hours goes by and no file is found the process chain continues on to the next Process.  I expecting the chain to stop with errors.  Is this the correct functionality?  If so, any ideas how I can stop the process if the repeat time is exceeded and file not found?
    Regards,
    Dae Jin

    Hi Dae,
       Try this way. Separate present Process chain into two chains.
       Create an ABAP program to trigger OS Command and an event(EVENT1) on success of finding the file or another event(EVENT2) if file not fround and to repeate the process to find the file.
       Create first chain, and make it event based(EVENT2) and create 2nd chain aldo event based(EVENT1).
    activate and schedule both chains event based. trigger the first chain. It will check the file and if it is success ABAP program raise and event(EVENT1) and it will trigger the 2nd chain. or it will raise the event(EVENT2), it will reapete the 1st chain for finding the file.
      So here 2nd chain triggers on EVENT, so time limit. And it only excutes if first chain picks the file successfully,
    Hope it Helps
    Srini

  • System command in Process chain

    Hello,
    I have a system command in the process chain which points to a command file that is supposed to run. My problem is that when I transport the PC, the path on the system command remains same.
    I want it to change the path from /md.... in dev to /mq... in QA and /ma... in PROD.
    Is there anyway to automate this process? Right now i have to keep track of it and change the system command in each system. I have missed a couple and it creates some problems.
    Thanks
    Sam

    Hello Sam,
    One way to solve this is to work this with your UNIX administrator.  You can do the following:
    1) Create a symbolic link in your dev, qa, and prod which points to the correct directory.
    For example, in dev, you can do the following:
    link -s <whatever new name here, e.g. target>  /md
    In QA, you can do the following:
    link -s <whatever new name here, e.g. target>  /mq
    and so on..
    2) Instead of using the /md, /mq directories, you can use the symbolic directory instead in your system commands.
    e.g.   ls -l /target   instead of ls -l /md
    This might not help you a lot now but it will make things easier in the future because you will know that the symbolic link points to the correct directory of whatever box.
    Hope this helps.

  • Failure of infopackage step in process chain - Error in source system.

    Hello Experts,
    We are experiencing this during the execution of process chain.
    All the step for data loads within BW(DSO to DSO, DSO to cube) are failing with error -
    - Error in source system
    - Error during data selection
    Please note that we are 3.5 data flow and thus, data load within BW is through emulated data source and the infopackage. Steps running such  infopackages for emulated data source are failing in process chain with error above.
    Surprisingly, when I run the infopackage manually out of process chain it runs successful without any error. But when I run through process chain it fails.
    Any clue or suggestion? We have already tried doing re-initialization for infopackage.
    Appreciate your inputs.
    Regards,
    PK.

    Hi,
    When we run data loads thru process chain it will run in background. as per the available background application servers your request will be processed.
    as my your during your load time server will be on high load.
    please check your system busy schedule and schedule your process chains.
    Check Tx - SM50, if you have less application servers, then ask basis to create few more to application servers to process the request at busiest time.
    check about increasing parallel processing and default data transfer settings.
    go to info package---> menu scheduler--> data settings for default data transfer.
    Thanks

  • Process chain notification gets triggered on Success?

    Hi,
    I have enabled the process chain failure notification for our key process chains. However we have noticed that the process chain gets triggered even if the process chain is run successfully.
    I am ONLY using the notification on ERROR message and NOT on success message.
    Any idea why the process chain gets triggered when the process chain is run successfully? am i missing something?
    Cheers

    Hi there,
    Why don't use another functionality of sending messages through the transaction RSPCM
    In there, you can add the chains you wish to monotorize and click on "Plan Monitoring (F7)" and schedule a job.
    With this method only chains with errors gets triggered.
    Diogo.

  • Process chain failures...

    Hi Gurus,
    Can someone please send me a link which has got some common process chain failure issues with the resolutions....
    Thanks & Regards.
    Pawan.

    Hi,
    Common Errors can be like
    1. SID Failure while loading data.
    2. Activation Failure.
    3. Idoc failure
    4. Failure in Source System.
    5. Table space issue while loading.
    6.No SID found for a characteristics
    7.No Data found in the soucre system
    8.DATASET Errors: Short dump with Various DATASET errors
    9.Hierarchy load fails with error ‘Incorrect Hierarchy Structure with Consistency Check’ / NodeID XXXXX not included in the Hierarchy.
    10.Invalid character error
    11.File not found (System Command for file check failed).
    12.Error occurred due to Short Dump.
    13.Attribute Change Run failed  -  ALEREMOTEBW was locked.
    Thanks,
    Nagesh.
    Edited by: Nagesh Mule on Jan 30, 2008 7:19 AM

  • Process chain 'OS COMMAND'

    Hi
    I would like to use the OS_COMMAND in process chain to rename file to another filename after data loaded from file into the targeted cube. Eg: I would like to delete brand.txt from folder named /interface/.
    I would like to create the command name via tcode SM49. However, I did not know the command to enter in fields 'Operating system command' and 'Parameters for operating system command'. Can anyone please guide me?
    Thanks and regards
    Kang Ring

    Hi,
    You can find System OS command process type in Other Processes section of RSPC.here you can add the same in your process chains and fulfill your requirement.
    hope this is clear for you.
    Regards
    Ramsunder

  • Info Spoke - Process Chain - OS Command usage help

    I am new to BW. My requirement is to extract the master data off of BW data targets on a weekly basis and ftp the files onto a different server.
    To meet this requirement, I am planning to create InfoSpoke(s), put it in a Process chain and using the OS Command ftp the files to different server.
    Is this the right way to do it or are there any better ways? If it is, I need help on where to give the target server name, user_id and PSW in the OS Command variant of Process Chain.
    Also, is it possible to schedule a Infospoke directly from the scheduler (Auotsys...) and still execute weekly/monthly?
    Thanks for your help in advance
    RK

    That's correct.  You'll define the command under the general services tab in the process chain transaction (It's labeled OS Command and is a silver circle thing with a blue dot in it).
    When you drag it into the process chain it will ask for a varient.  In the System Command field for this varient is where you'll define the actual command. (little pencil button next to it).  At this point you can call a script that does the copy or call an actual command that does the copy. 
    Might be easier to control with a script that does the work but if you want to call rcp/scp, the os command will be rcp and parameters will be the filename, etc.  If it's a script then you'll just enter the name of the script in the os command field.
    Hope this helps.
    -bill

  • Process Chain/OS command issue

    Hello,
    I am trying to execute a command similar to the following in an OS command in a process chain:
    cp /path/filename*.txt /path/filenamexxx.txt
    I know it's not a permissions problem.
    This is the error message from the Process Chain Maintenance Log View:
    cp: cannot access /path/filename*.txt: No such file or directory
    External program terminated with exit code 1
    I'm thinking it is a problem with the *(wildcard). If I take out the *(wildcard) it works flawlessly. It seems like SAP is not correctly interpreting the * character.
    The purpose of my doing this is to remove the date text from the end of the file and store it in a different directory without the date text. e.g.
    filename08032006.txt copy to different directory as filename.txt
    Any help will be greatly appreciated.
    Thanks,
    Gary Martins

    hi,
    i do not know what process cain maintenace view is but I wonder how this command should work on the commandline correctly:
    say you have
    filename_1.txt
    filename_2.txt
    and copy them according to your example to
    filename_x.txt
    This would be n files copied to one destination file. At best you had the destination overwritten n times and be left with the last source file in the destination file.
    Would that make sense? Probably therefore this construct is not supported.
    just my 2 cents,
    anton

  • Process Chain/OS Command cp problem

    Hello,
    I am trying to execute a command similar to the following in an OS command in a process chain:
    cp /path/filename*.txt /path/filenamexxx.txt
    I know it's not a permissions problem.
    This is the error message from the Process Chain Maintenance Log View:
    cp: cannot access /path/filename*.txt: No such file or directory
    External program terminated with exit code 1
    Any help will be greatly appreciated.
    Thanks,
    Gary Martins

    Hi Gary,
       Is this file(cp /path/filename*.txt /path/filenamexxx.txt) avaialble at perticular path...??
       File is in application server or workstation(PC). If file is available in one application server and your Pchain running againest another application server, you may get this error. Plz check.
    Hope it Helps
    Srini

  • How to create an OS command that can be used in the process chains

    I need to create a command that can copy files from one location to another for a unix machine.
    I have the commands for the unix machine, but need to create a Z customer command so it can be executed in a process chain in SAP

    Hi Again,
    You can use ABAP program in the process chain.
    I guess there are some OS level commands in ABAP which will allow you to open, close, read , write and move files.
    Serach in ABAP help or on net.
    Bes regards,
    Sunmit.

  • Hierarchy failure in "Save hiererachies' step in process chain.

    Hi,
    In process chain I am getting an error stating hierarchy loaded with requestXXXXXXXXXXXXX could not be activated.
    step: Save hierarchies.
    even though the above step is in failure state, the chain execution gets completed with status red.
    temporary solution:
    we are manually turning the status to green through program(SE38- rspc_process_finish).
    this happening on every time the chain has run.
    any suggestions on this for a permanent fix.
    thanks
    ameer.

    Hi,
    There is an option in the infopackage used to load hierarchy -- to activate upon loading.
    tick that option and remove the hierarchy name from Save hierarchy variant of the process chain.
    Ticking this option will activate your hierarchy automatically after loading.No need to explicitely save it.
    Hope this helps !!
    Regards,
    Yogita.

  • Subject: Continue Process Chain Execution Despite a Process Type Failure

    My process chain is made of several process types; process type 1, process type 2, etc.
    Generally if a process type fails, e.g., process type 1 failed, subsequent process types are not executed.
    1.     Is it possible to continue to execute process type 2 despite errors in type 1.
    2.     If process type 2 was an ABAP program, is it possible to get in this program whether process type 1 was success or failure because I want to do certain things only  if process type 1 was a failure,

    Hi,
    Here are my answers,
    1) Is it possible to continue to execute process type 2 despite errors in type 1.
    It is possible to execute subsequent process even if the process fails.
    when you are developing the process chain, whilee connecting processtype1 and processtype 2, a popup appears with three optionhs "success", "failure", "always".
    select "always" in your case.
    If you are asking about the process chain already developed, go to edit mode, removelink between process1 and process2 and follow above steps.
    *2) If process type 2 was an ABAP program, is it possible to get in this program whether process type 1 was success or failure because I want to do certain things only if process type 1 was a failure *
    let me assume that you want to run programA if process1 is succesful and programB if process1 fails.
    include programA in process2 and ProgramB in process3
    connect process1 to process2(ProgramA) and select "success" n the popup
    connect process1 to process3(ProgramB) and select "failure" in the popup.
    hope this helps you,
    please let me know if you need any more information.
    Regards,
    Sri...

  • Need to add a command file in process chain

    Hi,
    I have cmd file on the network that will be used to specify which staged data has been successfully loaded to BW.  At the end of the process chain which loads our daily data, this cmd file should be executed. I have never done this before, does anyone have any idea as to how i can include this file in the Process Chain? There are 2 files in that directory; .cmd and .out. Do I need both these files?
    Thanks
    Sameer

    There is OS command provess available in process chai, but i think you cannot use a command file; you have to use more time OS command with single command each time.
    Hope it helps.
    Regards

  • Process chain failure at AND condition

    Hi gurus,
    Please help me with this issue .
    the process chain is failing at  the AND process after the DTPgets succesful . its giving the error message as"THIS AND PROCESS IS NOT WAITING FOR EVENT RS PROCESS".
    PLEASE SUGGEST.

    Yes,
    there are two dtps which are connected to this AND process.process chain is successful untill this dtps and failed at this AND condition. please suggest to fix this and let me know wht will be the possible reason for this failure.
    thanks for your help

Maybe you are looking for

  • New event vs. new project

    What's the difference between a new event and a new project? Is a new event something that takes place within a project? I looked under help but it didn't seem to help. Thanks,

  • Airport Express Networking with Existing Router + ONT

    I have a TELDAT Wifi router connected to an ONT, both provided by my ISP. The TELDAT router does not perform very well, I have many issues with airplay, itunes home sharing and even with my apple TV. I read many forums and came to the preliminary con

  • Bug In Payment Wizard Report

    We have found an obscure bug in the BP Summary Report from the payment Wizard. We created historical transactions for the suppliers using one journal for each month with line level remarks & dates. Where the journal has several lines for the same sup

  • Importing Framemaker files

    I've had success importing smaller files (100 - 200 K), but they are the exception. Now I have to do the large dudes. 700+K. I set up the Paragraph tag conversions and click Finish. Robo sends a blue progress bar halfway across the screen and stops p

  • IPhoto 09 - Very unstable

    I had a serious issue after installing 09, but restoring the library from a time machine backup resolved that. However, it's crashed three times this morning, twice during a "face identification" process, and once during a slide show creation. Now, s