Error Code Breakdown
E-FETCH
- Description: "Could not retrieve the document's text from Nuix Discover."
- Generation Logic: This error is triggered when the application is unable to fetch the text content of a document from Nuix Discover. This occurs within the processBulkDocuments function if the call to getDocumentTextForBulk(mainId) fails. Common causes include network issues, problems with the Nuix Discover API, or the document not being found.
E-AI
- Description: "The AI model failed to process the document."
- Generation Logic: This error occurs after successfully fetching a document's text, but the subsequent call to the AI model for analysis fails. This happens within the processBulkDocuments function if the getAiResponseForBulk(text) function throws an error. This could be due to the AI service being unavailable, an issue with the request sent to the AI, or the AI model itself returning an error.
E-WRITE
- Description: "Could not write the result back to the Nuix Discover field."
- Generation Logic: This error is generated if the application successfully receives a response from the AI model but then fails to write that result back into the specified Nuix Discover field. The applyResponseToFieldForBulk(...) function handles this operation, and a failure here could be caused by an invalid field ID, insufficient permissions, or an issue with the Nuix Discover API during the write operation.
E-UNKNOWN
- Description: "An unexpected error occurred."
- Generation Logic: This is a catch-all error code. It is used if an error is caught during the bulk processing workflow, but the specific stage of the failure does not match any of the predefined cases (E-FETCH, E-AI, E-WRITE). This indicates an unexpected or unhandled state within the processing logic.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article