"Wrong process return code" Error which using OS Command

Hi,
I want to execute a shell script in unix which calls a sed script and input to the script is an xml file. I am using OS Command tool to call the script which fails with "Wrong process return code" error. I ran the command directly on UNIX box and works fine but fails when executed through a package in ODI.
The command I am passing in OS Command window is as follows:
/test/callSed.sh emp.xml
I also tried ODIOSCommand but getting the same error. The shell script has execute privileges for all users. Is there any other property to be set up for running shell scipts through ODI?
Appreciate you response.
Thanks!

Hi,
Thanks for a quick response.
I tried both the commands you sent. "sh ./test/callSed.sh emp.xml" threw Wrong process return code error and "./test/callSed.sh emp.xml" threw the following error:
java.io.IOException: Cannot run program "./test/callSed.sh": java.io.IOException: error=2, No such file or directory
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
     at java.lang.Runtime.exec(Runtime.java:593)
     at java.lang.Runtime.exec(Runtime.java:431)
     at java.lang.Runtime.exec(Runtime.java:328)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.k(e.java)
     at com.sunopsis.dwg.cmd.g.G(g.java)
     at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
     at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
     at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
     at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrdersIntegratedFunction(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
     at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
     at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
     at com.sunopsis.dwg.cmd.e.k(e.java)
     at com.sunopsis.dwg.cmd.g.A(g.java)
     at com.sunopsis.dwg.cmd.e.run(e.java)
     at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
     at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
     at java.lang.ProcessImpl.start(ProcessImpl.java:65)
     at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
     ... 31 more
Regards,
Aks

Similar Messages

  • *"Wrong process return code"* Unix Command

    Hi,
    I have created Package with Procedure having Unix command.Unix command is only to cp data file from one folder to another archive folder.
    we are defining variable FilePath and FileName.
    cp #FILE_PATH/#FILE_NAME.tag #FILE_PATH/archive/;
    But while running this we are getting following erorr.
    *"Wrong process return code"*
    Plz suggest.
    Thanks
    Ashwini

    Hi Aswini-
    You should not use # symbol for your variable pointers, it will take as a comment line. Please use the below syntax:
    FILE_PATH=c:\temp
    FILE_NAME=test.txt
    cp $FILE_PATH/$FILE_NAME.tag $FILE_PATH/archive/
    And also you can check the exact error by executing the script file in your unix command prompt like this:
    /home/test/test.sh
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • Wrong process return code: 1

    I thought I can run the OdiReverseResetTable command by choosing "Operating System" as target technology in the Knowledge Module.
    Type this command:
    cmd /c C:\Oracle\ODI11.1.1.6\oracledi\agent\bin\startcmd OdiReverseResetTable -MODEL=1001But it gives another error:
    Wrong process return code: 1When I remove the arguments ( ) it works very well :
    cmd /c C:\Oracle\ODI11.1.1.6\oracledi\agent\bin\startcmdHow can I call startcmd command with arguments? By the way I am using Local Agent and ODI 11.1.1.6.
    Thanks.
    Edited by: XYZ123 on 08.Nis.2013 12:23

    It does not work as well, I tried all but nothing works:
    cmd /c C:\Oracle\ODI11.1.1.6\oracledi\agent\bin\startcmd "OdiReverseResetTable -MODEL=1001"
    cmd /c C:\Oracle\ODI11.1.1.6\oracledi\agent\bin\startcmd OdiReverseResetTable "-MODEL=1001"
    cmd /c C:\Oracle\ODI11.1.1.6\oracledi\agent\bin\startcmd "OdiReverseResetTable" "-MODEL=1001"

  • Wrong process return code in ODI

    Hi,
    I am using store procedure to run batch file on other server.
    I get excuted success fully on that server but ODI procedure showing error
    "Wrong process return code"
    Return code is 1
    Can anybody help to solve this type of error
    Thanks
    Kiran Kokade

    For ODI related question , goto Data Integrator

  • Processing status code error

    Hi all,
    What does processing status code "Error" indicate in rcv_headers_interface.There is no error message in po_interface_errors.There is nothing available in the log of Receiving Transaction Processor.Can someone guide me what exactly this means?
    Thanks in advance!!

    Hi Sandy;
    Please see below notes which could be helpful
    Resolving records stuck in the Receiving Transactions Interface [ID 50903.1]
    http://docs.oracle.com/cd/E19509-01/820-4390/ggtrm/index.html
    Regard
    Helios

  • The code error which is difficult to understand?

    HI,
    I am getting the following code error which is in red color. How to solve the problem? The errors are in Line 1, 2, 5 & 6. This code is used for auto typing style.
    if (Number(TextLen)<=Number(length(TextBuffer)) and Number(TextLen)<>0) {
       TextLen = Number(eval("TextLen"))+1;
        TypeField = substring(TextBuffer, 1, TextLen);
    } else {
       TextLen = 0;
    1084: Syntax error: expecting rightparen before and.
    1084: Syntax error: expecting rightbrace before semicolon.
    1084: Syntax error: expecting rightbrace before semicolon.
    1100: Syntax error: XML does not have matching begin and end tags.

    kglad wrote:
    try:
    if (Number(TextLen)<=Number(TextBuffer.length) && Number(TextLen)<>0) {
       TextLen = Number(eval("TextLen"))+1;
        TypeField = substring(TextBuffer, 1, TextLen);
    } else {
       TextLen = 0;
    Thanks for the quick reply. Now getting two errors and both are in line one which is in RED color:
    1084: Syntax error: expecting identifier before greaterthan.
    1084: Syntax error: expecting rightparen before leftbrace.
    if (Number(TextLen)<=Number(TextBuffer.length) && Number(TextLen)<>0) {

  • Traport importing problem with repeating return code error 8

    Hi all,
    We are facing some transport import problem.When we sent transport initially AAA900244,they faced with return code error 8 and syntax error 109.As the information provided by the client,one of the include  program which is not availble at client system that was included in this transport.So that was the problem.Again we have taken  new  tranport AAA900247 without this include program then same type of error message they faced with return code error 8 and syntax error 109 in the include program when imported.
    I have one doubt, when importing new transport this should overwrite the earlier transport data.Why the same type error client is getting.What might be the reason.
    Is earlier transport  imported?? Why it throwing same type error.What actually the fuctionality of Return code 8 whether it is imported or discarded.
    Thanks in advance.
    Regards.....Balu

    Hi Ramesh,
    That include is not at all required at client system.So next time when we have taken transport we have not included this include program.They imported new transport without this include program.But they are facing same error as they faced first time. What could be reason??
    Regards...Balu

  • Return code errors 4,8,12

    hi
        what are return code errors 4, 8, 12 can any one explain me
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 18, 2011 1:42 AM

    hi Gersh,
    I checked in dev system, infoObject /CPMB/NUD8H9B and its' attribute/CPMB/MBRSEQ. Both are active and  infoObject /CPMB/NUD8H9B  is under infoarea "custom appset".
    But if i check it in target system both are inactive status and  infoObject /CPMB/NUD8H9B  is under unassigned node infoarea.  
    When i tried to activate infoobject via sap program, system couldn't do that and saying attribute is not in active state. Like wise several /cpmb/xxxxxx infoobjects are in status "inactive".
    Do i need to activate standard appshell via ujs_activate_content program in order to activate all /cpmb/xxxx related infoobjects.
    Or can i follow method of delete custom appset from target system and  shadow table contents in source system. Then freshly creating new req in dev system. Is this solves my problem?
    any suggestions pls.
    thanks

  • Redirects and saves process listing to a file using glance command

    Sorry for asking this in wrong forum.
    Does Anyone have script for cpu monitoring usong glance on hp-ux
    I need a command which redirects and saves process listing to a file using glance command
    Thanks for help

    glance -f /tmp/gout -adviser_only -syntax /opt/perf/examples/adviser/activity -j 10 -iterations 3
    glance -adviser_only -syntax glance_advisor -iterations 1 > /tmp/results
    cat glance_advisor
    PRINT GBL_STATDATE," , ",GBL_STATTIME
    PROCESS LOOP
    NUM_FILES = 0
    PROC_FILE LOOP
    NUM_FILES = NUM_FILES+1
    PRINT "PID: ",PROC_PROC_ID," Process Name: ",PROC_PROC_NAME," # open files: "
    ,NUM_FILES|5|0
    My question is :
    how to get top processes (cpu/memory wise)
    using glance
    for example
    glance -f /tmp/gout -adviser_only -syntax some_syntax_script -j 10 -iterations 3
    Please help me to find top 20 cpu using processes using glance.
    I need to get listing in a file so that I can use these pid to see in application or database.

  • Transport Ended with Return code error = 8? What we do now?

    Hi all,
    I was trying to transport the Update rules from Development system to Production system.
    But in the middle it got failed in Quality system & given the error as mentioned below.
    "Ended with Return code = 8".
    What we need to do now.
    Please Give ur valuable suggestions.
    Thanks in Advance.

    Hi,
    Pleas make sure that the target and the source for the update rules are present in the Quality sytem and are activated. if they are not present or are in inactive state then u need to transport them first and later on update rules.
    Sometimes what haapens is source and targets object for the update rules are present in the quality system and we make some changes in them in development and after making changes forget to transprt the changed request for source target and directly try to transport update rules which fails giveing an error. so jst make sure that the version in Development and the quality system for the both the source and targets objects are exactly same.
    i guess there would be one among the two cases mentioned above but still if its not the case then see wat error are u getting provide us the exact error so that we can be of more help to you.
    Assign points if applicable
    Thanks
    Puneet

  • Client Copy with return code error :W

    Hi Gurus,
    When I am copying from Prod. client 500 to Quality Client 400 in (ECC 6), I am getting
    'Program ended with error or warning, return code: W"
    can any body please give soultions for this
    Regards
    Gokul

    Hello Mr.  Bhavik,
    I had check in SCC3 client copy log and all error was got in test run, below gives details of log and examples of some table details log please help me what I can do?
    Target Client     400     
    Source RFC Dest.:     CLNT500TRP
      System Name:     TRP     
      Client in Source System     500     
    Copy Type     Remote copy
    Copy Type     Test Run     
    Profile          SAP_ALL     
    Status          Completed w. Dictionary Errors
    User          BASIS     
    Start on          27.03.2010 / 11:33:21
    Last Entry on     27.03.2010 / 12:20:36
    Statistics for this Run     
    No. of Tables         52598 of     54115
    Deleted Lines     5394087     
    Copied Lines     31175343     
    Warnings and Errors
    Table Name     Component     Package
    A001     SD-MD-CM     DDIC Error        (See SE14)
    A004     SD-MD-CM     DDIC Error        (See SE14)
    A005     SD-MD-CM     DDIC Error        (See SE14)
    A006     SD-MD-CM     DDIC Error        (See SE14)
    A007     SD-MD-CM     DDIC Error        (See SE14)
    A009     SD-MD-CM     DDIC Error        (See SE14)
    A010     SD-MD-CM     DDIC Error        (See SE14)
    A012     SD-MD-CM     DDIC Error        (See SE14)
    A015     SD-MD-CM     DDIC Error        (See SE14)
    A016     SD-MD-CM     DDIC Error        (See SE14)
    A017     SD-MD-CM     DDIC Error        (See SE14)
    A018     SD-MD-CM     DDIC Error        (See SE14)
    A019     SD-MD-CM     DDIC Error        (See SE14)
    A021     SD-MD-CM     DDIC Error        (See SE14)
    Table Information
    Table:                      A001
    - Short Description:        Not Used in Standard
    Package:                    VKON
    - Short Description:        Application development R/3 conditions
    Application Component:      SD-MD-CM
    - Short Description:        Conditions
    Delivery Class:             A
    Table Type:                 Pooled table
    Technical Information:
    Nametab of Table is Correct
    Table Exists in Database:   KAPOL
    Table Information
    Table:                      A028
    - Short Description:        Info Record for Non-Stock Item
    Package:                    VKON
    - Short Description:        Application development R/3 conditions
    Application Component:      SD-MD-CM
    - Short Description:        Conditions
    Delivery Class:             A
    Table Type:                 Pooled table
    Technical Information:
    Nametab of Table is Correct
    Table Exists in Database:   KAPOL
    Regards
    Gokul Borse
    9881843629
    Edited by: Gokul Borse on Mar 28, 2010 7:17 AM

  • Return Code error

    Hi Gurus,
    in The standard data flow . Data is coming from 2LIS_02_SCL  to cube 0PUR_C01. I want to introduce an ODS in between. So i am copying the routines in update rules for 0PUR_C01 into Custom ODS update rules
    There is the  routine :
    IF ( condition)
    Result = comm strc field
    Return code = 0
    else
    Return code = 4
    endif.
    When i try to load data to ODS. It gives me this error
    <b>The return code was set to <> 0 in routine 'r0012_0DEL_SCHEDS ', but the
    corresponding data field is updated with MOVE. You therefore can  not
    prevent the update of a single data field for certain key  values.</b>
    But the same code works perfectly for Cube update rules.
    Please guide me out of this problem. Thanks in advacne
    Regards
    satish

    Hi,
    This will not run in ODS. The reason is because the ODS is like a flat table and data is always overwirtten if the keys for the ODS is same.
    In cube however data is always added. Because of this it is possible to elimante a record if some conditions are not satisfied....
    As best practice, your first layer ODS should get all the data without any transformation, in that case u are sure you are not loosing any thing, if in future u have to change your bussiness logic your first layer will always have all the data.
    The conditions of eliminating data can then be put while doing the uploads from ODS to cube....even if tomorrow your business logic changes your ODS will still have all the data with delta's running...You can then simply change your business logic from ODS to cube...I hope you get the point..
    Assign points if u find this useful...
    Regards
    Jadeep

  • Error in using the command "loadjava"(help me !)

    When I use "loadjava" command to load the sample source code of
    XML SQL Utility for Java,the errors as below:
    C:>loadjava -u system/manager -v -r -t samp1.java
    internal error:unanticipated
    exeption:java.lang.NoClassDefFoundError:
    oracle/aurora/sqljdecl/SqljDecl
    java.lang.NoClassDefFoundError:
    oracle/aurora/sqljdecl/SqljDecl
    at oracle.aurora.server.tools.SourceFileReader.getScanner
    (SourceFileReader.java:52)
    at oracle.aurora.server.tools.SourceFileReader.getFirstName
    (SourceFileReader.java:61)
    at oracle.aurora.server.tools.LoadJava.processLoadAndCreate
    (LoadJava.java:1094)
    at oracle.aurora.server.tools.LoadJava.process
    (LoadJava.java:1021)
    at oracle.aurora.server.tools.LoadJavaMain.run
    (LoadJavaMain.java:193)
    at oracle.aurora.server.tools.LoadJavaMain.main
    (LoadJavaMain.java:49)resolvers:
    loadjava :1 errors
    C:>
    I looked for the class "oracle/aurora/sqljdecl/SqljDecl"
    by executing the SQL query as below:
    "select object_name from user_objects
    where object_name like oracle%"
    But I found only "oracle/aurora/sqljdecl/Token".
    Maybe my envirenment have some errors(I get Oracle8i from
    oracle's home by downloading)
    I can't find out the reason.This matter have troubled me for a
    long time.
    Does anyone know the reason?please tell me.thanks a lot.
    null

    plz help me !!!!!

  • Getting Errors while using IMPDP command in UNIX

    Hi All,
    My work involves Refreshing of DB with latest Data. For this i am using IMPDP command to import the data. But Every time during refresh i will get errors saying like "oracle Generated Errors Oracle Not available".
    I don't know what is the reason for getting this error, and that too my db goes down after this error. Again i will startup the db , and i will try my luck to complete the process.
    so please tell me what are the actual problems that might cause the IMPDP to be failed.
    with one advise , i have stopped my listener and done the importing, Interestingly this time IMPDP works without errors. But this is also not always working.
    But i feel that every time starting and stopping the listener is not the correct solution.
    so please help me in this regard.
    Regards
    Naveen R.

    The error i am getting is...
    UDI-03113: operation generated ORACLE error 3113
    ORA-03113: end-of-file on communication channel
    Process ID: 6208
    Session ID: 346 Serial number: 298
    UDI-03114: operation generated ORACLE error 3114
    ORA-03114: not connected to ORACLE
    [user1@node1 cpt]$
    DB version is 11.1.0.6.0
    os is.. Red Hat Linux

  • Error while using "ant" command in weblogic6.1

    Hi,
    when I try to build the build.xml file in Weblogic 6.1 using "ant" command in
    samples\ejb20\basic\ContainerManaged
    I'm getting the following error. Pls help me out
    Error
    compile_ejb:
    [javac] Compiling 4 source files to D:\bea\wlserver6.1\samples\examples\ejb2
    0\basic\containerManaged\build
    [javac] D:\bea\wlserver6.1\samples\examples\ejb20\basic\containerManaged\Acc
    ount.java:17: cannot access java.lang.Object
    [javac] bad class file: D:\JDK1.4\JRE\lib\rt.jar(java/lang/Object.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of
    the classpath.
    [javac] public interface Account extends EJBObject {
    [javac] ^
    [javac] 1 error
    BUILD FAILED
    Please Help me out
    Thanks & Regards
    Venki

    Weblogic 6.1 does not support JDK 1.4. Use 1.3

Maybe you are looking for

  • Macbook pro 17" (mid 2010) battery replacement

    Hi guys, Just a first time asking question on this forum looking for some answers. I had my MBP since new (bought in 2010 - still under applecare) and had my battery replaced first time just 4 days ago. the test of the HW in Genius bar clearly showed

  • Photoshop CS3 Extended Crash on exit

    Problem with AdobeOwl.dll according to debug report. Also Variations not working. I can send jpg of crash report if you like.

  • Killer NIC won't install Win8.1 Pro build 9431

    So.... I was just having some issues with a few websites slow loading and I saw that MSI has an updated driver package for the Killer Nic. I downloaded it and when I ran it, it told me I had to remove the existing app from program manager. I did and

  • Rating the podcasts in the iPod?

    Is it possible to use the "my rating" option with the podcasts in the iPod? I can do it in iTunes activating the column with the stars and all that stuff, but I can't do it in the iPod. Even after doing it in iTunes and synchronizing the iPod it does

  • Proposed goods issue date, material availability date

    Dear All, where to configure the goods issue date & material availability date. regards, Murugan