Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FormRecognizer] When AnalyzeDocumentClinet parses the file, the date value and currency value are incorrect. #42833

Closed
zedy-wj opened this issue Mar 20, 2024 · 1 comment · Fixed by #42858
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer

Comments

@zedy-wj
Copy link
Member

zedy-wj commented Mar 20, 2024

Description:
This issue is for an error that occurred in recent daily tests:

 Error Message:
     Date mismatch in item with index 0.
 Expected: 2021-03-04 00:00:00+00:00
 But was: 2021-04-03 00:00:00+00:00

  Stack Trace:
     at Azure.AI.FormRecognizer.DocumentAnalysis.Tests.DocumentAnalysisClientLiveTests.AnalyzeDocumentPopulatesExtractedInvoiceJpg(Boolean useStream) in /mnt/vss/_work/1/s/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/DocumentAnalysisClient/DocumentAnalysisClientLiveTests.cs:line 907
  Error Message:
     String lengths are both 3. Strings differ at index 0.
  Expected: "CAD"
  But was:  "USD"
  -----------^

  Stack Trace:
     at Azure.AI.FormRecognizer.DocumentAnalysis.Tests.DocumentAnalysisClientLiveTests.ValidateCurrencyValue(CurrencyValue value, Double expectedAmount, String expectedSymbol, String expectedCode, String message) in /mnt/vss/_work/1/s/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/DocumentAnalysisClient/DocumentAnalysisClientLiveTests.cs:line 1902
   at Azure.AI.FormRecognizer.DocumentAnalysis.Tests.DocumentAnalysisClientLiveTests.AnalyzeDocumentPopulatesExtractedInvoiceJpg(Boolean useStream) in /mnt/vss/_work/1/s/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/DocumentAnalysisClient/DocumentAnalysisClientLiveTests.cs:line 853

Pipeline test link: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3616725&view=results

Related test cases:

Training file:

Failures:

According to the investigation, the SUBTOTAL currency value in the file is USD. (This error is caused by the Canadian dollar sign and the U.S. dollar sign being the same)

The error related to the date in the file is correct and the wrong date is identified.

image

Expected behavior:
All tests can pass normally.

@scottaddie, @achandmsft, @mayurid, @joseharriaga for notification.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Mar 20, 2024
Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@v-xuto v-xuto added needs-team-triage Workflow: This issue needs the team to triage. test-sovereign-cloud and removed needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Mar 20, 2024
@jsquire jsquire removed the needs-team-triage Workflow: This issue needs the team to triage. label Mar 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants