UploadFile using # symbol for file path and Rightfax issue
You are trying to pass the property pxAttachName as a file reference to a 3rd party Application (e.g., Rightfax). This property was configured automatically via the normal Pega "file attach" process. Your 3rd party application cannot find the file to which pxAttachName refers. When you examine the contents of pxAttachName, (or examine the error message reported by the 3rd party product) you realize that the filename has spaces, and each of those spaces has been encoded as "#20" instead of the expected "%20".
This is the error you might see from the Rightfax application:
[2014-07-15 09:05:57] Use Embedded Documents for attachment
[2014-07-15 09:05:57] Only One Embbeded Document
[2014-07-15 09:05:57] Embbeded Document: Test#20Fax#20document.doc,
[2014-07-15 09:05:57] Document Name: Test#20Fax#20document.doc
[2014-07-15 09:05:57] Pages:
[2014-07-15 09:05:57] Document attachment not found. return false. send email alert.
Steps to Reproduce
The root cause of this problem is a divergence between Industry standards and Pega internal usage. Pega uses some proprietary constructs in the reference to the attached file. In particular, we use "#20" to represent a space, different from the expected "%20". When the 3rd party product digests the file name, itt does not know how to interpret the "#20".
Preprocess the value of the filename and replace every "#20" with "%20" prior to passing the information to the 3rd party Application.
0% found this useful