why setting a field data type to date does not provide a formatted date value?

Fedi Hachicha 26 Reputation points
2022-09-21T14:23:46.617+00:00

Hello Community,

I am facing an issue since many days ago. Let me describe the problem. It is related to date fields such as InvoiceDate or DueDate. When I open an invoice in Azure Form Recognizer and I analyze it with the Invoice Prebuilt model, I obtain the content, value, and confidence of the field. I noticed a good feature regarding date fields: their values are in this format (YYYY/MM/DD). Check the screenshot:

243439-image.png

However, when I create a custom model and I set the InvoiceDate field data type to date and I train the model, if I analyze the same document with this custom model, I only obtain the content without a value. Check the screenshot:

243521-image.png

This kind of issue also appear for currency fields such that TotalAmount, but this data type does not exist for custom models.
Looking forward for your help, suggestion, and advises.

Fedi

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,535 questions
{count} votes