Loading

Document Generation LWC clmOsGeneratePdfMergeDocument Throws Error When Used in OmniScript

Veröffentlichungsdatum: Apr 8, 2026
Beschreibung

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.

 

 

Lösung

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.

Nummer des Knowledge-Artikels

005239393

 
Laden
Salesforce Help | Article