Loading

Empty Optional Fields Sent to Review Tasks with GPT-5.x Document Actions (Intelligent Document Processing, IDP)

Publiceringsdatum: Oct 23, 2026
Beskrivning

Symptom: An IDP document action sends documents to Review Tasks. The review screen flags optional fields that are blank on the document. Required fields are not missing, and the document is otherwise extracted correctly.

Cause: When the model finds no value for a field, it can return an empty string ("") rather than NULL. The platform treats "" as a value the model found and blank. Its confidence is 0%, so any optional field with a confidence threshold above 0 is sent for review. NULL is not scored this way, so a NULL on an optional field is not flagged.

This is the intended behavior. An empty string can mean the field was found but is blank, so the threshold applies. The platform does not treat "" and "not found" the same way, because doing so would make review too rigid for other documents.

Affected configurations: document actions where a non-required field has a confidence threshold above 0 and the prompt wording encourages the model to return an empty response (for example, "return an empty response" or "Do not return NULL").

Lösning

Immediate mitigation:
- Set the confidence threshold to 0 on the optional fields that are being flagged. Required fields keep their thresholds. This stops the unnecessary reviews. Test it on real documents before you publish.

Lasting fix:
1. Review the field prompts in the document action. Remove wording that pushes the model to return "" or stops it returning NULL, such as "return an empty response" and "Do not return NULL".
2. Tune the prompt so the model returns NULL when a field is not on the document, and "" only when the field is genuinely present but blank.
3. Test the change in a separate draft version on 10 to 20 real documents, including image-heavy and multi-page documents. Confirm that optional fields are not sent to review.
4. Publish the new version, then set the thresholds to the required values. Keep the threshold-0 version until the test passes.

Required fields are not affected. A missing required field still goes to review.

If optional fields are still reviewed after prompt tuning, collect the execution ID, the document action version, and the document type, and open a support case.

Ytterligare resurser

- Related Known Issue (different model and cause):  MuleSoft IDP: Confidence Score Returns 0% with Gemini 3.5 Flash - https://help.salesforce.com/s/issue?id=a02g7000006igCzAAI
- Reviewing Processed Documents: https://docs.mulesoft.com/idp/reviewing-processed-documents
- Getting Started with Document Processing: https://docs.mulesoft.com/idp/document-processing

Knowledge-artikelnummer

005465185

 
Laddar
Salesforce Help | Article