Support Article
Error message coming on screen when uploading file
SA-23640
Summary
When user attempts to attach a file, "This action is not allowed as it is outside the current transaction." message appears on the screen.
Error Messages
This action is not allowed as it is outside the current transaction.
Steps to Reproduce
1) Create a FilePath custom control using tools api.
2) Create a AttachFile Button custom control using tools api.
3) Add the FilePath and AttachFile controls in section.
4) Run the use case and try uploading file to see the error message.
Root Cause
A software use or operation error : The custom controls created by the user in pre Pega 7 (PRPC 5.5) for the application. This custom controls has unhandled Save operations and Commits. So the error occurs.
Resolution
Perform the following local-change:
1) Replace the custom FilePath control with Out-of-the-box (OOTB) FilePath control.
2) Replace AttachFile Button with OOTB pxButton and configured onclick to RunActivity to run the custom activity to upload the file.
Published May 25, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.