Kbase P66444: Report Engine: Cannot open status file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/17/2009 |
|
Status: Verified
SYMPTOM(s):
Report Engine: Cannot open status file
Using aderb/_prntrb2 interface
String passed to RB-STATUS-PARAMETER contains Tilde ("~")
Report Engine error message reports pathname without tildes ("DOCUME~1" is reported as "DOCUME")
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
Windows
CAUSE:
The cause of this issue is that Progress uses the tilde ("~") as an escape character.
When passing a string containing a tilde to the Report Engine, the processing of the string sees this and replaces the tilde and the character following it by whatever instruction they convert to (usually nothing).
FIX:
Replace the single tildes with double ones:
REPLACE(<source>,"~~","~~~~").
Double tilde is the escape sequence that forces a single tilde to be taken as a literal character, so it will be treated properly.