Question

1
Replies
640
Views
SaadullahK Member since 2014 5 posts
Virtusa
Posted: 1 year ago
Last activity: 11 months 3 weeks ago

Error while generating Excel - Access denied to explicittempdir

This is Pega 8.2.2 version

This is occuring for a new on-prem Pega installation.

When generating a simple Excel file, using the pxGenerateExcelFile OOTB activity, the below exception is observed in the logs:

Failed to generate excel...This is in fact a different exception java.nio.file.AccessDeniedException with message: C:\CIA_8686\explicittempdir\StaticContent\global\ServiceExport\FileName.xlsx

The exact failure is in Step 4 of this activity in the below Java code snippet:

java.io.OutputStream os = new PROutputStream(new PRFile(xlFileName));

Note that the attached logs contain app developer comments added for DEBUGGING purposes only

Steps to Reproduce
Use pxGenerateExcelFile to generate an Excel from a simple Clipboard Page

Error Message
Failed to generate excel...This is in fact a different exception java.nio.file.AccessDeniedException with message: C:\Tomcat\explicittempdir\StaticContent\global\ServiceExport\FileName.xlsx

***Edited by Moderator: Lochan to include version information***

Low-Code App Development Data Integration Java and Activities
Share this page LinkedIn