Question & Answer
Question
GetDocumentInfo in conjunction with MIME Service unable to find document ID on less than Full Persistence *|* -1B77F85E0B89F1B7852579180006A56A- *|*
Answer
Technote (troubleshooting)
Problem(Abstract)
GetDocumentInfo in conjunction with MIME Service unable to find document ID on less than Full Persistence
Symptom
When the GetDocumentInfo service is used in conjunction with the MIME service and persistence is less than Full the GetDocumentInfo service is unable to locate the document ID.
Error Message
com.sterlingcommerce.woodstock.workflow.DocumentNotFoundException: loading document has errorNo document with ID = lsdev001:node1:124b3697989:2693771
Resolving the problem
1. When the persistence level of the BP is set to ?BP Start Stop Only? it will persist data at the first and last steps of a BP. Hence the documents and the ProcessData are not persisted. This is the reason Get Document Extraction Service is not able to get the document for DOCUMENT_ID. (which is obtained from the previous step ? MIME service).
NOTE: This documentation link will give a clear picture about different persistence levels used in GIS.
http://www.sterlingcommerce.com/Documentation/GIS43/Content/BP_Modeling…
2. If the persistence of the BP cannot be increased to a higher level as it may affect the performance of the GIS DB increasing the persistence at the step-level is the best option. Minimal persistence also helps to get the required data so that Get Document Extraction Service will not throw an error when getting executed in the BP.
3. With persistence - PERSISTENCE_MINIMAL itself in the MIME service step will solve this issue. The resultant MIME document (Decoded-document) is persisted at this step and hence Get Document Information Service will be able to get this successfully without any error.
<operation name="MIME Service">
<participant name="MIME"/>
<output message="crackRequest">
<assign to="." from="*"></assign>
<assign to="WF_RUNTIME_OVERRIDE_PERSISTENCE_LEVEL">PERSISTENCE_MINIMAL</assign>
<assign to="mime-document-id/doc:document-id" from="PrimaryDocument-id/text()" append="true"></assign>
</output>
<input message="inmsg">
<assign to="Decoded-document" from="mime-document/*"></assign>
</input>
</operation>
<operation name="Get Document Information Service">
<participant name="GetDocumentInfoService"/>
<output message="GetDocumentInfoServiceTypeInputMessage">
<assign to="." from="*"></assign>
<assign to="DOCUMENT_ID" from="Decoded-document/mime:message/mime:body/doc:document-id/text()"></assign>
</output>
<input message="inmsg">
<assign to="." from="*"></assign>
</input>
</operation>
Historical Number
NFX8249
Product Alias/Synonym
Function Area
GetDocumentInfo service
Escalation ID
00110650
Severity
Normal
Type
NormalFix
Was this topic helpful?
Document Information
Modified date:
12 October 2021
UID
ibm10764141