Handling single document errors
Single document errors occur when one or more text documents in a table cannot be indexed by the text search server.
About this task
In this case, the SYSPROC.SYSTS_UPDATE stored procedure returns SQLCODE +462 (SQLSTATE 01H14) and the message OF00050W:
DSN00462W EXTERNAL FUNCTION OR PROCEDURE SYSTS_UPDATE (SPECIFIC NAME SYSTS_UPDATE)
HAS RETURNED A WARNING SQLSTATE, WITH DIAGNOSTIC TEXT OF00050W num document(s)
could not be processed correctly. For details see event table
'SYSIBMTS'.'EVENTS_index-ID'.
In addition, for each document that cannot be processed, the SYSPROC.SYSTS_UPDATE stored procedure adds an entry to the event table. The text search index does not contain these documents. Therefore, the CONTAINS or SCORE functions will not return these documents.
Usually, a single document error occurs
if a document contains ill-formed content. Single document errors
typically occur for the following reasons:
- The document content is damaged or truncated.
- The document format is different from the format that is specified in the SYSPROC.SYSTS_CREATE stored procedure.
- The document in a binary column is encoded in a CCSID that is different from the CCSID that is specified in the SYSPROC.SYSTS_CREATE stored procedure.
- The document size exceeds the maximum size that is supported by the text search server engine.
- The content is incorrect from the user-defined function, if the user-defined function is specified as a parameter in the SYSPROC.SYSTS_CREATE stored procedure to access the text documents indirectly.
Procedure
To find and correct single document errors and trigger re-indexing: