About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Question & Answer
Question
Is there any built-in way that a PE workflow can detect if an attachment is null?
Cause
A user gets "Unable to use the specified VWAttachment library type 0 to determine the loading class that implements the operations." error with the Component Manager step. This error occurs because a CE_Operations operation requires a document attachment during runtime to do its operation, but the attachment is invalid/null or not available. In this scenario, the affected work item would be sent to the malfunction queue. If you do not override the default malfunction submap in your workflow, the affected work item would be sent to the Conductor queue as it is the default malfunction queue.
Answer
To check if the attachment is null, you can carry out the following steps:
- Declare the following two fields in your workflow as follows :
blank_att - Attachment
EMPTY_ATTACH_CONST - String - In the launch step, assign the EMPTY_ATTACH_CONST the value of the attachment as follows:
EMPTY_ATTACH_CONST = blank_att - Then, when you do conditional routing later, you can just compare the CE_Operations attachments to this EMPTY_ATTACH_CONST.
For example, if you CE_Operations uses an attachment field named 'document_field1'. Then, the Conditional Routing expression would be:
document_field1 = EMPTY_ATTACH_CONST
See the attached related sample workflow.

[{"Product":{"code":"SSNW2F","label":"FileNet P8 Platform"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Process Engine","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"5.2;5.0;4.5.1","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
More support for:
FileNet P8 Platform
Software version:
5.2, 5.0, 4.5.1
Operating system(s):
AIX, Linux, Windows
Document number:
496519
Modified date:
17 June 2018
UID
swg21640823