# Does Pega 8.7 supports FileStorageManager and RAFile classes in Pega Cloud?

**URL:** <https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469>\
**Category:** General\
**Tags:** pega-cloud, java-and-activities, financial-services, system-administration, 8-7-2, lead-system-architect, case-management\
**Created:** [November 7, 2022, 12:52pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469 "2022-11-07T12:52:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiranKumarE17562150](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@KiranKumarE17562150](https://forums.pega.com/u/KiranKumarE17562150)\
**Post date:** [November 7, 2022, 12:52pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/1 "2022-11-07T12:52:26Z")

</div>

Hi,

We are using pega v8.7.2 and in Pega OOTB Activity ‘ **Code-Pega-eForm.WriteEFormToFile** ’ FileStorageManger & RAFile classes are referred, however when try do private edit & save the activity it is throwing errors as below. Any inputs??

com.pega.pegarules.storage.FileStorageManager cannot be resolved to a type

com.pega.pegarules.storage.fs.resadapter RAFile cannot be resolved to a type

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [November 7, 2022, 1:09pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/2 "2022-11-07T13:09:22Z")

</div>

@ETIKELAK this may be due to a known BUG-724022.

You can find details in the [Resolved Issues d](https://docs-previous.pega.com/873-patch-resolved-issues-0)ocumentation

 ![res.png](https://pega1.discourse-cdn.com/pega/original/2X/0/064731f65ff7cffe48087ed6f5a28e2544a4ff53.png)

The issue is fixed in 8.7.3 - please can you run the update and test there?

---

<div class="post-metadata">

**Author:** ![JayeshS3](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@JayeshS3](https://forums.pega.com/u/JayeshS3)\
**Post date:** [April 17, 2023, 2:32pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/3 "2023-04-17T14:32:47Z")

</div>

@MarijeSchillern

I am getting these errors in 8.7.5

OutputStreamWrapper cannot be resolved to a type  
com.pega.pegarules.storage.fs.resadaptor.OutputStreamWrapper cannot be resolved to a type

Java at step: 9 line: 13  
com.pega.pegarules.storage.fs.resadaptor.RAFile cannot be resolved to a type

I scanned the Hotfix repository, I do not see anything missing. Kindly advice!

Regards,

Jayesh

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [April 17, 2023, 2:36pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/4 "2023-04-17T14:36:08Z")

</div>

@JayeshS3 I think it would be best if you log a support incident for this via the [MSP](http://msp.pega.com/).

Please can you provide the INC ticket ID here so that we can help track it with you?

---

<div class="post-metadata">

**Author:** ![Naveen\_Nagaraj](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/naveen_nagaraj/32/11635_2.png) [@Naveen\_Nagaraj](https://forums.pega.com/u/Naveen_Nagaraj)\
**Post date:** [April 17, 2023, 5:51pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/5 "2023-04-17T17:51:17Z")

</div>

@MarijeSchillern INC-269401 has been logged for this issue.

---

<div class="post-metadata">

**Author:** ![StevenY7](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@StevenY7](https://forums.pega.com/u/StevenY7)\
**Post date:** [May 16, 2023, 4:20pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/6 "2023-05-16T16:20:13Z")

</div>

Hi @MarijeSchillern

I am seeing these similar errors in 8.8.2.

Is there any update on the incident raised above INC-269401 or would it be best for me to raise an INC too?

Thank you.

 ![Java Errors.png](https://pega1.discourse-cdn.com/pega/original/1X/189a60e73461a5af2e65a698f637a65ad13308e5.png)

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [May 16, 2023, 4:47pm UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/7 "2023-05-16T16:47:43Z")

</div>

@StevenY7 the above ticket was logged for 8.7.2. I’ve checked for the status and the ticket was closed at the start of May.

For that particular scenario the Root Cause was found to be a configuration issue.

The Solution was to replace the below java code in the java step in the activity ‘pyAttachAsPDF’

**Replace below block:**  
com.pega.pegarules.storage.fs.resadaptor.RAFile destinationFile = null;  
java.io.OutputStream output = null;  
destinationFile = new com.pega.pegarules.storage.fs.resadaptor.RAFile(LetterStoragePath, Filename);  
output = new com.pega.pegarules.storage.fs.resadaptor.OutputStreamWrapper(destinationFile);

**With:**  
java.io.OutputStream output = null;  
if (LetterStoragePath.startsWith(“file://”)) {  
output = new PROutputStream(LetterStoragePath);  
} else {  
output = new java.io.FileOutputStream(LetterStoragePath);  
}

The user noted that along with that change they also replaced:

destinationFile = new com.pega.pegarules.storage.fs.resadaptor.RAFile( LetterStoragePath,FileName );

**With:**

getAbsolutepath().

We would suggest that you check the code to see if you can make the changes. The previous bug referenced related to Internal API’s which were excluded from visibility from activity assembly code, causing assembly errors in the legacy java code.

The fix was already implemented in 8.8: BUG-724023 (see the [readme](https://docs-previous.pega.com/platform/resolved-issues?q=724023) for INC-224268)

I would suggest that you log a support incident if you need further help with your code.

---

<div class="post-metadata">

**Author:** ![StevenY7](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@StevenY7](https://forums.pega.com/u/StevenY7)\
**Post date:** [May 17, 2023, 9:18am UTC](https://forums.pega.com/t/does-pega-8-7-supports-filestoragemanager-and-rafile-classes-in-pega-cloud/3469/8 "2023-05-17T09:18:18Z")

</div>

Thanks @MarijeSchillern for your speedy response.

Thanks for details above, I tried to manipulate based on that but seems our implementation is slightly different and probably need some Pega Support.

I’ll raise an INC for further assisstance, thanks for your help.
