Content Comprehension: The model stopped returning values and now only outputs data types
Hi,
I’m using Azure AI Services – Content Comprehension with a custom analyzer to extract structured data from invoice PDFs.
Until recently, the API was correctly returning the values for each field (for example: CompanyName, InvoiceNumber, TotalAmount, etc.). I did not change my schema or my request code, but now the response has changed and it only returns the data types, not the actual values.
Here is an example of the kind of response I’m getting now (sample data is synthetic and redacted):
{
"status": "Succeeded",
"result": {
"contents": [
{
"path": "invoice",
"fields": {
"CompanyName": {
"type": "string"
},
"InvoiceNumber": {
"type": "string"
},
"SaleDate": {
"type": "date"
},
"TotalAmount": {
"type": "number"
},
"Items": {
"type": "array"
}
},
"kind": "document",
"mimeType": "application/pdf"
}
]
}
}
Previously, I was getting values like this:
"CompanyName": {
"type": "string",
"value": "ACME SUPERMARKETS S.A."
},
"InvoiceNumber": {
"type": "string",
"value": "F-2024-00123"
}
But now I only get:
"CompanyName": { "type": "string" }
No value or content is being returned anymore.