Parsing Excel (.xlsx) is not happening due to the error : Parse failed for the uploaded file. Cannot find ZIP signature within 4096 bytes

I have a requirement to parse case attachments and save them into Pega. To accomplish this, I followed these steps:

  1. Opened the case attachment to retrieve attachment details from the Data-WorkAttach-File table.

  2. Set the necessary parameters for pxGetAttachmentContent to obtain the file stream and filename.

  3. Invoked the pxCreateFile activity to generate the file at the following location:
    file://web:/StaticContent/global/ServiceExport/

  4. Provided the file path and template information to the pxParseExcelFile activity to parse the file.

However, I encountered the following error:
“Parse failed for the uploaded file. Cannot find ZIP signature within 4096 bytes.”

Could someone please help me resolve this issue?

Hello @VenkateshC17599704

I dint understand the statement “parse case attachments and save them into Pega“. Could you please elaborate?

Meanwhile you can look at the below pega support post as well

Parsing .xlsx with pxParseExcel "Parse failed for the uploaded file.Cannot find zip signature within the first 4096 bytes" Error | Support Center ?

Regards

JC

Could you please confirm if the attachment is stored as part of cloud repository or database?