lFileName := STRSUBSTNO(TextXXX,DELCHR(FORMAT(WORKDATE),'=','/')); ltextPath := TEMPORARYPATH + lFileName; LogFile.CREATE(ltextPath); FileMgt.DownloadToFile(ltextPath,SalesSetup."Logfile Path"+lFileName);
An I/O exception occurred during the operation.With the debugger, the error is from the call to function DownloadToFile().