Loading

Document Generation LWC clmOsGeneratePdfMergeDocument Throws Error When Used in OmniScript

Fecha de publicación: Apr 8, 2026
Descripción

When using the clmOsGeneratePdfMergeDocument LWC to merge PDFs in OmniScript, users might encounter one of the following errors:

Error Message 1:

This page has an error. You might just need to refresh it.  
[Cannot read properties of undefined (reading 'match')]  
Failing descriptor: {markup://omnistudio:clmOsGeneratePdfMergeDocument}  

Error Message 2:

This page has an error. You might just need to refresh it.  
[Cannot read properties of undefined (reading 'indexOf')]  
Failing descriptor: {markup://omnistudio:clmOsGeneratePdfMergeDocument}  
These errors occur because two required parameters for the PDF Merge LWC are not being set in the OmniScript.

 

 

Solución

To resolve this issue, ensure the following parameters are set in the OmniScript using a Set Values element:

  • attachFileFormat = pdf (case-sensitive)
  • documentViewer = PDF (case-sensitive)

By setting these parameters, the clmOsGeneratePdfMergeDocument LWC will function correctly without throwing errors.

Número del artículo de conocimiento

005239393

 
Cargando
Salesforce Help | Article