Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

PRRuntimeException while uploading attachments by selecting file



PRRuntimeException while uploading attachments by selecting a file.

Error Messages

PRRuntimeException: Can't continue with file attachment. File "file://web:/StaticContent/global/ServiceExport/SS4_Application.pdf" doesn't exist

Steps to Reproduce

  1. Log in to the application
  2. Create a mashup that has the pyCaseAttachments section
  3. Select a file and upload

Root Cause

The harness did not contain a html <form> object.
The file upload processing from pyCaseAttachments and the browse button uses an existing <form> object to post the file upload using the multipart or form-data encoding. When there is no <form> object in the document object, no file is not sent in the reloadSection call. 


Perform the following local-change:

Enable the WorkArea (inner harness) on the Advanced tab in the custom harness when using pyCaseAttachments. This adds a <form> object to the harness and allows the file upload when using the browse button to locate and select a file to upload. 



Published February 12, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us