Question
John Deere
John Deere
IN
John Deere
Posted: Sep 11, 2023
Last activity: Oct 20, 2023
Last activity: 20 Oct 2023 5:09 EDT
Closed
Archive Data-WorkAttach-Note
How to archive Data-WorkAttach-Note instance? Notes are getting attached as part of attachment. But after case archival not seeing any data in note attachment.
***Edited by Moderator Marije to add Capability tags**
To see attachments, please log in.
@KanchanC8890 How are you viewing the archived cases? These will not be automatically visible on the UI even if you have run D_pzArchivedCaseAttachments and D_pzArchivedCaseFeed to see data is available.
You may want to double-check how the "pyreviewarchivedcase" harness and "pyArchivedCaseAssets" section (this section is sourced by this data page: D_pzArchivedCaseAttachments) are configured.
1.If we save the attachment in Pega Database and then we archived and purged the case, then we are able to download the attachment even the data relations (Case -> Link-Attachment -> Data-WorkAttach) are deleted from primary db. In this case pzDownloadArchivedFile is getting called and it is able to download the file from secondary storage.
2.If we store the attachment in Repository (like cloudstorage) and then archived the case but did not purge it and try to download the attachment then it is able to download . In this case GetAttachmentReference activity is called . And data relationship for attachment (data relation (Case -> Link-Attachment -> Data-WorkAttach) is available in primary DB. But if we purge the case after archival then it is not able to download the attachment - you would get an exception in GetAttachmentReference activity itself. This is because after purging data relation is not available in primary DB but it is still trying to get it using Obj-Open-By-Handle.
@KanchanC8890 How are you viewing the archived cases? These will not be automatically visible on the UI even if you have run D_pzArchivedCaseAttachments and D_pzArchivedCaseFeed to see data is available.
You may want to double-check how the "pyreviewarchivedcase" harness and "pyArchivedCaseAssets" section (this section is sourced by this data page: D_pzArchivedCaseAttachments) are configured.
1.If we save the attachment in Pega Database and then we archived and purged the case, then we are able to download the attachment even the data relations (Case -> Link-Attachment -> Data-WorkAttach) are deleted from primary db. In this case pzDownloadArchivedFile is getting called and it is able to download the file from secondary storage.
2.If we store the attachment in Repository (like cloudstorage) and then archived the case but did not purge it and try to download the attachment then it is able to download . In this case GetAttachmentReference activity is called . And data relationship for attachment (data relation (Case -> Link-Attachment -> Data-WorkAttach) is available in primary DB. But if we purge the case after archival then it is not able to download the attachment - you would get an exception in GetAttachmentReference activity itself. This is because after purging data relation is not available in primary DB but it is still trying to get it using Obj-Open-By-Handle.
The issue may be down to the method used in reviewing the archived case. The archival process itself does not have an issue archiving Attachments and Notes.
The main documentation for Pega 8.7 can be found here:
The case archiving process
Retrieving archived case data
Also see
Archival Case support in Theme Cosmos
How to implement/customize archival cases in application layer built on theme cosmos
If you need further help I suggest that you open a support incident via the MSP.