Bug with interval and leap years

select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' year as dt from dual;
ORA-01839: date not valid for month specified
01839. 00000 -  "date not valid for month specified"
*Cause:   
*Action:
select to_date('2012-feb-29','yyyy-mon-dd') + interval '2' year as dt from dual;
ORA-01839: date not valid for month specified
01839. 00000 -  "date not valid for month specified"
*Cause:   
*Action:
select to_date('2012-feb-29','yyyy-mon-dd') + interval '3' year as dt from dual;
ORA-01839: date not valid for month specified
01839. 00000 -  "date not valid for month specified"
*Cause:   
*Action:
select to_date('2012-feb-29','yyyy-mon-dd') + interval '4' year as dt from dual;
29-FEB-16 00:00:00
select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' day as dt from dual;
01-MAR-12 00:00:00
select to_date('2012-feb-29','yyyy-mon-dd') + interval '1' month as dt from dual;
29-MAR-12 00:00:00The problem exists in 10.2.0.4 and 11.2.0.3
Edited by: Sanjeev Chauhan on Feb 29, 2012 9:20 AM

>
considering this answered is simply sweeping an issue under the rug.
>
No - the question was answered. Did you read the reference that Paul cited? That is an ISO document and defines the standard.
The section he referred to is General Rules 3b and states:
>
b) Arithmetic is performed so as to maintain the integrity of the datetime data type that
is the result of the <datetime value expression>. This may involve carry from or to the
immediately next more significant <datetime field>. If the data type of the <datetime value
expression> is TIME, then arithmetic on the HOUR <datetime field> is undertaken modulo
24. If the <interval value expression> or <interval term> is a year-month interval, then the
DAY field of the result is the same as the DAY field of the <datetime term> or <datetime
value expression>.
c) If, after the preceding step, any <datetime field> of the result is outside the permissible
range of values for the field or the result is invalid based on the natural rules for dates and
times, then an exception condition is raised: data exception—datetime field overflow.
Note: For the permissible range of values for <datetime field>s, see Table 11, "Valid values for fields
in datetime items".
>
The relevant part of the above for year-month is
>
then the
DAY field of the result is the same as the DAY field of the <datetime term> or <datetime
value expression>.
>
DAY FIELD OF THE RESULT IS THE SAME AS THE DAY FIELD OF THE <DATETIME TERM>.
That is, for 'year-month' the day cannot change and, per section c, if it does an exception is raised.
That is how Oracle implements it. If the other databases implement it incorrectly then they have the problem not Oracle. The question was regarding Oracle's implementation so the question for Oracle is answered.
That document was printed in 1994 but the current document, ISO-8601 2004, does not alter it at all.
http://dotat.at/tmp/ISO_8601-2004_E.pdf

Similar Messages

  • Select  timestamp interval on leap year

    Hello,
    i tried to select a timestamp interval on leap year with following action
    select to_timestamp_tz('20000301 +0100','yyyymmdd tzhtzm')+INTERVAL '-3' YEAR from dual;
    The result is an error: ORA-01839: date not valid for month specified
    the year 2000 is a leap year.
    There is the same result with 36 months.
    Oracle Version 10.1.0.4
    What is wrong on it. Is there a workaround?
    Thanks and Greetings
    Silke Viet

    since you are moving 3 years into the past, the year 1997 is not a leap year, that seems to cause it to throw that error:
    SQL> select to_timestamp_tz('20000301 +0000','yyyymmdd tzhtzm') + INTERVAL '-3' YEAR from dual;
    TO_TIMESTAMP_TZ('20000301+0000','YYYYMMDDTZHTZM')+INTERVAL'-3'YEAR
    01-mar-1997 00:00:00.000000 +0000
    1 row selected.
    SQL> select to_timestamp_tz('20000301 -0100','yyyymmdd tzhtzm') + INTERVAL '-3' YEAR from dual;
    TO_TIMESTAMP_TZ('20000301-0100','YYYYMMDDTZHTZM')+INTERVAL'-3'YEAR
    01-mar-1997 00:00:00.000000 -0100
    1 row selected.
    SQL> select to_timestamp_tz('20000301 +0100','yyyymmdd tzhtzm') + INTERVAL '-3' YEAR from dual;
    select to_timestamp_tz('20000301 +0100','yyyymmdd tzhtzm') + INTERVAL '-3' YEAR from dual
    ERROR at line 1:
    ORA-01839: date not valid for month specified
    SQL>

  • How  to modified automatic batch number with plant and current year details

    hi all,
            i want tomodify automatic batch number with plant and current year details. if any one understand plz explain.
    thanks,
    radhakrishna.

    Hi,
    I am not clear what is u r requirement exactly?
    I  mean you don't want automatic batch no or modify the batch no.  with plant means and Current year details means.  Can give details more
    Regards
    Ganesh

  • Function CALCULATE_DATE and  leap year

    Hi,
    I need to substract some months from a date. I tried to use the standard function CALCULATE_DATE but it has a proble with leap years. If I execute it with the following parameters:
    CALL FUNCTION 'CALCULATE_DATE'
         EXPORTING
              days        = '0'
              months      = '-24'
              start_date  = '20080229'
         IMPORTING
              result_date = X.
    The value that I get in X is '00000000' because 2006 isn't a leap year. The problem is that the function doesn't know how to deal with this. The solution is very easy, buy if it's possible I would like to use a standard function.
    Do you know if there are any standard function that has no problems with leap years?
    Thanks and kind regards,
    Marcela.

    Hi Marcela,
    Welcome to SDN.
    You can try this FM <b>RP_CALC_DATE_IN_INTERVAL</b>.
    data: wa_date like sy-datum.
    call function 'RP_CALC_DATE_IN_INTERVAL'
             exporting
                  date      = '20080229'
                  days      = 0
                  months    = 24
                  signum    = '-'
                  years     = 0
             importing
                  calc_date = wa_date.
    Hope this will help.
    Regards,
    Ferry Lianto

  • ICal and Leap Year

    I had set up a yearly recurring event for a birthday notification for Feb 29 (Leap Year) with a Alarm notification 6 days in advance of the day so I could be sure to send out a card in time, etc. etc. However, because there is no Feb 29 in calendar year 2010 it appears that the Alarm notification isn't working. Is this a bug or did I possibly do something wrong?

    Yes, I noticed this the other day but didn't make a connection with the US holidays. Odd quirk.

  • Date Picker with Previous and Next Year Options

    Hi All,
    I am implementing a date picker in my application which is tied to an attribute of type PA0001-BEGDA. Date Picker as such works fine but navigating to previous year and Next year options are not available. User has to go month by month to different years if they have to navigate.
    Is this the normal behavior of the Date Picker or am I missing something else to get the previous and Next year icons in the Date Picker.
    Thanks,
    Nagarajan.

    hmm..I tried using the select options and it did give the same date picker with the previous and Next navigation icons...The only problem with the select options is that its a single field which has the range and can accept multiple values too...
    I tried to figure out how the date picker that we use in the custom application and the one in Select Options differ but no luck...Does this ring any bell?
    Thanks,
    Nagarajan.

  • Compiler bug with generics and private inner classes

    There appears to be a bug in the sun java compiler. This problem was reported against eclipse and the developers their concluded that it must be a problem with javac.
    Idea also seems to compile the example below. I couldn't find a bug report in the sun bug database. Can somebody tell me if this is a bug in javac and if there is a bug report for it.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=185422
    public class Foo <T>{
    private T myT;
    public T getT() {
    return myT;
    public void setT(T aT) {
    myT = aT;
    public class Bar extends Foo<Bar.Baz> {
    public static void main(String[] args) {
    Bar myBar = new Bar();
    myBar.setT(new Baz());
    System.out.println(myBar.getT().toString());
    private static class Baz {
    @Override
    public String toString() {
    return "Baz";
    Eclipse compiles and runs the code even though the Baz inner class is private.
    javac reports:
    Bar.java:1: Bar.Baz has private access in Bar
    public class Bar extends Foo<Bar.Baz>
    ^
    1 error

    As I said in my original post its not just eclipse that thinks the code snippet is compilable. IntelliJ Idea also parses it without complaining. I haven't looked at the java language spec but intuitively I see no reason why the code should not compile. I don't think eclipse submitting bug reports to sun has anything to do with courage. I would guess they just couldn't be bothered.

  • Time dimension wizard and leap year error?

    I've created a time dimension (rolap) using the wizard. I started with 2006 for 6 years. I used a fiscal calendar, 445, fiscal year start = jan 1, and month start = monday.
    The first 2 months of 2008 are ok. However, OWB ends the third month on March 31, 2008 and it should be March 30, 2008. It starts the next month on April 1, 2008 which is a Tuesday.
    I've tested with 10.2 and 11.1.
    Anybody seen this or have a solution?
    Garrett

    Garrett
    The start day that you specified as being Monday is in fact the week start day and not the month start day. In most cases these will both always land on the day of week you specify, but there are exceptions.
    The Fiscal year is split into Quarters and the start of each Quarter is based on the date of the start of the year, so if you started the year at Jan 6th, then the 2nd quarter will start on April 6th, and the third on July 6th and so on.
    In your case, an extra day is inserted in the 5th week of the first quarter so that the quarter can start at the correct date

  • Report with Current and Prior Year

    I'm looking to create a report with fields Report Group, Year, and Actual Dollars.  Where the Year includes the current year and the prior year (NOT user input).  The format would be:
    Report Group | | Year | | Actual Dollars
    Product Revenue | | 2008 | | $100
    Product Revenue | | 2009 | | $200
    etc
    Sounds simple enough but I'm having difficulty getting it to work since I need the Year field in the report (and I'm new to WebI).
    Thanks for your help,
    Dave

    Hi David,
    I'd suggest you use a Query filter (or a report filter) to retrieve only rows that match this criteria on years. Since you need two values, I may have to use the filtering operator 'in list'
    Difference between those two is query filter will only retrieve to values where year = 2008 or 2009 from the datasource (so if you want to change the year values, you will have to refresh document), while report filters are active on the query output (which means that no refresh from the DB is required if you need to change values), which might bring a better experience if you need interactivity in the report. Moreover, if interactivity is important and you are working with WebI XI 3.1 SP2, you can embed these report filters into Input Control, and command the filter from a graphical widget like check boxes, to let user control which years he wants to view/ compare in the table (or chart).
    Hope that helps,
    David.

  • Just got some bugs with Dock and Dashboard

    Hi!
    Been using my mac for 1 year now. Sudden some bugs just came by.
    I was using two widgets; "Ordbok" and "TriTrans".
    When I now try to use TriTrans I get this: http://bildr.no/view/75953 and I can't enter a search.
    When I try to use Ordbok i get this: http://bildr.no/view/75954
    I tried to make a new account just to see if I got the same problem and I sudden did. Then I went back to my main account and deleted the Dock, Desktop and Dashboard pref files (in Library/Preferences). Rebooted and tried again. Didn't work.
    When I made a new account I also noticed that the Dock had an icon with the "question mark" (this ting: ?). When I hovered it I got: "iMovie". Some icons to the left I got a working "iMovie HD". Where does the iMovie (wannabe) icon come from? (It was a new account).
    Anyways, someone now how to fix some of these?
    Thanks!
     MacBook   Mac OS X (10.4.9)   2 Ghz Intel Core Duo, 1 Gb RAM

    Ahh, that solves my widget problem. Thanks!
    Btw, someone who got any idea of the "question mark" icon I get in the dock when deleting the Dock config file or add new user? It says "iMovie" but beside it I got the "iMovie HD" icon, working.

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Possible bug with TREAT and EXECUTE IMMEDIATE

    Hello, i experienced a strange behavior which seems to be a bug.
    Consider following definitions:
    CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT (
      DummyProperty NUMBER
    ) NOT FINAL;
    CREATE OR REPLACE TYPE T_Child UNDER T_Base (
      AnotherDummyProperty  NUMBER
    CREATE OR REPLACE FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS
    BEGIN
      -- some specific validation is done here, not important for the example
      RETURN NULL;
    END;
    CREATE OR REPLACE PROCEDURE ValidateIt (iValue T_Child) IS
      lResult NUMBER;
    BEGIN
      -- The principle used here is that each client can have its own implementation of validation function, and when it does not exist, we do not care.
      -- In reality we put functions and procedures into packages, I narrowed it to a minimal working example.
      BEGIN
        EXECUTE IMMEDIATE 'BEGIN :lResult := SpecificValidation(:iValue); END;'
          USING OUT lResult, IN iValue;
      EXCEPTION WHEN OTHERS THEN
        IF INSTR(SQLERRM, 'PLS-00201') = 0 THEN
          RAISE;
        END IF;
      END;
    END;
    CREATE OR REPLACE PROCEDURE Process (iValue T_Base) IS
    BEGIN
      -- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails
      -- This does not work for some reason.
      -- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child.
      ValidateIt(TREAT(iValue AS T_Child));
    END;
    CREATE OR REPLACE PROCEDURE Process2 (iValue T_Base) IS
      lChild  T_Child;
    BEGIN
      -- The only difference here is that result of TREAT is saved to a variable.
      -- This works as expected.
      lChild := TREAT(iValue AS T_Child);
      ValidateIt(lChild);
    END;
    In reality it is much more complex, I narrowed it to a minimal working example.
    Now when running this:
    DECLARE
      lItem T_Base := T_Child(5, 2);
    BEGIN
      BEGIN
        -- This call will end up with PLS-00306 error.
        Process(lItem);
        dbms_output.put_line('Process completed successfully.');
      EXCEPTION WHEN OTHERS THEN
        dbms_output.put_line('Exception when calling Process.');
        dbms_output.put_line(SQLERRM);
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      END;
      BEGIN
        Process2(lItem);
        dbms_output.put_line('Process2 completed successfully.');
      EXCEPTION WHEN OTHERS THEN
        dbms_output.put_line('Exception when calling Process2.');
        dbms_output.put_line(SQLERRM);
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      END;
    END;
    then call to Process fails with PLS-00306 on EXECUTE IMMEDIATE.
    The only difference between Process and Process2 is that in Process2, result of TREAT is saved to a variable of type T_Child.
    Is this behavior documented somwhere or is it a bug?

    That's interesting. I would say it is, or should be, a bug.
    Also interesting is, when I re-write your example to eliminate dynamic SQL and instead rely on dynamic method dispatch, the problem goes away... first, the changes:
    drop type T_Child;
    drop type T_Base
    CREATE OR REPLACE TYPE T_Base FORCE AS OBJECT ( 
      DummyProperty NUMBER 
    ) NOT FINAL
    CREATE OR REPLACE TYPE T_Child UNDER T_Base ( 
      AnotherDummyProperty  NUMBER 
    create or replace type T_Base_Processor as object (
      dummyProperty    number
    , static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor
    , member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    , member PROCEDURE ValidateIt (iValue T_Child)
    , member PROCEDURE Process (iValue T_Base)
    , member PROCEDURE Process2 (iValue T_Base)
    ) NOT FINAL
    create or replace type T_Another_Processor under T_Base_Processor (
      overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    create or replace type body T_Base_Processor
    is
      static FUNCTION GetClientProcessor(iClientId varchar2) RETURN T_Base_Processor IS
    BEGIN
      return    case
            when upper(iClientId) = 'ADMINISTRATOR' then
                new T_Another_Processor(null)
            else
                new T_Base_Processor(null)
            end;
    END;
      member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER IS 
    BEGIN 
      -- some specific validation is done here, not important for the example 
      dbms_output.put_line('T_Base_Processor.SpecificValidation');
      RETURN NULL; 
    END; 
      member PROCEDURE ValidateIt (iValue T_Child) IS 
      lResult NUMBER; 
    BEGIN 
      -- No more need for dynamic SQL, instead rely on dynamic dispatch
      lResult := SpecificValidation(iValue);
    END; 
      member PROCEDURE Process (iValue T_Base) IS 
    BEGIN 
      -- in fact we know that iValue must be of typ T_Child, it is checked using IS OF ( ) operator and exception is raised if this check fails 
      -- This does not work for some reason. 
      -- It fails in EXECUTE IMMEDIATE with PLS-00306. I don't really get why, because ValidateIt accepts a value of type T_Child and it passes it to the validation procedure, which also expects value of type T_Child. 
      ValidateIt(TREAT(iValue AS T_Child)); 
    END; 
      member PROCEDURE Process2 (iValue T_Base) IS 
      lChild  T_Child; 
    BEGIN 
      -- The only difference here is that result of TREAT is saved to a variable. 
      -- This works as expected. 
      lChild := TREAT(iValue AS T_Child); 
      ValidateIt(lChild); 
    END;
    end;
    create or replace type body T_Another_Processor
    is
      overriding member FUNCTION SpecificValidation (iValue T_Child) RETURN NUMBER
    is
    begin
      -- some other specific validation is done here, not important for the example 
      -- You could even call the overridden method as well using
      --   treat(self as T_Base_Processor).SpecificValidation(iValue)
      dbms_output.put_line('T_Another_Processor.SpecificValidation');
      RETURN NULL; 
    end;
    end;
    And again with slight modifications, your test block:
    DECLARE 
      lProcessor T_Base_Processor := T_Base_Processor.getClientProcessor('JOE');
      lItem T_Base := T_Child(5, 2); 
    BEGIN 
      BEGIN 
        -- This call no longer throws a PLS-00306 error. 
        lProcessor.Process(lItem); 
        dbms_output.put_line('Process completed successfully.'); 
      EXCEPTION WHEN OTHERS THEN 
        dbms_output.put_line('Exception when calling Process.'); 
        dbms_output.put_line(SQLERRM); 
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE); 
      END; 
      -- Demonstrate dynamic dispatch by choosing a different processor
      lProcessor := T_Base_Processor.getClientProcessor('ADMINISTRATOR');
      BEGIN 
        lProcessor.Process2(lItem); 
        dbms_output.put_line('Process2 completed successfully.'); 
      EXCEPTION WHEN OTHERS THEN 
        dbms_output.put_line('Exception when calling Process2.'); 
        dbms_output.put_line(SQLERRM); 
        dbms_output.put_line(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE); 
      END; 
    END; 
    T_Base_Processor.SpecificValidation
    Process completed successfully.
    T_Another_Processor.SpecificValidation
    Process2 completed successfully.
    Gerard

  • Enormous bug with intel and hdv

    dear Friends,
    I discovered a bug testing my octocore intel with compressor.
    Unfortunately, encoding a file from hdv to m2v, an intel processor is 4 times slower than a non-intel processor,
    ...only in this case...!
    An 1,30 minutes clip needs 12 minutes with a power book and the same file needs 45 minutes with an octocore 3.00 ghz...i tried other solutions swapping the disks (system and storage) from one machine to another but the problem remain in the same machine....
    ...awaiting for an apple resolution....

    What version of Compressor are you using? I seem to recall some post about this awhile back...don't remember if an update helped...I think it did.

  • Wierd bug with menus and subtitles on Intel mac

    I have found DVDSP4 will not let me place buttons on a menu!! The mouse clicks don't do anything in the menu viewer. I suspect some system incompatibility is this is also why I can't drop a subtitle into the subtitle streams either with DVDSP4 enev though it works fine on DVDSP3 on my G5 machine. Has anyone seen this strange bug before?
    I use a Wacom Intuos tablet, have a four-core Intel MacPro with 4GB of RAM, and use a LOT of graphic applications (FC5, Motion, Maya, Poser, Vue, Illustrator, Photoshop, and many molecular modeling packages)
    Has anyone seen this problem before (and is there a remedy)?
    Thanks
    tom hsu

    Do you have the Universal Version of DVD SP? I know you mentioned it is academic but did not recall if you have the proper one for the Intel Macs(?)

  • Very strange bug with AIR and native process (Windows 7, EXE)

    Hello to everyone!
    The situation is:
    I've made an AIR Application, inside of that is running a native process - EXE file.
    I'm using Flash CC as IDE and tried to use compile that as EXE with AIR 2.6 and 3.6 - results are same.
    So I've insert inside a checking if Native Process is supported or not and the Native process is supported all the time.
    When I've just installed the application and run it - the very first attempt is good - everything is working as a must: internal EXE is called by my Application with necessary parameters as many time as I'm need.
    However if I'll close the App and then will run it again - internal EXE is not starting at all, doesn't depends on number of attempts to re-start of the App.
    So only way is to uninstall, install it back and then you'll be one more session of successful internal EXE-requests, till the next re-start of the App.
    That's it.
    I've tried to "google it" but unsuccessful. Probably the bug is very rare.
    Help me please?
    Update: at compilation with Flash CC IDE it's working all the time with no any issues.
    Update-2: when I'm running installator-EXE, there is going a notification "Same version is installed, etc." and then selected "Run Now" - there is also working with no problems.

    Well, I've found the solution and answer by myself and here is it please:
    In case with same situation as above you need to add just one line in your AS3-code
    nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;
    And you will be happy so much

Maybe you are looking for