Loading

Document Generation LWC clmOsGeneratePdfMergeDocument Throws Error When Used in OmniScript

게시 일자: Apr 8, 2026
상세 설명

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.

 

 

솔루션

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.

Knowledge 기사 번호

005239393

 
로드 중
Salesforce Help | Article