Question

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***

Comments

Keep up to date on this post and subscribe to comments

Pega
August 21, 2019 - 11:42am

Hi,

How many tomcat instances do you have in your VM?

Could you please check the value of 'ExplicitTempDir' in the 'conf/context.xml' and whether do you have the required permission to access.

Thanks