Hi Cindy,

As the description of the error says, it "may" return additional 
information in the result about why it could not delete an entry. You 
specified the IGNOREERRORS option which says to not return any error 
information when trying to delete the directory.  Section "8.5 File System 
(FS) Service", sub-section "8.5.13 DELETE", in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV says the following 
about the IGNOREERRORS option:

IGNOREERRORS specifies that errors encountered (recursively) deleting 
children should not be returned. By default, all errors encountered while 
(recursively) deleting children will be returned in the result buffer. 

 If you remove the IGNOREERRORS option, then you'll get the operating 
system error code in the result.  On Windows, you can use command "net 
helpmsg <OS Error Code>" to get more information about the operating 
system error code.

For example, on a Windows system, if I try to delete a directory that is 
in use (because from a command prompt I changed to that directory), and 
don't specify the IGNOREERRORS option, I'll get STAF RC 10 (Base operating 
system error), and OS RC 32 (File in use error) in the result.

C:\>mkdir mytestdir

C:\>cd mytestdir

C:\mytestdir>STAF local FS DELETE ENTRY C:\\mytestdir RECURSE IGNOREERRORS 
CONFIRM
Error submitting request, RC: 20

C:\mytestdir>STAF local FS DELETE ENTRY C:\\mytestdir RECURSE CONFIRM
Error submitting request, RC: 20
Additional info
---------------
Name         RC OS RC
------------ -- -----
C:\mytestdir 10 32


C:\mytestdir>start

C:\mytestdir>net helpmsg 32

The process cannot access the file because it is being used by another 
process.


C:\mytestdir>

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   "Zhu, Cindy" <cindy....@ihs.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   08/21/2013 12:05 PM
Subject:        [staf-users] Wold like to get more error details on STAF 
API return      code 20



Hi,
 
I had this very simple STAF command to delete an entry “STAF machine FS 
DELETE ENTRY D:\CoreICExtractor RECURSE IGNOREERRORS CONFIRM”.
 
I got this return error “Error Submitting Request, RC: 20”.
 
The web page lists some information on the API return code 20 as follows,
 
“This indicates that there was an error while trying to delete a file or 
directory. Note: Additional information regarding which file or directory 
could not be deleted may be provided in the result passed back from the 
submit call.”
 
There was no much information back. How can I get more error details?
 
I appreciate you help.
 
Thanks,

Cindy
 
 
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to