Loading

FIELD_INTEGRITY_EXCEPTION During Document Generation in OmniStudio

게시 일자: Dec 10, 2025
상세 설명

When initiating document generation, the process may fail with the following error message:

Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, Reference Object ID: id value of incorrect type: 00TVZ0000026M9Z2AU: [ReferenceObjectId]

This issue occurs when the specified Context/Object ID is associated with an object that is not supported for document attachment within Salesforce. Document generation does not allow attaching files to certain entity types.

The following objects are not supported for use as Context/Object ID in document generation:

  • Event
  • Task
  • DocumentTemplate
  • DocumentTemplateSection
  • DocumentTemplateContentDoc
  • DocumentTemplateToken
  • DocTemplateSectionCondition
  • DocumentClause
  • GeneratedDocument
  • GeneratedDocumentSection
  • DocumentEnvelope
  • ContractDocumentVersion
  • ContractDocVerContentDoc
  • ContractDocVersionSection
  • UserEsignVendorIdentifier
  • DocumentRecipient
  • ObjectStateActionDefinition
  • ObjectStateTransitionAction
  • Knowledge__kav

Screenshot 2024-10-11 at 5.14.46 AM.png

솔루션

This behaviour is functioning as designed. To avoid the error, ensure the Context/Object ID used for document generation belongs to a supported object that permits document attachment.

 
Knowledge 기사 번호

002890901

 
로드 중
Salesforce Help | Article