0

I am encountering issues while attempting to parse the 1040 form for the year 2020 using a dummy data PDF file. Got this exception Status(StatusCode="InvalidArgument", Detail="Unable to find a document of type: '1040_' (excluding {1040_2020}).")

But I am able to successfully parse the 1040 form for the year 2018. Is there anything I might be missing?

1 Answers1

0

For the Document AI 1040 Parser, you'll need to use processor version pretrained-1040-v2.0-2022-08-24 to process 2020 and 2021 form versions.

You can accomplish this by setting that version as the default processor version or by sending a specific processor version in the request body.

https://cloud.google.com/document-ai/docs/manage-processor-versions

https://cloud.google.com/document-ai/docs/send-request

Holt Skinner
  • 1,692
  • 1
  • 8
  • 21