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.

ナレッジ記事番号

005239393

 
読み込み中
Salesforce Help | Article