LrTasks.execute not getting correct return code

Hi all,
I'm writing an Export Filter Provider that, in the postProcessRenderedPhotos function, calls an external Python script like this:
            exitStatus = LrTasks.execute(command)
            log:debug("Task returned, exit status is " .. exitStatus)
            if exitStatus ~= 0 then
At the end of my Python script, I use
sys.exit(0)
and have verified that running of the script indeed returns 0 by running it in the shell and then checking the return code
echo $?
returns 0
Whenever I run this script from my Export Plugin, I always get an exitStatus of 256.  Any ideas on what I'm doing wrong?  Thanks!

I would first assure that in the Lightroom case as well, the script is executing up to the sys.exit statement as well - I suspect it is not (but don't really know...).
I have called python scripts from plugins both successfully and unsuccessfully, although I can't be certain I've checked the actual return code from the sys.exit command.
Consider trying an ultra-short script which writes to a file and exists with a code - make sure you can read the file in your plugin before assessing the return code.
If still a problem, report as bug on Adobe feedback site of course:
http://feedback.photoshop.com/photoshop_family/topics/new
Rob

Similar Messages

  • Not getting correct Tax calculation - due to "Ship to party region code"

    When we are making Sales order   using (UTXJ cond.)
    Origin Country----
    IN
    Delivering Plant Region----
    24
    Ship To Party region----
    24   (maintained in customer 1 address)                    
    Tax Classification Customer------J
    Tax Classification Material----
    1
    We are getting correct   Tax calculation for tax code AD (4% + 1%)
    But when we are using
    Origin Country----
    IN
    Delivering Plant Region     -
    24
    Ship To Party region----
    06     (maintained for customer 2 address)                     
    Tax Classification Customer------ J
    Tax Classification Material----
    1
    We are not getting correct   Tax calculation for same tax code AD (4 %( JIN2) + 1 %( ZIN2)). Instead we are getting only 1%..

    difference in tax codes used for sales purpose is just the fact that  Ship to party region is different.
    Ship To Party region----
    24   (up)
    Ship To Party region----
    06    (Bihar)
    For 06 it is not calculating correct  values

  • Not getting the return value of a program though it has no  errors

    public static String giroReturnFileDate(String strType)throws IOException{
              try{
                   SimpleDateFormat getFormatDate = new SimpleDateFormat("yyMM");
                   Date date = new Date();
                   String str = getFormatDate.format(date);
                   System.out.println("Current Date is : "+ str);
                   System.out.println("Fetching the Giro file now");
                   if(strType.equalsIgnoreCase("WPD") || strType.equalsIgnoreCase("ISTD")) {
                   FileReader inputFileReader = new FileReader("giro2itcs_"+strType+".txt");
                   ArrayList list = new ArrayList();
                   ArrayList list1 = new ArrayList();
                   System.out.println("Reading the file");
                   BufferedReader inputStream = new BufferedReader(inputFileReader);
                   String inLine = null;
                   String str1 = null;
                   while((inLine = inputStream.readLine()) != null && inLine.length() < 2)
                        list.add(inLine);
                   System.out.println("Control Record for giro2itcs_"+strType+"is:"+ inLine);
                   inputFileReader.close();
                   inputStream.close();
                   for (int i=0; i<inLine.length(); i++ )
                        str1 = inLine.substring(19,23);
                   System.out.println("date of the transaction is:"+str1);
                   if (str .equals(str1)){
                        System.out.println("giro2itcs_"+strType+".txt file is created today");
                        return "true";
                   else{
                        System.out.println("giro2itcs_"+strType+".txt file is not created today");
                        return "false";
                   }// end of if
                   return "test";
              }// end of try
              catch(Exception e) {
              System.out.println("The Exception is ::::::::::::::"+e);
    return "one";
    }//end of giroReturnFileDate(...) method
    }//end of of the class
    main method is seperate. this program compiles fine but am not getting the return value for this. none of the return values. plzzz help me.

    can you send me the code complete one ...
    i will debug and solve the problem
    [email protected]
    By publishing your email address you are likely to get loads of spam.

  • HT201324 I am not getting the verification code sent to my device ?

    I am trying to get my iCloud keychain up and running and I do not get the verification code which has to be sent to my phone - the details are all correct I am just missing something.

    Hello Ianpb2908,
    If you are having issues receiving the verification SMS when setting up your iCloud Keychain, you may find the information and steps outlined in the following article helpful, in particular this portion:
    If you didn't receive the verification code via SMS
    Make sure that you have a strong cellular network connection on your phone.
    Make sure that your phone number can get SMS messages. To check, ask someone to send you a text message.
    Make sure that the correct phone number is associated with your account:
    On your iPhone, iPad, or iPod touch, tap Settings > iCloud > Keychain > Advanced. (In iOS 7, tap Settings > iCloud > Account > Keychain.) Make sure the phone number under Verification Number is correct. If not, enter another phone number. 
    On your Mac, choose Apple menu > System Preferences. Click iCloud, then click Options next to Keychain. (In OS X Mavericks or earlier, click iCloud, then click Account Details.) Make sure the phone number under Verification number is correct. If not, enter another phone number.
    If you can't access a device that has iCloud Keychain enabled, contact Apple Support and verify your identity to get help setting up iCloud Keychain.
    Get help using iCloud Keychain - Apple Support
    Sincerely,
    - Brenden

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • TS1292 How do I get my gift card redeemed when I ca not get the redemption code ?

    How do I get my gift card redemmed when I can not get the redemption code ?

    If you aren't get the 'none' option on the payment details screen then do you owe iTunes anything or have any pre-orders/subscriptions due : http://support.apple.com/kb/TS5366 ?

  • J2EE Server is not getting started exit code -11113

    Hi,
    J2EE Server is not getting started, the exit code is -11113. When I tried to start J2EE Enginer Visual Administrator its giving below error.
    Unable to lookup connection default.
    https://SAPXI:8101/msgserver/text/logon returned empty list of connection parameters.
    Please help.
    Thanks,
    Nishant

    Go to the following directory.
    /usr/sap/<SAPSID>/<Instance_Name>/j2ee/admin
    and start the go.bat.
    Java Add-In You cannot use the Default login. Instead, perform the following steps:
    a) Choose New.
    b) Enter a display name and choose Direct Connection to a dispatcher Node.
    c) Choose Next.
    d) Enter at least the following:
    ■ User Name: J2EE_ADMIN
    ■ Host: <host_name> of the J2EE engine
    ■ Port: <P4_Port>
    The following convention applies for the port:
    5<Instance_Number_of_SAP_J2EE_Engine>04. For example, if
    your J2EE instance number is 15, the P4port is 51504.
    e) Choose Save and connect with your new login account by choosing
    Connect.
    f) Enter the password for the J2EE_ADMIN user and choose Connect.

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • Not getting correct Record...

    Hi All,
    I want to Display Some record from table but i m not getting proper data. in my table there three records but it giving mr only last record..
    Tables:mast,stpo,vbap,mara.
      DATA: BEGIN OF struct occurs 100,
        MATNR type VBAP-MATNR,
        END OF struct.
      DATA: BEGIN OF struct1 occurs 100,
            stlnr type mast-stlnr,
            idnrk type stpo-idnrk,
            menge type stpo-menge,
            nlfzt type stpo-nlfzt,
            roms1 type stpo-roms1,
            EXTWG type MARA-EXTWG,
          END OF struct1.
      data: itab4 like VBAP occurs 1 with header line.
      data: itab1 like MARA occurs 1 with header line.
      data: itabstpo like stpo occurs 1 with header line.
      select * from mara into table itab1.
      select * from VBAP into table itab4.
      loop at struct.
      ind = sy-tabix.
      read table itab4 with key vbeln = struct-vbeln.
    if sy-subrc = 0.
       move itab4-MATNR to struct-MATNR.
      endif.
      modify struct index ind transporting  matnr.
    endloop.
    select * from mast into corresponding fields of table struct1 where matnr = struct-matnr and  WERKS = company
                and stlan = '5' .
    select * from stpo into table itabstpo.
    // this loop is firing three time and data also showing me at breakpoint but at tha time of printing it is giving me only one record..
    loop at struct1.
    loop at itabstpo where stlnr = struct1-stlnr.
    move itabstpo-menge to struct1-menge.
    MODIFY struct1 INDEX SY-TABIX.
    move itabstpo-nlfzt to struct1-nlfzt.
    MODIFY struct1 INDEX SY-TABIX.
    move itabstpo-roms1 to struct1-roms1.
    MODIFY struct1 INDEX SY-TABIX.
    move itabstpo-idnrk to struct1-idnrk.
    MODIFY struct1 INDEX SY-TABIX.
    endloop.
    endloop.
    loop at struct1.
      write: / struct1-roms1, struct1-nlfzt ,struct1-menge ,struct1-idnrk.
      endloop.
    pls help...
    Regards,
    yunus

    Hi,
      i have seen ur code but it is not clear what exactly u want ; can u please clarify ;
    There is no data in struct.
    hence ur code is not getting executed.
    what u can do it
    first insert data into struct that is <b>VBELN</b>
    <b>at the 1st loop at struct</b>
    what u can do is loop at another itab so u can insert data into struct
    Mail me @
    [email protected]
    Message was edited by: Manoj Gupta
    Message was edited by: Manoj Gupta

  • Not getting correct data for newly added field in 0FI_AR_4

    Hi to all,
    I have added SPART field from VBRK table into 0FI_AR_4 datasource .
    Based on join BSID-VBELN = VBRK-VBELN to get SPART from VBRK table.
    but i found that some VBELN are not maintained in VBRK table, But are Present in BSID table, so i am not get SPART for which no
    VBELN maintained in VBRK.
    Please can any one tell me, what condition should i take to get SPART from VBRK to 0FI_AR_4.
    as i knew that only BSID-VBELN = VBRK-VBELN sufficent to get data for SPART.
    or any different condition i required.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana

    Thanks for reply,
    i have written code for that like that.
    SELECT SINGLE * FROM VBRK
    WHERE VBELN = <fs_d>-VBELN .
    if sy-subrc = 0.
    <FS_D>-SPART = VBRK-SPART.
    endif.
    ENDLOOP.
    according to it result are not capturing all SPART from VBRK. as it only matches the VBELN which are same in both VBRK and BSID table.
    so how to get SPART from VBRK if same VBELN is not maintained in both tables.
    Please can you tell me CODE for that.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Feb 1, 2011 4:53 AM

  • Get RFCOPENEX return code long text

    Hi All.
    I want make an external connection with RFCOPENEX to SAP, but how can I get the message text to the return code directly from SAP?
    THX, Nils

    Hi,
    you can use Function Module MESSAGE_TEXT_BUILD  as:
      CALL FUNCTION 'MESSAGE_TEXT_BUILD'
        EXPORTING
          msgid               = g_msgid
          msgnr               = g_msgno
          msgv1               = g_msgv1
        IMPORTING
          message_text_output = g_message.
    Message text will be in g_message.
    regards,
    Neha

  • Getting the return code of an exec-called program

    I'm trying to simply call an .EXE (Win32 console-) application from LabView 5, which works fine with EXEC. The problem is, that I cannot query the return code of the program afterwards. (The error output is always 0, no matter what the program has returned.) Anyone knows a nice short solution to that? Thanks!

    Hi Ritter,
    Somehow I think I may be missing something.
    (after looking around)
    What version of LV are you using?
    I am guessing 5.1 or earlier.
    LV 6 EXEC has standard output available.
    If you are using LV 5.1.1 or so, I can only recomend the the re-directed solution.
    If file system is issue how about using a complete file spec starting with "c:"? Do you expect to be running on a machine that does not have a c drive?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • COHV not get correct production order

    Hi
        I get a odd case...
        CO40 convert the planned order into production order  and get correct user defined status profile..
        COHV convert the planned order into production order but miss the user defined status profiel...
    btw,I use the same production order type in both COHV/CO40...
        It seems there is a bug in COHV..Do you have any suggestion?thanks..
    COHV:
    Function   Convert planned order
    Execute Function  Execute function in the backgournd /Execute function immediately
    Order type:PP01(the same as the one in CO40.PP01 has a user defined status profile)
    Collective Order:Convert entire collective order

    Hi,
        Any one know how to configure COHV for Planned order conversion and confirmation for backflush ?thanks
    hi,i finally get the solution..thanks everyone...OPJ2..
    Edited by: Monst Yang on Oct 30, 2011 11:21 PM

  • Not getting correct values in ODS

    BW gurus
      when i do delta loads for ODS i am getting strange values into my ods.How ever if i do full loads on ods ,i am getting correct values(same values as RSA3).
    1 .Any idea why i am getting wrong values if i do delta   loads .
    2.If i make this ods as full load(currently delta) ,there are already few reports on this ods ,Will there be any effect on those reports?

    Riccardo,Tony
    Thanks for your quick reply.
    I have in ods as follows
    Asset  fisper   qty
      1     006.2006   2
      1     007.2006   3
    Now i have added 2 more assets to period 6
    in RSA3 is ok as follows
    Asset  fisper   qty
      1     006.2006   4
      1     007.2006   3
    In ods with delta load is  not ok as follows
    Asset  fisper   qty
      1     006.2006   9
      1     007.2006   3
    In ods with full load is OK as follows
    Asset  fisper   qty
      1     006.2006   4
      1     007.2006   3
    any advice greatly appreciated

  • Not Getting the Promotion Code for Trade In and Up program

    I was lured into buying a new phone from Verizon due to the trade in and up program.  From the website it says I could get a minimum $100 for my old phone when I purchased/activated a new smartphone.  I activated my new device and have been waiting for more than 5 business days for the promo code but it never arrived. I called both Verizon customer service and Verizon recycle program but they cannot help much since they can only escalate the issue.  Now I really doubt if this is a legitimate program?  Does anyone else have the same issue? Did you contact anyone who can help you?

    Karen,
    I was trying to take advantage of the "Trade In and Trade Up" promotion.  I was supposed to get a promotion code 5 days after activating a new phone.  Almost 3 weeks after activating a new phone I hadn't gotten a promotion code.
    Anyway I finally got the promotion code after 4 phone calls (2 to verizon, 2 to the recycling program).  So now I'm on to the next step and have submitted my phone trade in information.  We'll see if I have the difficulties others have described on the forums here.
    However, even if everything goes smoothly I've already wasted almost an hour of my time following up on something that should have just happened.  I would imagine most Verizon customers find it annoying to have their time wasted.
    Regards...

Maybe you are looking for