I am getting error u is not a function

0
I used the "ZipHandling" module from MarketPlace. I used this to generate Zip file from multi pdf. For that I created microflow and in it I generate the multiple pdf and add to list and pass that list to java action "ZipDocuments" of "ZipHandling" module. But it gives error :   An error occurred while executing an action of QMS.MultiPDF_Inspection_SSRS_Page.actionButton2: u is not a function Error: An error occurred while executing an action of QMS.MultiPDF_Inspection_SSRS_Page.actionButton2: u is not a function    at http://localhost:8080/mxclientsystem/mxui/mxui.js?638884470145822618:7:171085    at ye (http://localhost:8080/mxclientsystem/mxui/mxui.js?638884470145822618:21:6830)    at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?638884470145822618:21:6731)    at k (http://localhost:8080/mxclientsystem/mxui/mxui.js?638884470145822618:5:126140)     I used "ZipHandling" module in blank project and it's working fine. I applied it in microflow. This microflow and module I applied in my existing project, but it gives an error.   can we achieve functionality without module of marketplace? If you have solution please provide it.
asked
2 answers
0

Hi Vijay, error "u is not a function" usually means the ZipDocuments action is getting the wrong type of input. Make sure you’re passing a list of committed FileDocument objects, not raw PDF data.

 

Check that your microflow creates and saves the PDFs as FileDocument entities before adding them to the list. Also, verify you’re passing that list correctly to the ZipDocuments Java action.

 

Try testing with a simple list of existing FileDocuments to confirm if the issue is with PDF generation or the Zip action itself.

 

Hope this helps! :)

answered
0

Hi Vijay Lakhani

 

You can use MergeMultiplePDFs action which is available in Community Commons it allows to merge multiple lists of PDFS into one PDF.

 

I Hope this will Help you :)

answered