CopyFile error


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Grant Foraker on October 13, 2011 at 08:07:34: Uploaded files: 1

See screen shot. The one user who does billing at this customer is getting an occassional CopyFile error of 22/183. Which I interpret as "Destination/Already Exists". The code, the same in five billing programs, is ...


CopyTheDocument:
CLOSE (1) ! RELEASE PRINTER
INPUT (#) FROMPATH$ ! GET pdfFactory name

LET FROMPATH$ = STRIP(FROMPATH$)
LET ARCFILE$ = WBBILL$ + '.PDF'
LET TOPATH$ = STRIP(ZPDFPATH$) + 'FY' + PDFFY$ + '\' + PDFSRCE$ + '\' + STRIP(ARCFILE$)
LET COPYFLAGS = 0 + 2048 + 4096 ! LOCAL, OVERWRITE, CREATE DIRECTORY

Print (CopyFile = FROMPATH$, TOPATH$, COPYFLAGS)
GOSUB CopyGetResult
IF FuncError NE 1
LET MBMSG$ = 'Local Copy Error:' + STR(FuncError) + '/' + STR(FileError)
MSGBOX(MBMSG$)
OPEN (51) 'LAF'
PRINT (51) 'Local Copy error'
LET MESSAGE$ = STR(FuncError)
PRINT (51) 'Func: ';MESSAGE$
LET MESSAGE$ = STR(FileError)
PRINT (51) 'File: ';MESSAGE$
PRINT (51) 'From: ';FROMPATH$
PRINT (51) 'To: ';TOPATH$
CLOSE (51)
ENDIF
RETURN

The overwrite flag is set, so there shouldn't be an "already exists" issue. The destination file name shouldn't already exist as each bill is given a unique sequence number.

Only three of the five programs are run regularly, one of the three almost daily. With only five errors in 20+ days it's been hard to pin down a cause. As yet, I can't tell if the failure is one the first FileCopy of the run or in the middle.

User has XP SP3, pdfFactory 3.5, and Comet 448/16. Server is Windows 2008.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]