Kbase P32436: Progress is attaching files in the wrong sequence to outgoin
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/11/2003 |
|
Status: Unverified
FACT(s) (Environment):
Windows
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
Progress is attaching files in the wrong sequence to outgoing emails
Application generates a file, attaches it to an email and sends it.
Email #1 has report #2 attached. Email #2 has report #1 attached to it.
CAUSE:
This issue is caused by a combination of transaction scoping and locked records. When the first file is locked it then attaches the next available file to the current email.
FIX:
This issue can be debugged by generating a log file to see when and how your application is processing the information. Using the OUTPUT TO FILE command with the APPEND feature you can generate a log file to see at what times your application is attempting what kind of processing. Then reviewing this log file you should be able to determine when which files are being accessed or commands fired. Make sure to make your output code that will generate the log entries clear and use time stamps.
Sample Syntax;
OUTPUT TO c:\temp\testlog.txt APPEND.
DISPLAY TIME [process name] [file being processed] [other useful information].
CLOSE OUTPUT.
By using the above code a key points in your applications structure you can get a clear road map of your applications processing.