DBMS_LOB.FILEOPEN(dir, fname) gives non-existent dir or file error

Hello!
I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
temp_bfile := bfilename('temp_dir', in_filename);
where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
CREATE DIRECTORY temp_dir AS 'F:\';
Next when I do a
DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
I get an exception ORA-22285:non-existent directory or file.
What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
Mona

Not sure if the UTL_FILE package is the same but if you don't set the "utl_file_dir" variable in the INIT.ORA file prior to calling the FOPEN procedure you will get a similiar error. There may be an equivalent parameter for the DBMS_LOB package.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mona Marathe ([email protected]):
Hello!
I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
temp_bfile := bfilename('temp_dir', in_filename);
where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
CREATE DIRECTORY temp_dir AS 'F:\';
Next when I do a
DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
I get an exception ORA-22285:non-existent directory or file.
What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
Mona<HR></BLOCKQUOTE>
null

Similar Messages

  • ORA-22285 - non-existent directory or file for FILEOPEN operation

    Hello
    I want to insert the xmldata from a xmlfile to the a table, with this scirpt:
    #!/bin/sh
    set -x
    for i in `find . -name "dspevent*.xml"| awk -F"/" '{print $NF}'`
    do
    echo $i
    fname_old=$i
    fname_neu=`ls $i | awk '{print "OK_"$0}'`
    cat $i | sed 's/aps://g' >$fname_neu
    echo $fname_neu
    rm $i
    #insert_xml $fname_neu
    INSERT_XML=`sqlplus -s username/passwort@database <<EOF
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', '$fname_neu'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    EOF
    `
    done
    But the problem is, that I have always this error message:
    ORA-22285 -> non-existent directory or file for FILEOPEN operation
    I'd create a direcotrie and over utl_file.fopen I can write a file to this directorie, but this works over the path, not over the directory name. the utl_file_dir parameter was also set to the correct path. Whats wrong or how can I debug this problem?
    thanks.
    roger

    - the name of the directory is correct.
    - how can I check, that the user can use the directory?
    - in this logfile you can see that, the file name will replace correctly:
    ./dspevent.sh
    + awk -F/ {print $NF}
    + find . -name dspevent*.xml
    + echo dspevent_db_20110503030448_10641.xml
    dspevent_db_20110503030448_10641.xml
    fname_old=dspevent_db_20110503030448_10641.xml
    + awk {print "OK_"$0}
    + ls dspevent_db_20110503030448_10641.xml
    fname_neu=OK_dspevent_db_20110503030448_10641.xml
    + sed s/aps://g
    + cat dspevent_db_20110503030448_10641.xml
    + echo OK_dspevent_db_20110503030448_10641.xml
    OK_dspevent_db_20110503030448_10641.xml
    + rm dspevent_db_20110503030448_10641.xml
    + sqlplus -s username/passwort@db
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    INSERT_XML= PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    ERROR at line 15:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    + echo dspevent_db_20110502190712_10641.xml
    dspevent_db_20110502190712_10641.xml

  • Non existent hard drive files?

    This may sound stupid but ever since i updated with 1.1.1 it says i have 4gb of 'other' on my iphone.
    It also erased my itunes. I have 238mb of photos.
    What does 'other' represent? Im referring to the little itunes bar at the bottom of the screen when syncing your iphone?
    Please help.

    I had this happen once with the 1.01 software. A Restore fixed it.

  • Error while using dbms_lob.fileopen

    Hi,
    I am getting the below error when executing the code given below,
    CODE:-
    DECLARE
    l_bfile BFILE;
    l_data BLOB;
    BEGIN
    DBMS_LOB.createtemporary (lob_loc => l_data,
    CACHE => TRUE,
    dur => DBMS_LOB.CALL);
    l_bfile := BFILENAME('/home/lt/write','MIA00137.inp');
    DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
    END;
    ERROR:-
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at line 12
    I am using the directory path instead of using the directory name, which is my requirement. How can I overcome the above error.
    Thanks
    RKR

    You should use a directory object not a file system directory.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5007.htm#sthref6399
    Bye Alessandro

  • Dbms_lob.fileopen gives ORA-22288. Can open the same file with utl_file.

    What could cause the following behaviour:
    Database 11gR2
    declare
       l_amt        number := dbms_lob.lobmaxsize;
       l_dst_loc    clob;
       l_dst_offset number := 1;
       l_lang_ctx   number := dbms_lob.default_lang_ctx;
       l_src_loc    bfile;
       l_src_offset number := 1;
       l_warning    number;
    begin
       l_src_loc := bfilename('ODS_SERVER_DIRECTORY', '_CIVKD_ASU.CSV');
       dbms_lob.createtemporary(l_dst_loc, true);
       dbms_lob.fileopen(l_src_loc, dbms_lob.file_readonly);
       dbms_lob.loadclobfromfile(l_dst_loc
                                ,l_src_loc
                                ,l_amt
                                ,l_dst_offset
                                ,l_src_offset
                                ,dbms_lob.default_csid
                                ,l_lang_ctx
                                ,l_warning);
       commit;
       dbms_lob.fileclose(l_src_loc);
       dbms_output.put_line(substr(l_dst_loc, 1, 200));
    end;
    ORA-22288: file or LOB operation FILEOPEN failed
    ORA-06512: in "SYS.DBMS_LOB", line 805
    ORA-06512: in line 31
    22288. 00000 -  "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
               information.  Also, verify that the file or LOB exists and that
               the necessary privileges are set for the specified operation. If
               the error still persists, report the error to the DBA.However opening and reading the exact same file succeeds when using utl_file.
    declare
       l_file utl_file.file_type;
       l_regel varchar2(4000);
    begin
       l_file := utl_file.fopen('ODS_SERVER_DIRECTORY', '_CIVKD_ASU.CSV', 'R');
       -- Haal de volgende regel op
       utl_file.get_line(l_file, l_regel);
       dbms_output.put_line(l_regel);
       utl_file.fclose_all;
    end;So it seems the file is available and accessable by the database.
    It's the first time we run into this particular error and it's one of the first 11gR2 instances so maybe there is something 11g specific we don't know about?

    Some progress made. It turns out the directory object points to a shared drive. It's a windows server and Oracle runs as Local System. I always thought that it was impossible to read anything from a shared drive in this situation. Apparently in some situations you can using utl_file but not usign dbms_lob.

  • Problem in creating new versions for existing DIR using CV01N

    I am working in SAP ERP 6.0 EHP 4.0 system.
    I have problem in creating new versions for existing DIR using CV01N
    I create a DIR version 00 with functional location and mpd cycles. Then when i try to create a new version by copying the contents created from already created document.I change the MPD cycles in the new version and save it.
    once when i display the first document created the mpdcycle specified in version 01 is copied to the 00 version.
    The document is inconsistent where versioning of document doesnot work properly wrt MPDCYCLE and MP HEADER.
    The problem which i found was the document identification guid remains the same for all the document versions getting created.
    The same is working fine in SAP ERP6.0 EHP3.0 sytem.
    Please someone help me in resolving the above issue.
    Regards,
    Prasad.B

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • JFileChooser throws NullPointerException when in a non-traversable Dir

    Hi all
    I think I found a bug of JFileChooser. Unless one of you knows the issue and the corresponding workaround.
    It occurs when one extends JFileChooser and overrides isTraversable() to dissalow the navigation to specific
    directories. When the user then uses the JComboBox of the JFilechooser dialog to navigate to a non-allowed
    directory and from there tries to again select a not allowed directory, the following Exception gets thrown
    within the JFileChooser.showDialog method.
    To reproduce this try:
    import java.io.File;
    import javax.swing.JFileChooser;
    public class   yxJFileChooser
           extends   JFileChooser
        public boolean isTraversable(File _f)
                 if  (_f == null)       return false;
            else if (!_f.isDirectory()) return false;
            String fileToCheck = _f.getAbsolutePath().toLowerCase();
            if (fileToCheck.startsWith("c:\\windows")) return true;
            else                                       return false;
    }the try:
             yxJFileChooser fc = new yxJFileChooser();
             int ret = fc.showDialog(null,"try the combo twice. Choose both times a non traversable dir");Once you have chosen for the second time a non-valid directory (using the combo) you will get a NullPointerException:
    Is this indeed a Java VM bug or am I doing something wrong?
    My operating system is Windows XP service pack 2 and the java version I am running this with is:
    java version "1.6.0-rc"
    Java(TM) SE Runtime Environment (build 1.6.0-rc-b102)
    Java HotSpot(TM) Client VM (build 1.6.0-rc-b102, mixed mode)

    Here the Exception:
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxAction.actionPerformed(Unknown Source)
    at javax.swing.JComboBox.fireActionEvent(Unknown Source)
    at javax.swing.JComboBox.setSelectedItem(Unknown Source)
    at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
    at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.Dialog$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Unknown Source)
    at javax.swing.JFileChooser.showDialog(Unknown Source)
    at yx.filearchiver.sh.getFileNameFromUser(Unknown Source)
    at yx.filearchiver.gui.pnl4ActionListener.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • Dbms_lob.fileopen failed though utl_file.fgetattr works fine

    Hi ,
    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod.
    I am working on loading MS .doc into Oracle.
    I have created dir using following code:
    BEGIN
    EXECUTE IMMEDIATE
    'CREATE OR REPLACE DIRECTORY TEST_SN1 AS'||
    '''\\inecg-sdc11\XYZ_ABC2\DT-AUTOMATION\DUMMY_12LNEW''';
    END;
    I have verified the existence of file(Status.doc) using utl_file.fgetattr using the following code:
    DECLARE
    ex BOOLEAN;
    flen NUMBER;
    bsize NUMBER;
    BEGIN
    utl_file.fgetattr('TEST_SN1', 'Status.doc', ex, flen, bsize);
    IF ex THEN
    insert into test_msg values('File Exists');
    ELSE
    insert into test_msg values('File Does Not Exist');
    END IF;
    insert into test_msg values('File Length: ' || TO_CHAR(flen));
    insert into test_msg values('Block Size: ' || TO_CHAR(bsize));
    commit;
    END;
    the code succuessfully returns the msg 'File exists' along with the file length .
    I have also tried opening the file using utl_file and dbmc_lob package+
    SQL> DECLARE
    2 vInHandle utl_file.file_type;
    3 vNewLine VARCHAR2(250);
    4 BEGIN
    5 vInHandle:= utl_file.fopen('TEST_SN1', 'Status.doc', 'R');
    6 utl_file.fclose(vInHandle);
    7 END;
    8 /
    PL/SQL procedure successfully completed.
    But the following code still produces error ORA-22288:+
    This is what the output was:
    SQL> declare
    2 l_bfile bfile;
    3 begin
    4 l_bfile := bfilename( 'TEST_SN1', 'Status.doc' );
    5 dbms_lob.fileopen( l_bfile );
    6 dbms_lob.fileclose( l_bfile );
    7 end;
    8 /
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at line 5
    Even though the file exists and Oracle is able to identify the file, I cant figure out what is
    stopping my code to open that file.
    Please help me to figure out the problem.
    For more undertstanding ,You can also refer the my conversation with Tom Kyte at following link:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:636223754581#2815252100346024210
    Thanks a million tons!
    Regards
    Saurabh Nolakha,
    Bangalore

    Hi,
    Thanks for your quick response.
    The file Status.doc which I am trying to access is in remote server at path *\\inecg-sdc11\XYZ_ABC2\DT-AUTOMATION\DUMMY_12LNEW* .Though the path is not mapped to the WINDOWS system where Oracle is installed but I am able to access the file(open and read) from that system.
    Do you mean that I need to map the network drive to that system?*
    if yes, then why UTL_FILE is working perfectly?*
    Also, in my requirement, theres a high possibility that the path(of remote server) may change in future(if mapped).So ,is there any alternative for that?*
    Please provide your useful suggestions
    Regards
    Saurabh Nolakha

  • Kde3 packages: "non existant prefix '' for kdelibs3"

    I have no ide what happend but today I'm getting this error for all packages for kde3:
    checking whether make sets $(MAKE)... yes
    checking for kde-config... /opt/kde/bin/kde-config
    configure: error: /opt/kde/bin/kde-config --prefix outputed the non existant prefix '' for kdelibs.
    This means it has been moved since you installed it.
    This won't work. Please recompile kdelibs for the new prefix.
    make: *** No targets specified and no makefile found. Stop.
    although it is working if done with as root user with argument '--asroot' (but I must add to all PKGBUILD string: '--with-qt-dir=/opt/qt')
    what happend ? what did I screw up ?
    Last edited by zyghom (2008-11-19 23:09:33)

    azleifel wrote:I've come across this as well.  Like mforce said, it should work if makepkg is run as root (don't forget to add the --asroot switch to the makepkg command).
    Yeah, that worked for me, but it's an indication that some work needs to be done. One needs to AVOID running this as root, and so I think thats going to be the first challenge for the amarok1 maintainer. The ONLY thing we should use root for is the actual installation, not the compilation.

  • Ok my iphone 3g touch screen is not responding, i can recieve calls and it can charge and connect to itunes, but i cannot go any further than using the home button or the power button, but the slide feature and touch feature is non existent

    ok my iphone 3g touch screen is not responding, i can recieve calls and it can charge and connect to itunes, but i cannot go any further than using the home button or the power button, it is only the slide feature and touch feature that has become non existent.  Also, i have a f'ew cracks in my screen for a while now and it was running smoothly up until saturday when i sat on it applying large amounts of pressure to the phone screen.  Is there a way i can fix this myself without having to recover my phone to factory settings or wasting 50 bucks to get it fixed??

    Hi Dire Dawa,
    If the screen on your iPhone isn't responding, you may find the following article helpful:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Regards,
    - Brenden

  • ACE# sh script code - Error: Called API is invalid or non-existant

    What is this ??
    ACE# dir disk0:
       2846 Jun 14 2010 15:40:33 NORDICID_PROBE
    ACE# sh script code NORDICID_PROBE
    Error: Called API is invalid or non-existant
    Hardware is ACE-4710-K9 and software A3(2.7)
    The probe itself is functioning ok according to show probe detail.
    However show script script_name probe_name -counters all remain at zero for some reason. This wasn't the case on the previously use ACE software.
    To my recollection the command show script code has worked successfully before on the same ACE software. Not 100% sure though, but it definitely worked on the previous software we ran on the ACE.

    Hi Timo,
    You could be hitting CSCtu33866 (see
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtu33866 for more details)
    If you are really hitting this bug, a reboot should fix the issue.
    I hope this helps
    Daniel

  • Create a folder if it is non-existent

    Hello,
    I would like to create a repertory if it is non-existent.
    Is this somebody has an example?
    Thank you
    "I'm sorry for my English, I do not speak it well"

    falkpl wrote:
    > Look in File I/O>>Advanced File Functions. There are two functions,
    > "List Directory" and "New Directory" which will allow you to do what
    > you want. First search a location for the subdirectory and if it does
    > NOT exist create it using "new directory" these VIs are nice and even
    > allow you to set privledges and attributes.
    An even simpler solution: Just execute the "New Directory" function and
    ignore any error returned.
    Or more correctly, use "File Info" and look at the error code. If no
    error is returned and the directory output is true, you are fine. No
    error and directory output is false means you have a conflict with a
    file already existing. An error output means you can go and try to
    create the dir.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Issue with sales order stock that is referencing a non-existing sales order

    We have an issue with sale order stock.
    Due to user error we have ended up with a negative quant of sales order stock in a bin. Further the error was due to mis-keying of sales order number. Hence this negative quant is referencing a sales order that does not exist.
    We need to get rid of this quant.
    I thought of cycling this quant off as a solution. And hence replicated the scenario in the test system. I was able to create a TO to cycle it off but cannot clear the differences from 999 . The error I get while trying to do this is "SD document not in database or has been archived" . This error is true since the sales order actually does not exist. So cycling it off did not work.
    Can anyone suggest how we can get rid of this negative quant of sales order stock ?
    Thanks

    Hi,
    You said that your user mistyped the SO number and it resulted in a -quant. In which transaction was it possible? If I give a non existing no. SAP doesn't allow me to book.
    If I were you I would check both in WM & IM what the user had done...step-by-step...
    Negative quant comes to existance in interim storage type if we book e.g. a GI. It should have started in IM...how was your user be able to do that??? If it was possible cannot you reverse the IM booking?
    (...if all else fails...cannot you create a SO document with external number assignment with the same number?...)
    BR
    Csaba
    Edited by: Csaba Szommer on Jun 24, 2008 8:31 PM

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Creating a Socket to non-existent host very slow

    Why does it take a long time to try to create a Socket to a non-existent host on a Linux machine? On a Windows machine it takes approx. 20 sec., but when I try it on a Linux machine it takes approx. 180 sec.!
    Here's the code I'm using (very simple):
    import java.io.IOException;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class SocketCreator {
    public static void
    main(String[] args) {
    long _begin = System.currentTimeMillis();
    try {
    new Socket("10.10.10.10", 2000);
    } catch (UnknownHostException exception) {
    exception.printStackTrace();
    } catch (IOException exception) {
    exception.printStackTrace();
    long _end = System.currentTimeMillis();
    System.out.println("It took: " + (_end - _begin) + " ms.");
    Some additional info:
    - Java2 SDK 1.1.x, 1.3.x and 1.4.x
    - Windows XP
    - Red Hat 7.2, 9

    This is really a Linux system-wide problem. If you wanted to fix this in Java, you might even have to resort to JNI to sent yourself a signal and interrupt your system call (the system call is connect()).
    Unfortunately, the page give by "man tcp" on Linux is often not kept up-to-date with the many options available in /proc/sys/net/ipv4 .
    Also, access to the local LAN will often give a quick "No route to host" message.
    To test the long-timeout, you have to access a remote IP that does not exist. For instance, on Linux, if you start two xterms, and on the firxt you enter:
    telnet 66.120.89.14
    and on that second your enter
    netstat -an
    You will see something like this line:
    tcp 0 1 192.168.5.18:32836 66.120.89.14:23 SYN_SENT
    So now you know that the socket is sitting in SYN_SENT.
    Now, if you look on a nice, full man page of tcp, like
    http://www.die.net/doc/linux/man/man7/tcp.7.html
    You will see
    tcp_syn_retries
    The maximum number of times initial SYNs for an active TCP connection attempt will be retransmitted. This value should not be higher than 255. The default value is 5, which corresponds to approximately 180 seconds.
    Back on the second xterm, try:
    % cat /proc/sys/net/ipv4/tcp_syn_retries
    5
    I bet you got five also. You could turn it down to two (decreases time to around 20 seconds).
    You could try this as root:
    # sysctl -w net.ipv4.tcp_syn_retries=2
    or even add this command to your /etc/rc.d/rc.local file

Maybe you are looking for