Kbase P176225: WRITE-XML method overlays existing XML file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/3/2010 |
|
Status: Unverified
SYMPTOM(s):
WRITE-XML method overlays existing XML file
Large XML output cut off when using WRITE-XML
Existing (large) XML file gets overlaid instead of overwritten
FACT(s) (Environment):
Solaris
Sun Solaris Intel 64-bit
OpenEdge Category: Language (4GL/ABL)
CAUSE:
There were two processes sending output to the same file. OE handles input and output operations by sending the output to the system and the system handles buffering the output to files when multiple processes are writing to the file.
This had the effect of writing the initial larger file for one process then the output from the second process overlaid the first process' results until it was finished. When the file was opened/viewed it looked like one XML file ended and the original (larger) file continued till its end, giving the remaining XML an abrupt appearance as if it were starting in the middle.
FIX:
Use unique file names for XML output